There are two 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-14:
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
- Shadow CC register available in TIMG6, TIMG7 and
TIMG12
- Shadow register for load available in TIMG6,
TIMG7
- Support quadrature encoder interface (QEI) and
Hall sensor input logic available in TIMG8,
TIMG9
- 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-14 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 |
– |
– |
– |
– |
– |
– |
TIMG6 |
PD1 |
16 bit |
8 bit |
– |
2 |
– |
– |
– |
– |
– |
– |
TIMG7 |
PD1 |
16 bit |
8 bit |
– |
2 |
– |
Yes |
Yes |
– |
– |
– |
TIMG8 |
PD0 |
16 bit |
8 bit |
– |
2 |
– |
– |
– |
– |
– |
Yes |
TIMG9 |
PD0 |
16 bit |
8 bit |
– |
2 |
– |
– |
– |
– |
– |
Yes |
TIMG12 |
PD1 |
32bit |
– |
– |
2 |
– |
– |
Yes |
– |
– |
– |
TIMG14 |
PD0 |
16 bit |
8 bit |
– |
4 |
– |
– |
– |
– |
– |
– |
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 |
– |
For
more details, see the TIMx chapter of the MSPM0 G-Series 80MHz
Microcontrollers Technical Reference
Manual.