The General Purpose Timer (GPT) is
used to count or time external or internal events, generate Pulse-Width Modulation
(PWM) signals, and generate IR modulated codes. There are two general purpose timers
available, each with 4 channels. See the device specific data sheet for available
timers and features.
Features
- General timing features, capture and compare
- 4 Capture/Compare
channels per timer
- 32-bit counter width
- 8-bit prescaler
- Configurable counter rate
- Count from external event
- Different counter modes
- Count up once
- Count up repeatedly
- Count up and down repeatedly
- Start counting on configurable event
- Quadrature decoding (QDEC)
- 15 different channel Capture/Compare actions
- Period and pulse width measurement
- 2 capture actions
- 8 compare actions
- Filtering on capture inputs
- Generate PWM
- Complementary PWM outputs
- Programmable dead-band insertion
- Park Mode on fault, sets
the GPIO to a predetermined state upon fault
- IR signal generation
- Generate interrupts, DMA requests and ADC triggers
- Possible to chain the timers together and synchronize them.