The General Purpose Timer (LGPT) is used to count or time external or internal events, generate Pulse-Width Modulation (PWM) signals, and generate IR modulated codes.
There are up to four general-purpose timers available. See the device-specific data sheet for available timers and features.
Features
- General timing features, capture, and compare
- Three Capture/Compare channels per timer
- 16-bit counter width or
- 32-bit counter width
- 8-bit prescaler
- Configurable counter rate
- Count from an 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
- 3 capture actions
- 12 compare actions
- Filtering on capture inputs
- Generate PWM
- Complementary PWM outputs
- Programmable deadband insertion
- Park Mode on fault sets the DIO to a predetermined state upon fault
- IR signal generation
- Generate interrupts, DMA request,s and ADC triggers
- Possible to chain the timers together and synchronize them.