UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
394 of 515
NXP Semiconductors
UM11029
Chapter 21: LPC84x SCTimer/PWM
21.6.12 SCTimer/PWM output register
Each SCTimer/PWM output has a corresponding bit in this register to allow software to
control the output state directly or read its current state.
While the counter is running, outputs are set, cleared, or toggled only by events. However,
using this register, software can write to any of the output registers when both counters
are halted to control the outputs directly. Writing to the OUT register is only allowed when
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.
21.6.13 SCTimer/PWM bidirectional output control register
For bidirectional 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 396. SCTimer/PWM output register (OUTPUT, offset 0x050) bit description
Bit
Symbol
Description
Reset
value
6: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,..., output 6 = bit 6).
0
31:6
-
Reserved
-
Table 397. SCTimer/PWM bidirectional output control register (OUTPUTDIRCTRL, offset 0x054) bit description
Bit
Symbol
Value
Description
Reset
value
1:0
SETCLR0
Set/clear operation on output 0.
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.
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.
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.
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.