SFFS948 May 2025 MSPM0L1227-Q1 , MSPM0L1228-Q1 , MSPM0L2227-Q1 , MSPM0L2228-Q1
There is one window comparator unit available in the ADC which can be used to check if the input signal is within predefined threshold values set by software. The ADC result (digital value corresponding to the input signal level) that goes into MEMRES or FIFO is what gets checked against the threshold values of the window comparator.
Based on the comparison, the result can generate three interrupt conditions:
The low and high threshold values of the window comparator are global for all channels and the window comparison feature can be enabled for each channel (as needed) using the WINCOMP bit in the MEMCTL register.
When the result data format (CTL2.DF) or resolution (CTL2.RES) of the ADC configuration is changed, the threshold values of the window comparator are not reset by hardware and are retained as is. The software application is expected to reconfigure the threshold values (as appropriate) after changing the data format or resolution configuration (or both).