
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
185 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
13.6.11 SCT match/capture mode register
If UNIFY = 1 in the CONFIG register, only the _L bits of this register are used. In this case,
REGMODE_H is not used.
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.
13.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
Table 218. SCT input register (INPUT, address 0x5000 4048) bit description
Bit
Symbol
Description
Reset value
0
AIN0
Input 0 state. Input 0 state on the last SCT clock edge.
-
1
AIN1
Input 1 state. Input 1 state on the last SCT clock edge.
-
2
AIN2
Input 2 state. Input 2 state on the last SCT clock edge.
-
3
AIN3
Input 3 state. Input 3 state on the last SCT clock edge.
-
15:4
AIN…
Input state for the remainder of states implemented in this SCT.
-
16
SIN0
Input 0 state. Input 0 state following the synchronization specified by INSYNC0.
-
17
SIN1
Input 1 state. Input 1 state following the synchronization specified by INSYNC0.
-
18
SIN2
Input 2 state. Input 2 state following the synchronization specified by INSYNC0.
-
19
SIN3
Input 3 state. Input 3 state following the synchronization specified by INSYNC0.
-
31:20
SIN…
Input state for the remainder of states implemented in this SCT.
-
Table 219. SCT match/capture mode register (REGMODE, address 0x5000 404C) bit description
Bit
Symbol
Description
Reset value
15:0
REGMOD_L
Each bit controls one match/capture register (register 0 = bit 0, register 1 = bit 1, …).
The number of bits = number of match/captures in this SCT.
0 = register operates as match register.
1 = register operates as capture register.
0
31:16
REGMOD_H
Each bit controls one match/capture register (register 0 = bit 16, register 1 = bit 17,
…). The number of bits = number of match/captures in this SCT.
0 = register operates as match registers.
1 = register operates as capture registers.
0