SLAAEI9 December 2023 MSPM0C1103 , MSPM0C1104 , MSPM0C1104-Q1 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0L1105 , MSPM0L1106 , MSPM0L1228
For STM8, STML Value line has comparators, but S series and the rest of L series do not. As for MSPM0, L series offers integrated comparators as optional peripherals and C series devices do not. In both families of devices comparators are denoted as COMPx, where the 'x' final character refers to the specific comparator module being considered. The comparator modules can take inputs from various internal and external sources, and can be used to trigger changes in power mode or truncate/control PWM signals. A summary of how the MSPM0 and STM8 comparator modules compare feature-by-feature is included in Table 5-3.
Feature | STM8L Value line | MSPM0L |
---|---|---|
Available comparators | Up to 2 | Up to 1 |
Output routing | External I/Os | Multiplexed I/O Pins |
TIM1 BRK or OCREFCLR
inputs TIM2/TIM3 Input Capture 2 |
- | |
Interrupt/Event Interface | Interrupt/Event Interface | |
Positive input | External I/Os | Multiplexed I/O Pins OPA1 Output DAC8(1) output |
Negative input | Internal reference
voltage Internal reference voltage submultiple (1/4, 1/2, 3/4) DAC output One of three external I/Os |
Multiplexed I/O Pins Internal temperature sensor OPA0 output DAC8 output |
Programmable hysteresis | No | None, 10 mV, 20 mV, 30 mV |
Other values from 0 V to VDD using DAC8 | ||
Register lock | No | Yes, some COMP registers (writes require key) |
Window comparator configuration | Yes | No (single COMP) |
Input short mode | No | Yes |
Operating modes | optimum speed, consumption ratio | High speed, low power |
Output filtering | No | Blanking filter |
Adjustable analog filter | ||
Output polarity control | No | Yes |
Interrupts | Rising edge | Rising edge |
Falling edge | Falling edge | |
Both edges | Output ready | |
Exchange inputs (2) | No | Yes |
COMP Code Examples
Information about COMP code examples can be found in the MSPM0 SDK examples guide.