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
186 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
all counters (L-counter, H-counter, or unified counter) are halted (HALT bits are set to 1 in
the CTRL register).
Software can read this register at any time to sense the state of the outputs.
13.6.13 SCT bi-directional output control register
For bi-directional mode, this register specifies (for each output) the impact of the counting
direction on the meaning of set and clear operations on the output (see
and
). The purpose of this register is to facilitate the creation of
center-aligned output waveforms without the need to define additional events.
Table 220. SCT output register (OUTPUT, address 0x5000 4050) bit description
Bit
Symbol
Description
Reset value
15:0
OUT
Writing a 1 to bit n forces the corresponding output HIGH. Writing a 0 forces the
corresponding output LOW (output 0 = bit 0, output 1 = bit 1, …). The number of bits =
number of outputs in this SCT.
0
31:16
-
Reserved
-
Table 221. SCT bidirectional output control register (OUTPUTDIRCTRL, address 0x5000 4054) bit description
Bit
Symbol
Value
Description
Reset
value
1:0
SETCLR0
Set/clear operation on output 0. Value 0x3 is reserved. Do not program this value.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY =
1.
3:2
SETCLR1
Set/clear operation on output 1. Value 0x3 is reserved. Do not program this value.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY =
1.
5:4
SETCLR2
Set/clear operation on output 2. Value 0x3 is reserved. Do not program this value.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY =
1.
7:6
SETCLR3
Set/clear operation on output 3. Value 0x3 is reserved. Do not program this value.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY =
1.
9:8
SETCLR4
Set/clear operation on output 4. Value 0x3 is reserved. Do not program this value.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY =
1.
31:10
SETCLR…
Set/clear operation controls for the remainder of outputs on this SCT.
0