| Electronic Components Datasheet Search |
|
DA7211 Datasheet(PDF) 39 Page - Dialog Semiconductor |
|
|
|||||||||||||||||||||||||||||
DA7211 Datasheet(HTML) 39 Page - Dialog Semiconductor |
|
39 / 105 page ![]() DA7211 Ultra-low power stereo codec Company confidential Datasheet Revision 3e 15-Oct-2015 CFR0011-120-00 Rev 5 39 of 105 © 2015 Dialog Semiconductor 8.3 Programming the general purpose filter The general purpose filter is configured using two groups of registers. These are coefficient programming and path selection. The coefficients should be programmed using the registers GP1A_A0L (address 0x2D, Table 80) to GP2D_B2H (address 0x7C, Table 159). Coefficients are programmed as two 8-bit registers of signed values representing the range +2 to -2. Example GP1A_B1L and GP1A_B1H contain the two’s complement low and high bytes of the -b1 coefficient of the filter illustrated in Figure 16. If a coefficient value of 1.45 is required, -b1 is programmed as the coefficient number multiplied by a scaling factor. The scaling factor 214 is used to convert the floating point number into an integer value for programming. The low byte will always be an 8-bit unsigned hexadecimal value, while the high byte contains the sign bit of the two’s complement word. Scale the unsigned decimal coefficient value: b1 = 1.45 x 214 = 23756.8 ≈ 23757 The unsigned scaled value in binary: b1 = 0101110011001100b Convert to two’s complement; invert the binary value and add the MSB sign bit: b1 = 10100011001100112 = A333h GP1A_B1L = 33h = 00110011 GP1A_B1H = A3h = 10100011, where MSB is the two’s complement sign-bit Note that the denominator coefficient is explicitly negated. The value of the -b1 term is positive, so a negative value must be programmed. There are eight fully programmable, second-order IIR biquad filter sections grouped in the following pairs: ● 1AB ● 1CD ● 2AB ● 2CD The output of the first section in each group is cascaded with the second section. The filter sections are processed in a fixed order: 1A, 1B, 1C, 1D, 2A, 2B, 2C, 2D. Each filter group can be programmed to take its input from one of seven possible sources, that is, from either an ADC or an I2S channel, or from any filter section that has been previously processed using GP_1AB_SRC and GP_2AB_SRC (address 0x7D, Table 160) and GP_1CD_SRC and GP_2CD_SRC (address 0x7E, Table 161) It is possible to cascade all eight GP filters together using these registers. Each filter block can be enabled or disabled in register DSP_CFG (address 0x7F, Table 162). Table 23: GP filter section enable bits Control Definition GP1AB_EN Enable GP section 1AB GP1CD_EN Enable GP section 1CD GP2AB_EN Enable GP section 2AB GP2CD_EN Enable GP section 2CD The outputs of some groups can be summed together, as controlled by register DSP_CFG (address 0x7F, Table 162). |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |