The timer peripherals in these devices support the following key features, for specific configuration see Table 5-2:
Specific features for the general-purpose timer (TIMGx) include:
- 16-bit up, down, up-down or down-up counter, with repeat-reload mode
- 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) for positioning and movement sensing
- 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
- Cross trigger event logic for Hall sensor inputs
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
- Complementary output PWM
- Asymmetric PWM with programmable dead band insertion
- Fault handling mechanism to verify 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
Table 5-2 TIMx ConfigurationsTIMER 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 |
TIMG12 | PD1 | 32-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 | – |
The following tests can be applied as functional safety mechanisms for this module (to provide diagnostic coverage on a specific function):