ZHCSSI3 February 2024 ADS1288
PRODUCTION DATA
The last stage of the digital filter is the high-pass filter (HPF). The high-pass filter is implemented as a first-order IIR filter. The high-pass filter removes dc and low frequencies from the data. The HPF is enabled by programming the FILTR[1:0] bits = 11b of the CONFIG0 register.
Equation 4 shows the z-domain transfer function of the filter:
where:
Be aware the corner frequency programming is a function of fDATA. As shown by Equation 5, the value written to the HPF1, HPF0 registers is value a, computed by Equation 4, × 216.
Table 7-6 shows examples of the high-pass filter programming.
HPF[15:0] | fC (Hz) | fDATA (SPS) |
---|---|---|
0332h | 0.5 | 250 |
0332h | 1.0 | 500 |
019Ah | 1.0 | 1000 |
The HPF accumulates data to perform the high-pass function. Similar to the operation of an analog HPF after a dc step change is applied to the input, the filter takes time to accumulate data to remove dc from the signal. The lower the corner frequency, the longer the filter takes to settle.
To shorten the HPF settling time, the offset register is used as a seed value for the HPF accumulator. The accumulator is loaded with the offset register each time the HPF state is changed from disabled to enabled. The offset register can be preset with an estimated value, or a calibrated value if the dc level is known. To improve accuracy, scale the offset value by the inverse value of GAIN[3:0] / 400000h. The normal offset operation is disabled when the HPF is enabled.
To initialize the HPF accumulator with the OFFSET[2:0] registers:
Subsequent writes to the OFFSET[2:0] registers are ignored. To reload the contents of the OFFSET[2:0] registers to the HPF, disable and re-enable the HPF.