SLAU846A June 2023 – October 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1
The purpose of window comparator mode is to monitor the input signal within a specified threshold range defined by lower and upper thresholds.
As Figure 11-4 shows, COMP0 and COMP1 can combine to create a window comparator. The input signal is connected to the positive terminal of comparators connected together and the upper and lower threshold voltages are connected to the negative terminal of the comparators.
Window comparator mode can be enabled by set the WINCOMPEN bit in COMPx.CTL1 register. Figure 11-5 below shows a example of a window mode configuration: