
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
276 of 487
NXP Semiconductors
UM10800
Chapter 16: LPC82x SCTimer/PWM
If UNIFY = 0 in the CONFIG register, this register can be written to as two registers
REGMODE_L and REGMODE_H. Both the L and H registers can be read or written
individually or in a single 32-bit read or write operation. The _L bits/registers control the L
match/capture registers, and the _H bits/registers control the H match/capture registers.
The SCT contains multiple Match/Capture registers. The Register Mode register selects
whether each register acts as a Match register (see
) or as a Capture
register (see
). Each Match/Capture register has an accompanying
register which functions as a Reload register when the primary register is used as a Match
register (
) or as a Capture-Control register when the register is used as a
capture register (
). REGMODE_H is used only when the UNIFY bit is 0.
16.6.12 SCT output register
Each SCT 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.
Table 232. SCT match/capture mode register (REGMODE, address 0x5000 404C) bit
description
Bit
Symbol
Description
Reset
value
7:0
REGMOD_L
Each bit controls one match/capture register (register 0 = bit 0,
register 1 = bit 1,..., register = bit 7).
0 = register operates as match register.
1 = register operates as capture register.
0
15:8
-
Reserved.
-
23:16 REGMOD_H
Each bit controls one match/capture register (register 0 = bit 16,
register 1 = bit 17,..., register 7 = bit 23).
0 = register operates as match registers.
1 = register operates as capture registers.
0
31:24 -
Reserved.
-
Table 233. SCT output register (OUTPUT, address 0x5000 4050) bit description
Bit
Symbol
Description
Reset
value
5: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 5 = bit 5).
0
31:6
-
Reserved