UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
824 of 1269
NXP Semiconductors
UM10503
Chapter 28: LPC43xx State Configurable Timer (SCT)
28.6.11 SCT output register
The SCT supports 16 outputs, each of which has a corresponding bit in this register.
Software can write to any of the output registers when both counters are halted to control
the outputs directly. Writing to this register when either counter is stopped or running does
not affect the outputs and results in an bus error.
Software can read this register at any time to sense the state of the outputs.
28.6.12 SCT bidirectional output control register
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
Table 656. SCT match/capture registers mode register (REGMODE - address 0x4000 004C)
bit description
Bit
Symbol
Description
Reset
value
15:0
REGMOD_L
Each bit controls one pair of match/capture registers (register 0 =
bit 0, register 1 = bit 1,..., register 15 = bit 15).
0 = registers operate as match registers.
1 = registers operate as capture registers.
0
31:16 REGMOD_H
Each bit controls one pair of match/capture registers (register 0 =
bit 16, register 1 = bit 17,..., register 15 = bit 31).
0 = registers operate as match registers.
1 = registers operate as capture registers.
0
Table 657. SCT output register (OUTPUT - address 0x4000 0050) bit description
Bit
Symbol
Description
Reset
value
15:0
OUT
Writing a 1 to bit n makes the corresponding output HIGH. 0 makes
the corresponding output LOW (output 0 = bit 0, output 1 = bit 1,...,
output 15 = bit 15).
0
31:16
-
Reserved
Table 658. SCT bidirectional output control register (OUTPUTDIRCTRL - address 0x4000 0054) bit description
Bit
Symbol
Valu
e
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 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 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.