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
166 of 464
13.1 How to read this chapter
The SCTimer/PWM is available on all parts.
Remark:
For a detailed description of SCTimer/PWM applications and code examples,
13.2 Features
•
The SCTimer/PWM supports:
–
Thirteen match/capture registers.
–
Thirteen events.
–
Thirteen states.
–
Eight inputs.
–
Eight outputs.
•
Counter/timer features:
–
Each SCTimer is configurable as two 16-bit counters or one 32-bit counter.
–
Counters clocked by system clock or selected input.
–
Configurable as up counters or up-down counters.
–
Configurable number of match and capture registers. Up to five match and capture
registers total.
–
Upon match and/or an input or output transition create the following events:
interrupt; stop, limit, halt the timer or change counting direction; toggle outputs;
change the state.
–
Counter value can be loaded into capture register triggered by a match or
input/output toggle.
•
PWM features:
–
Counters can be used in conjunction with match registers to toggle outputs and
create time-proportioned PWM signals.
–
Up to 8 single-edge or 6 dual-edge PWM outputs with independent duty cycle and
common PWM cycle length.
•
Event creation features:
–
The following conditions define an event: a counter match condition, an input (or
output) condition such as an rising or falling edge or level, a combination of match
and/or input/output condition.
–
Selected events can limit, halt, start, or stop a counter or change its direction.
–
Events trigger state changes, output toggles, interrupts, and DMA transactions.
–
Match register 0 can be used as an automatic limit.
–
In bi-directional mode, events can be enabled based on the count direction.
–
Match events can be held until another qualifying event occurs.
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
Rev. 2.4 — 13 September 2016
User manual