| 数据搜索系统,热门电子元器件搜索 |
|
STA321 数据表(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STA321 数据表(HTML) 44 Page - STMicroelectronics |
|
44 / 157 page ![]() Digital processing stage STA321 44/157 Doc ID 15351 Rev 3 6.14 Memory programming Table 22 on page 47 shows the RAM mapping for the programmable functions in the signal processing stage. Changing or reading this data is done through the I2C interface in either single-word mode or in multi-word mode. Register PROCCTRL on page 107 sets the desired mode and whether to read or write: 1-word mode: this is for write only; the address of the memory location must be specified in registers START_ADDR2 and START_ADDR1 on page 108 and the value of the parameter must be written into registers I2CB0_TOP, I2CB0_MID and I2CB0_BOT on page 102. 5-word mode: in this case it is possible to write/read 5 contiguous locations. Only the address of the first one must be specified in registers START_ADD1-2, all the others are generated automatically. The values of the parameters must be placed in (or taken from) registers I2CB0_TOP-BOT, I2CB1_TOP-BOT, I2CB2_TOP-BOT, I2CA1_TOP-BOT, I2CA2_TOP-BOT. The 5-word mode is particular useful during the biquad programming when a set of five coefficients needs to be updated. Not only is it more efficient to change all of them at the same time but it avoids the generation of possible unpleasant acoustical side-effects. The following sections explain how to implement this programming using the I2C interface. 6.14.1 Writing one coefficient/location to RAM Write RAM address to registers START_ADDR2 and START_ADDR1 (b0) Write 8 MSBs of coefficient in register I2CB0_TOP Write 8 middle bits of coefficient in register I2CB0_MID Write 8 LSBs of coefficient in register I2CB0_BOT Write 1 to bit W1 in register PROCCTRL. Figure 26. Writing RAM location START_ADDR[8:0] Write address to of coefficient Write middle 8 bits of coefficient Write top 8 bits of coefficient Write bottom 8 bits in PROC_CTRL Write 1 to bit W1 0x60 = 0x01 0x61 = address[8] 0x62 = address[7:0] 0x51 = top_val 0x52 = mid_val 0x53 = bot_val |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |