JAJSVI4 October 2024 ADS127L21B
PRODUCTION DATA
The wideband filter has an IIR filter option. As shown in Figure 7-20, the IIR filter is composed of four biquad filters with five scaling factors (g1 through g5). The IIR filter block is enabled by the IIR_DIS bit of the FILTER2 register (default is disabled). The IIR filter can operate before or after the FIR3 filter.
As shown in Figure 7-21, the biquad filter sections are implemented in direct form 1. Equation 27 shows the biquad transfer function.
The biquad coefficients are 32-bit signed integers, in 2.30 format with the MSB as the sign bit, representing the decimal range of –2 (80000000h) to 2 – 2/231 (7FFFFFFFh). The coefficients are uploaded to the IIR_BANK register. The register is a single address (address 16h) that stores the 100-byte set of the IIR coefficients, comprised of 80 coefficient bytes and 20 scaling factor bytes.
To read and write the coefficients, perform sequential read and write operations to the same register address (address 16h). An internal pointer automatically increments to the next memory location after each read or write operation. As given in Table 7-8, the first byte of the operation is the MSB of coefficient g5, followed by MSB-1, MSB-2, and LSB bytes; followed next by the MSB of a42, and so on. Coefficient a42 signifies the a2 coefficient of the fourth biquad H4(z). The last byte (byte 100) is the LSB of g1. Any change of address to another register during the sequence of read or write operations resets the pointer to the first memory location. If an SPI CRC error occurs during the write operation, clear the SPI_ERR bit of the STATUS1 register, which resets the coefficient write operation to the beginning. A minimum 10 × tCLK delay time is required between SPI frames when reading or writing filter coefficients.
Synchronize the ADC after writing the filter coefficients.
The default configuration of the IIR filter is a unity-gain, all-pass filter. That is, g1 through g5 = 1, bx0 = 1, and bx1, bx2, ax1, ax2 = 0, where x is the biquadratic number.
IIR COEFFICIENT | BYTE SEQUENCE | BYTES | DEFAULT VALUE | |
---|---|---|---|---|
HEX | DECIMAL | |||
g5 | 1, 2, 3, 4 | MSB, MSB-1, MSB-2, LSB | 40000000h | 1.0 |
a42 | 5, 6, 7, 8 | MSB, MSB-1, MSB-2, LSB | 00000000h | 0 |
a41 | 9, 10, 11, 12 | MSB, MSB-1, MSB-2, LSB | 00000000h | 0 |
b42 | 13, 14, 15, 16 | MSB, MSB-1, MSB-2, LSB | 00000000h | 0 |
b41 | 17, 18, 19, 20 | MSB, MSB-1, MSB-2, LSB | 00000000h | 0 |
b40 | 21, 22, 23, 24 | MSB, MSB-1, MSB-2, LSB | 40000000h | 1.0 |
g4 | 25, 26, 27, 28 | MSB, MSB-1, MSB-2, LSB | 40000000h | 1.0 |
... | ... | ... | ... | ... |
b10 | 93, 94, 95, 96 | MSB, MSB-1, MSB-2, LSB | 40000000h | 1.0 |
g1 | 97, 98, 99, 100 | MSB, MSB-1, MSB-2, LSB | 40000000h | 1.0 |