
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
282 of 487
NXP Semiconductors
UM10800
Chapter 16: LPC82x SCTimer/PWM
•
when BIDIR = 1 and the counter counts down to 0, unless the appropriate
NORELOAD bit is set in the CFG register.
16.6.23 SCT capture control registers 0 to 7 (REGMODEn bit = 1)
If UNIFY = 1 in the CONFIG register, only the _L bits are used.
If UNIFY = 0 in the CONFIG register, this register can be written to as two registers
CAPCTRLn_L and CAPCTRLn_H. Both the L and H registers can be read or written
individually or in a single 32-bit read or write operation.
Based on a selected event, the capture registers can be loaded with the current counter
value when the event occurs.
Each Capture Control register (L, H, or unified 32-bit) controls which events cause loading
of the corresponding Capture register from the counter.
16.6.24 SCT event enable registers 0 to 7
Each event can be enabled in selected states and disabled in others. Each event defined
in the EV_CTRL register has one associated event enable register that can enable or
disable the event for each available state.
Each event has one associated SCT event state mask register that allow this event to
happen in one or more states of the counter selected by the HEVENT bit in the
corresponding EVn_CTRL register.
Table 244. SCT match reload registers 0 to 7 (MATCHREL[0:7], address 0x5000 4200
(MATCHREL0) to 0x5000 421C (MATCHREL7)) bit description (REGMODEn bit = 0)
Bit
Symbol
Description
Reset
value
15:0
RELOADn_L When UNIFY = 0, specifies the 16-bit value to be loaded into the
SCTMATCHn_L register. When UNIFY = 1, specifies the lower 16
bits of the 32-bit value to be loaded into the MATCHn register.
0
31:16 RELOADn_H When UNIFY = 0, specifies the 16-bit to be loaded into the
MATCHn_H register. When UNIFY = 1, specifies the upper 16 bits
of the 32-bit value to be loaded into the MATCHn register.
0
Table 245. SCT capture control registers 0 to 7 (CAPCTRL[0:7], address 0x5000 4200
(CAPCTRL0) to 0x5000 421C (CAPCTRL7)) bit description (REGMODEn bit = 1)
Bit
Symbol
Description
Reset
value
7:0
CAPCONn_L
If bit m is one, event m causes the CAPn_L (UNIFY = 0) or the
CAPn (UNIFY = 1) register to be loaded (event 0 = bit 0, event 1
= bit 1,..., event 7 = bit 7).
0
15:8
-
Reserved.
-
23:16
CAPCONn_H
If bit m is one, event m causes the CAPn_H (UNIFY = 0)
register to be loaded (event 0 = bit 16, event 1 = bit 17,..., event
7 = bit 23).
0
31:24
-
Reserved.
-