UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
105 of 258
12.1 How to read this chapter
The 16-bit timer blocks do not contain capture inputs and operate in timer mode only.
12.2 Basic configuration
The CT16B0/1 are configured using the following registers:
1. Pins: The CT16B0/1 pins must be configured in the IOCONFIG register block
(
).
2. Power and peripheral clock: In the SYSAHBCLKCTRL register, set bit 7 and bit 8
(
).
12.3 Features
•
Two 16-bit counter/timers with a programmable 16-bit prescaler.
•
Timer operation only.
•
Four 16-bit match registers that allow:
–
Continuous operation with optional interrupt generation on match.
–
Stop timer on match with optional interrupt generation.
–
Reset timer on match with optional interrupt generation.
•
Up to three (CT16B0) or two (CT16B1) external outputs corresponding to match
registers with the following capabilities:
–
Set LOW on match.
–
Set HIGH on match.
–
Toggle on match.
–
Do nothing on match.
•
For each timer, up to four match registers can be configured as PWM allowing to use
up to three match outputs as single edge controlled PWM outputs.
12.4 Applications
•
Interval timer for counting internal events
•
Free-running timer
•
Pulse Width Modulator via match outputs
12.5 Description
Each Counter/timer is designed to count cycles of the peripheral clock (PCLK) and can
optionally generate interrupts or perform other actions at specified timer values based on
four match registers.
UM10429
Chapter 12: LPC1102 16-bit counter/timers (CT16B0/1)
Rev. 1 — 20 October 2010
User manual