Specific features for TIMG include:
- 16-bit or 32-bit
up, down, or up-down counter, with repeat-reload mode
- 8-bit programmable prescaler to divide the counter clock frequency
- Up to two independent channels for
- Output compare
- Input capture
- PWM output (Edge-Aligned and Center-Aligned)
- One-shot mode
- Shadow register mode for load and compare values (see Section 23.2.4)
- Support for quadrature encoder interface (QEI) (see Section 23.2.3.1.3)
- 3-input Hall sensor mode for position sensing and speed computation (see Section 23.2.3.1.4)
- Support synchronization and cross trigger among different TIMx instances in the same power domain (see Section 23.2.7)
- Support CPU interrupt generation and cross peripherals (such as ADC, DAC, etc.) using the Event (see Section 23.2.9)