SLAAE25 May   2021 MSP430FR2355 , MSP430FR2355

 

  1.   Trademarks
  2. 1Introduction
  3. 2Theory of Operation
  4. 3Single-Chip Design
  5. 4Hardware
  6. 5Software
    1. 5.1 Sample and Condition the PIN Diode Signal
    2. 5.2 Sample and Measurement Sequence
    3. 5.3 First Stage DC Tracking
    4. 5.4 Low-Pass FIR Filter
    5. 5.5 Calculate Heart and SpO2
  7. 6Debug GUI
  8. 7Test Result
  9. 8Summary
  10. 9References

First Stage DC Tracking

A simple a low-pass IIR digital filter is used to track the DC value of the signal after the TIA, and adjust the offset of the second-stage amplification.

Equation 6. GUID-59D2F5C8-546D-4123-B893-A3783B0C2443-low.png

A DC tracking filter is illustrated in Figure 5-3.

GUID-BAC8EC05-4C4C-40A1-A7FF-E4BED0FD359E-low.png Figure 5-3 Tacking Filter Block Diagram

This is an IIR filter. The working of this filter is best understood intuitively. The filter adds a small portion of the difference between its input and its last output value to its last output value to form the new output value. It there is a step change in the input, the output changes itself to be the same as the input over a period of time. The rate of change is controlled by the coefficient K. K is worked out by experiment. So, if the input contains an AC and DC component, the coefficient K is made sufficiently small to generate a time constant relative to the frequency of the AC component so that over a length of time the AC will cancel itself out in the accumulation process and the output would only track the DC component of the input.

As shown in Figure 5-4, high frequency noise is filtered out by IIR, and it can track the DC value of ADC data well.

GUID-2431B820-2D3D-4347-9A16-8CCE71445909-low.png Figure 5-4 IIR DC Tracking Filter