There are two timer peripherals in these devices
support that following key features: TIMBx (basic timer), TIMGx (general-purpose
timer) and TIMAx (advanced timer). TIMGx is a subset of TIMAx, which means these
timers share many common features that are compatible in software. For specific
configuration, see Table 8-17:
Specific features for the general-purpose timer (TIMGx) include:
- 16-bit and 32-bit timers with up, down or up-down counting modes, with repeat-reload mode
- Selectable and configurable clock source
- 8-bit programmable prescaler to divide the counter clock frequency
- Two independent CC channels for
- Output compare
- Input capture
- PWM output
- One-shot mode
- 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 timer with up, down or up-down counting modes, 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 CC channels for
- Output compare
- Input capture
- PWM output
- One-shot mode
- Two additional capture/compare channels for internal events (CC4/CC5)
- Shadow register for load and CC register available in TIMA0
- Complementary output PWM
- Asymmetric PWM with programmable dead band insertion
- Fault handling mechanism to make sure the output
signals in a safe user-defined state when a fault condition is encountered
- 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
Specific features for the basic software timer (TIMBx) include:
- Support for a counter array containing 4 counters
- Each counter is a 16 bit counter
- Clocked by the bus clock
- Ability to concatenate 2 or more counters to create longer time durations
- Ability to measure timing properties of external events
- Duration between 2 pulses on an event
- Counting the number of events
- Ability to start/stop the counter based on external events or internal
events
Table 8-17 TIMx Instance Configuration| Instance | Power Domain | Counter Resolution | Prescaler | Repeat Counter | CCP Channels (External/Internal) | External PWM Channels | Phase Load | Shadow Load | Shadow CCs | Deadband | Fault Handler | QEI / Hall Input Mode |
| TIMB3 |
PD0 |
16 bit |
– |
– |
– |
– |
– |
– |
– |
– |
– |
– |
| TIMB2 |
PD0 |
16 bit |
– |
– |
– |
– |
– |
– |
– |
– |
– |
– |
| TIMB1 |
PD0 |
16 bit |
– |
– |
– |
– |
– |
– |
– |
– |
– |
– |
| TIMB0 |
PD0 |
16 bit |
– |
– |
– |
– |
– |
– |
– |
– |
– |
– |
| TIMG2 | PD0 | 16 bit | 8 bit | – | 2 | – | – | – | – | – | – |
– |
| TIMG1 | PD0 | 16 bit | 8 bit | – | 2 | – | – | – | – | – | - |
– |
| TIMG14 |
PD0 |
16 bit |
8bit |
– |
4 |
– |
– |
– |
– |
– |
– |
– |
| TIMA0 | PD1 | 16 bit | 8 bit | 8-bit | 4 | Yes | Yes | Yes | Yes | Yes | – |
– |
For more details, see the TIMx chapter of the
MSPM0 L-Series 32MHz Microcontrollers Technical Reference Manual.