EasyManua.ls Logo

NXP Semiconductors LPC1311 - Chapter 15: Lpc13 Xx 16-Bit Timer;Counters (CT16 B0;1); Applications; Reserved; Basic Configuration

NXP Semiconductors LPC1311
368 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10375 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
User manual Rev. 3 — 14 June 2011 266 of 368
15.1 How to read this chapter
The 16-bit timer blocks are identical for all LPC13xx parts.
15.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
(Section 7.4
).
2. Power and peripheral clock: In the SYSAHBCLKCTRL register, set bit 7 and bit 8
(Table 25
).
15.3 Features
Two 16-bit counter/timers with a programmable 16-bit prescaler.
Counter or timer operation.
One 16-bit capture channel that can take a snapshot of the timer value when an input
signal transitions. A capture event may also optionally generate an interrupt.
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.
15.4 Applications
Interval timer for counting internal events
Pulse Width Demodulator via capture input
Free-running timer
Pulse Width Modulator via match outputs
UM10375
Chapter 15: LPC13xx 16-bit timer/counters (CT16B0/1)
Rev. 3 — 14 June 2011 User manual

Table of Contents

Related product manuals