The comparator peripheral in the device compares the voltage levels on two inputs terminals and provides a digital output based on this comparison. The COMP supports the following key features:
- Programmable hysteresis
- Programmable reference voltage:
- Integrated 8-bit reference DAC, the output can also can connect to OPA input terminal internally as an output buffer.
- Configurable operation modes:
- High-speed mode (for the lowest propagation delay in timing-critical applications)
- Low-power mode (for monitoring slow-moving signals at the lowest power consumption)
- Programmable output glitch filter delay
- Support output wake up device from all low-power modes
- Output connected to advanced timer fault handling mechanism
- The IPSEL and IMSEL bits in comparator registers can be used to select the comparator channel inputs from device pins or from internal analog modules.
For more details, see the COMP chapter of the MSPM0 L-Series 32-MHz Microcontrollers Technical Reference Manual.
The following tests can be applied as functional safety mechanisms for this module (to provide diagnostic coverage on a specific function):