Settling time: After updating the configuration
of the comparator, the application code requires a delay to allow for the enable
time, DAC settling time, and propagation delay before reading the result. When
setting the delay in the application code, refer to the comparator
specifications section of the respective MSPM0 data sheet.
Operating mode: The comparator has both a
high-speed and a low-power mode. The high-speed mode consumes more current, but
decreases the time between comparator readings. The low-power mode requires
longer delays between readings, but decreases the current consumption of the
device. For reference, this example use the high-speed mode.
Response time: As the subsystem cycles through
multiple comparator configurations, this process increases the maximum
comparator response time. The maximum response time is a factor of the settling
time delay multiplied by the number of emulated comparator configurations.
Standard response time = x; Emulated response time = delay × emulated comparator
(45μs)