SLAAEF6 September 2023 MSPM0L1105 , MSPM0L1106 , MSPM0L1306 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346
Figure 3-3 shows what the PIR signal looks like over time as the ambient temperature and the PIR sensor body temperature are fluctuating. There is no motion detect events here, just the signal drifting. A digital low-pass, moving average filter is applied in software to the collected data samples. Based on this moving average filter, the DACs are adjusted to compensate for this baseline trend over time and this removes most of the DC component of the signal. This allows you to achieve a higher dynamic range from the MSPM0's 12-bit ADC since the signal chain is actively being compensated for the ambient temperature, it keeps the signal centered within the ADC measurement range. The software can use both the ADC's reading and the current DAC compensation values to determine the absolute digital output code.