There are two types of timer peripherals in these devices support that following key features: TIMGx (general-purpose timer) and TIMAx (advanced timer). TIMGx is a subset of TIMAx, which means common features between timer instances are software compatible. For specific configurations, see Table 8-19:
Specific features for the general-purpose timer (TIMGx) include:
- 16-/32-bit up, down, up-down or down-up counter, with repeat-reload mode
- Selectable and configurable clock source
- 8-bit programmable prescaler to divide the counter clock frequency
- Two independent channels for
- Output compare
- Input capture
- PWM output
- One-shot mode
- Support quadrature encoder interface (QEI) and
Hall sensor input logic available in TIMG8
- Support synchronization and cross trigger among different TIMx instances in the same power domain
- Support interrupt/DMA trigger generation and cross peripherals (such as ADC) trigger capability
Specific features for the advanced timer (TIMAx) include:
- 16-bit down or up-down counter, with repeat-reload mode
- Selectable and configurable clock source
- 8-bit programmable prescaler to divide the counter clock frequency
- Repeat counter to generate an interrupt or event only after a given number of cycles of the counter
- Up to four independent channels for
- Output compare
- Input capture
- PWM output
- One-shot mode
- Shadow register for load and CC register available in both TIMA0 and TIMA1
- Complementary output PWM with programmable dead band insertion
- Asymmetric PWM
- Configurable fault handling mechanism for
- Fast PWM responses (<40ns) to external fault inputs or comparator events
- Outputting signals in a safe user-defined state when a latched fault condition has occurred
- Support synchronization and cross trigger among different TIMx instances in the same power domain
- Support interrupt and DMA trigger generation and cross peripherals (such as ADC) trigger capability
- Two additional capture/compare channels for internal events
Table 8-19 TIMx Configurations| TIMER NAME | POWER DOMAIN | RESOLUTION | PRESCALER | REPEAT COUNTER | CAPTURE / COMPARE CHANNELS | PHASE LOAD | SHADOW LOAD | SHADOW CC | DEADBAND | FAULT | QEI |
|---|
| TIMG0 | PD0 | 16 bit | 8 bit | – | 2 | – | – | – | – | – | – |
TIMG1 | PD0 | 16 bit | 8 bit | - | 2 | - | - | - | - | - | - |
| TIMG8 | PD0 | 16 bit | 8 bit | – | 2 | – | – | – | – | – | Yes |
| TIMA0 | PD1 | 16 bit | 8 bit | 8 bit | 4 | Yes | Yes | Yes | Yes | Yes | – |
| TIMA1 | PD1 | 16 bit | 8 bit | 8 bit | 2 | Yes | Yes | Yes | Yes | Yes | – |
Table 8-20 TIMx Cross Trigger Map (PD1)| TSEL.ETSEL Selection | TIMA0 | TIMA1 |
|---|
| 0 | TIMA0.TRIG0 | TIMA0.TRIG0 |
| 1 | TIMA1.TRIG0 | TIMA1.TRIG0 |
2 | TIMG8.TRIG0 | TIMG8.TRIG0 |
Table 8-21 TIMx Cross Trigger Map (PD0)| TSEL.ETSEL Selection | TIMG0 | TIMG1 | TIMG8 |
|---|
| 0 | TIMG0.TRIG0 | TIMG0.TRIG0 | TIMG0.TRIG0 |
1 | TIMG1.TRUG0 | TIMG1.TRIG0 | TIMG1.TRIG0 |
| 2 | TIMG8.TRIG0 | TIMG8.TRIG0 | TIMG8.TRIG0 |
For more details, see the TIMx chapter of the MSPM0 G-Series 80MHz Microcontrollers Technical Reference Manual.