DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
124 of 313
NXP Semiconductors
UM10601
Chapter 10: LPC800 State Configurable Timer (SCT)
10.6.11 SCT output register
The SCT supports 4 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.
10.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 117. SCT match/capture registers mode register (REGMODE, address 0x5000 404C)
bit description
Bit
Symbol
Description
Reset
value
4:0
REGMOD_L
Each bit controls one pair of match/capture registers (register 0 =
bit 0, register 1 = bit 1,..., register 4 = bit 4).
0 = registers operate as match registers.
1 = registers operate as capture registers.
0
15:5
-
Reserved.
-
19:16 REGMOD_H
Each bit controls one pair of match/capture registers (register 0 =
bit 16, register 1 = bit 17,..., register 4 = bit 19).
0 = registers operate as match registers.
1 = registers operate as capture registers.
0
31:20 -
Reserved.
-
Table 118. SCT output register (OUTPUT, address 0x5000 4050) bit description
Bit
Symbol
Description
Reset
value
3: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 3 = bit 3).
0
31:4
-
Reserved
Table 119. 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 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.