![Infineon MERUS MA2304DNS Скачать руководство пользователя страница 57](http://html1.mh-extra.com/html/infineon/merus-ma2304dns/merus-ma2304dns_user-manual_2055094057.webp)
User Manual
57
V 1.1
2022-09-12
User manual for MERUS™ audio amplifier configurator
MA2304DNS/MA2304PNS
Saving and exporting configurations
#define PROGRAM_MEM_ADDR 0x1000
#define PROGRAM_MEM_SIZE 2048
#define PROGRAM_PACK_SIZE 1274
#define DATA_MEM_ADDR 0x2000
#define DATA_MEM_SIZE 2048
#define DATA_PACK_SIZE 160
uint16_t PROGRAM_CODE [PROGRAM_PACK_SIZE] = {
0x11f5, 0x3f00, 0x1650, 0x0000,
0x03f5, 0xff00, 0x5028, 0x0000,
0x10d8, 0xff00, 0x1f00, 0x0000,
...
0x13f0, 0x0400, 0x1552, 0x4000,
0x1050, 0x0000};
uint16_t DATA_CODE [DATA_PACK_SIZE] = {
0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000,
...
0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000};
Figure 74
output.h DSP code snippet
The REG_ADDRESS_X and REG_DATA_X macros are defined at the end of the file:
#define REG_ADDRESS_1 0x00bd
#define REG_DATA_1 0x0012
#define REG_ADDRESS_2 0x00be
#define REG_DATA_2 0x0000
Figure 75
output.h register settings snippet
These macros can be used to program device register settings in addition to the DSP code.
The PROGRAM_CODE and DATA_CODE arrays contain only data (i.e., no register addresses). Each array element
is of 16-bit format.