UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
205 of 464
NXP Semiconductors
UM10850
Chapter 14: LPC5410x Standard counter/timers (CT32B0/1/2/3/4)
•
PWM: for each timer with pin connections, up to 3 match outputs can be used as
single edge controlled PWM outputs.
14.4 Applications
•
Interval Timer for counting internal events.
•
PWM outputs
•
Pulse Width Demodulator via Capture inputs.
•
Free running timer.
14.5 General description
Each Counter/timer is designed to count cycles of the peripheral clock (PCLK) or an
externally supplied clock and can optionally generate interrupts or perform other actions at
specified timer values based on four match registers. Each counter/timer also includes
one capture input to trap the timer value when an input signal transitions, optionally
generating an interrupt.
In PWM mode, three match registers can be used to provide a single-edge controlled
PWM output on the match output pins. One match register is used to control the PWM
cycle length.
14.5.1 Capture inputs
The capture signal can be configured to load the Capture Register with the value in the
counter/timer and optionally generate an interrupt. The capture signal is generated by one
of the pins with a capture function. Each capture signal is connected to one capture
channel of the timer.
The Counter/Timer block can select a capture signal as a clock source instead of the
PCLK derived clock. For more details see
14.5.2 Match outputs
When a match register equals the timer counter (TC), the corresponding match output can either
toggle, go LOW, go HIGH, or do nothing. The External Match Register (EMR) and the PWM Control
Register (PWMCON) control the functionality of this output.
14.5.3 Applications
•
Interval timer for counting internal events
•
Pulse Width Modulator via match outputs
•
Pulse Width Demodulator via capture input
•
Free running timer
14.5.4 Architecture
The block diagram for the timers is shown in