SLAAE56A November 2022 – March 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
STM32G0 and MSPM0 both offer various timers. MSPM0 offers timers with varying features that support use cases from low power monitoring to advanced motor control.
STM32G0 | MSPM0 | ||
---|---|---|---|
Timer Name | Abbreviated Name | Timer Name | Abbreviated Name |
Advanced control | TIM1 | Advanced control | TIMA0 |
General-purpose | TIM2-4, TIM14/-17 | General purpose | TIMG0-11 |
High resolution | TIMG12 | ||
Basic | TIM6/7 | ||
Low power | LPTIM |
Feature | STM32G0 Timers | MSPM0G Timers | MSPM0L Timers |
---|---|---|---|
Resolution | 16 bit, 32 bit | 16 bit, 32 bit | 16 bit |
PWM | Yes | Yes | Yes |
Capture | Yes | Yes | Yes |
Compare | Yes | Yes | Yes |
One-shot | Yes | Yes | Yes |
Up down count functionality | Yes | Yes | Yes |
Power Modes | Yes | Yes | Yes |
QEI support | Yes | Yes | No |
Programmable pre-scalar | Yes | Yes | Yes |
Shadow register mode | Yes | Yes | Yes |
Events/Interrupt | Yes | Yes | Yes |
Fault Event Mechanism | Yes | Yes | No |
Auto reload functionality | Yes | Yes | Yes |
STM32G0 Timer | MSPM0 Equivalent | Reasoning |
---|---|---|
TIM1 | TIMA, TIMG8-12 | Advanced control, Both 16-bit resolution, QEI support |
TIM2 | TIMG12 | 32-bit resolution |
TIM3/4 | TIMG0-7 | General purpose, 16-bit resolution |
TIM6/7 | Any | Basic timer |
TIM14 | Any | Same functionality as TIM3/4 |
TIM15/16/17 | Any | General purpose |
LPTIM | Any timer in PD0 | LPTIM sources LFCLK, PD0 – low power mode in MSPM0 |
Feature | STM32G0 Timer | MSPM0 Timer |
---|---|---|
PWM | TIM1-4 have edge and center aligned options, TIM6-7 do not have PWM functionality. TIM15-17 only edge aligned option. | All timers have edge aligned or center aligned options |
Capture | No major differences | No major differences |
Compare | No major differences | No major differences |
One-shot | No major differences | No major differences |
Prescaler | 16-bit prescaler, besides LPTIM (3-bit prescaler) | 8-bit prescaler |
Synchronization | TIM1-4, TIM15 | All timers have this capability |
Information about timer code examples can be found in the MSPM0 SDK examples guide.