
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
273 of 487
NXP Semiconductors
UM10800
Chapter 16: LPC82x SCTimer/PWM
16.6.7 SCT start event select register
The stopped counter can be re-started by an event. When any of the events selected in
this register occur, counting is restarted from the current counter value.
Each bit of the register is associated with a different event (bit 0 with event 0, etc.). Setting
a bit will cause its associated event to serve as a START event. When any START event
occurs, hardware will clear the STOP bit in the Control Register CTRL. Note that a START
event has no effect on the HALT bit. Only software can remove a HALT condition. To
define the actual event that starts the counter (an I/O pin toggle or an event generated by
the other running counter in dual-counter mode), see the EVn_CTRL register.
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
START_L and START_H. Both the L and H registers can be read or written individually or
in a single 32-bit read or write operation.
16.6.8 SCT counter register
If UNIFY = 1 in the CONFIG register, the counter is a unified 32-bit register and both the
_L and _H bits are used.
If UNIFY = 0 in the CONFIG register, this register can be written to as two registers
COUNT_L and COUNT_H. Both the L and H registers can be read or written individually
or in a single 32-bit read or write operation. In this case, the L and H registers count
independently under the control of the other registers.
Table 227. SCT stop event select register (STOP, address 0x5000 4010) bit description
Bit
Symbol
Description
Reset
value
7:0
STOPMSK_L
If bit n is one, event n sets the STOP_L bit in the CTRL register
(event 0 = bit 0, event 1 = bit 1, event 7 = bit 7).
0
15:8
-
Reserved.
-
23:16 STOPMSK_H
If bit n is one, event n sets the STOP_H bit in the CTRL register
(event 0 = bit 16, event 1 = bit 17, event 7= bit 23).
0
31:24 -
Reserved.
-
Table 228. SCT start event select register (START, address 0x5000 4014) bit description
Bit
Symbol
Description
Reset
value
7:0
STARTMSK_L
If bit n is one, event n clears the STOP_L bit in the CTRL
register (event 0 = bit 0, event 1 = bit 1, event 7 = bit 7).
0
15:8
-
Reserved.
-
23:16 STARTMSK_H
If bit n is one, event n clears the STOP_H bit in the CTRL
register (event 0 = bit 16, event 1 = bit 17, event 7 = bit 23).
0
31:24 -
Reserved.
-