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
169 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
13.5 General description
The SCTimer/PWM, or in short SCT, is a powerful, flexible timer module capable of
creating complex PWM waveforms and performing other advanced timing and control
operations with minimal or no CPU intervention.
The SCT can operate as a single 32-bit counter or as two independent, 16-bit counters in
uni-directional or bi-directional mode. As with most timers, the SCT supports a selection of
match registers against which the count value can be compared, and capture registers
where the current count value can be recorded when some pre-defined condition is
detected.
An additional feature contributing to the versatility of the SCT is the concept of “events”.
The SCT module supports multiple separate events that can be defined by the user based
on some combination of parameters including a match on one of the match registers,
and/or a transition on one of the SCT inputs or outputs, the direction of count, and other
factors.
Every action that the SCT block can perform occurs in direct response to one if these
user-defined events without any software overhead. Any event can be enabled to:
•
Start, stop, or halt the counter.
•
Limit the counter which means to clear the counter in unidirectional mode or change
its direction in bi-directional mode.
•
Set, clear, or toggle any SCT output.
•
Force a capture of the count value into any capture registers.
•
Generate an interrupt of DMA request.
The SCT allows the user to group and filter events, thereby selecting some events to be
enabled together while others are disabled in a given context. A group of enabled and
disabled events can be described as a state, and several states with different sets of
enabled and disabled events are allowed. Changing from one state to another is event
Table 208: Suggested SCT output pin settings
IOCON
bit(s)
Type D pin
Type A pin
Type I pin
10
OD: Set to 0 unless open-drain output is desired.
Same as type D.
I2CFILTER: Set to 1
9
SLEW: Set to 0.
Not used, set to 0
I2CDRIVE: Set to 0.
8
FILTEROFF: Set to 1.
Same as type D.
Same as type D.
7
DIGIMODE: Set to 1.
Same as type D.
Same as type D.
6
INVERT: Set to 0.
Same as type D.
Same as type D.
5
Not used, set to 0.
Same as type D.
I2CSLEW: Set to 1.
4:3
MODE: set to 00.
Same as type D.
Not used, set to 00.
2:0
FUNC: Must select the correct function for this peripheral.
Same as type D.
Same as type D.
General
comment
A good choice for an SCT output.
A reasonable choice
for an SCT output.
Not recommended for SCT
outputs.