Timer 2..5
The STM32F429ZI offers several general purpose timers. Timer 2 and 5 are 32 bit timers, while timer 3 and 4 are 16 bit timers. They may be used for measuring time (basic timer), measuring input pulse length (input capturing) or generating waveforms (output compare / PWM). The timers are fully independent and can be synchronized together.
Features
- 16-bit / 32-bit up, down, up/down auto-reload counter.
- Prescaler (16 bit) to adjust counting clock, even during runtime.
- 4 independent channels for:
- Input capture
- Output compare
- PWM generation (edge- and center-aligned)
- One-pulse output
- Synchronization / control through external signals.
- Interrupt / DMA generation.
Functions
These functions are available:
- The basic timer function governs the core timer itself, eg. counting mode, reload-values, etc.
- The clock source controls the clock signal, eg. internal clock source, external trigger, etc.
- The compare function is used for generating PWM signals.
- The capture function is used for capturing input signals.