SLAAE56A November 2022 – March 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346
The STM32G0 and MSPM0 family of parts both offer integrated comparators as optional peripherals on some devices. In both families of devices these are denoted as COMPx, where the 'x' final character refers to the specific comparator module being considered. In the STM32G0 family these are numbered 1-3, and in the MSPM0 family these are numbered 0-2. The comparator modules can both provide a windowed comparator functionality in devices with more than 1 comparator, 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 STM32G0 comparator modules compare feature-by-feature is included in #GUID-BFD534E1-1F87-4D51-9C42-DD8C4261965B/GUID-09809584-CA82-4FAD-A039-CFBB68C79E9E.
Feature | SMT32G0 | MSPM0G | MSPM0L |
---|---|---|---|
Available comparators | Up to 3 | Up to 3 | Up to 1 |
Output routing | Multiplexed I/O Pins | Multiplexed I/O Pins | Multiplexed I/O Pins |
EXTI Interrupt | Interrupt/Event Interface | Interrupt/Event Interface | |
Noninverting input sources | Multiplexed I/O Pins | Multiplexed I/O Pins | Multiplexed I/O Pins |
DAC12 output(1) | DAC8 output | ||
DAC8 output | OPA1 Output(2) | ||
Internal VREF: 1.4 V and 2.5 V | |||
OPA1 output(2) | |||
Inverting input sources | Multiplexed I/O Pins | Multiplexed I/O pins | Multiplexed I/O Pins |
DAC Channels 1 and 2 | Internal temperature sensor | Internal temperature sensor | |
Internal VREF: 2.048 V and 2.5 V | Internal VREF: 1.4 V and 2.5 V | DAC8 output | |
Buffered VREF Divider including: ¼VREF, ½VREF, and ¾VREF | DAC8 output | OPA0(3) output | |
OPA0 output (3) | |||
Programmable hysteresis | None, 10 mV, 20 mV, 30 mV | None, 10 mV, 20 mV, 30 mV | None, 10 mV, 20 mV, 30 mV |
Other values from 0 V to VREF/VDD using DAC8 | Other values from 0 V to VDD using DAC8 | ||
Register lock | Yes, all COMP registers (disabled on device reset) | Yes, some COMP registers (writes require key) | Yes, some COMP registers (writes require key) |
Window comparator configuration | Yes | Yes | No (single COMP) |
Input short mode | No | Yes | Yes |
Operating modes | High speed, medium speed | High speed, low power | High speed, low power |
Fast PWM shutdowns | Yes | Yes (through TIMA fault handler) | No |
Output filtering | Blanking filter | Blanking filter | Blanking filter |
Adjustable analog filter | Adjustable analog filter | ||
Output polarity control | Yes | Yes | Yes |
Interrupts | Rising edge | Rising edge | Rising edge |
Falling edge | Falling edge | Falling edge | |
Both edges | Output ready | Output ready | |
Exchange inputs mode | No | Yes | Yes |
Information about COMP code examples can be found in the MSPM0 SDK examples guide.