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
182 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
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 HALT event. To define the actual events
that cause the counter to halt (a match, an I/O pin toggle, etc.), see the EVn_CTRL
registers.
Remark:
A HALT condition can only be removed when software clears the HALT bit in the
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
HALT_L and HALT_H. Both the L and H registers can be read or written individually or in a
single 32-bit read or write operation.
13.6.6 SCT stop event select register
The running counter can be stopped by an event. When any of the events selected in this
register occur, counting is suspended, that is the counter stops running and remains at its
current value. Event generation remains enabled, and any event selected in the START
register such as an I/O event or an event generated by the other counter can restart the
counter.
This register specifies which events stop the counter. 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 STOP event. To define the actual event that causes the counter to stop (a
match, an I/O pin toggle, etc.), see the EVn_CTRL register.
Remark:
Software can stop and restart the counter by writing to the 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
STOPT_L and STOP_H. Both the L and H registers can be read or written individually or
in a single 32-bit read or write operation.
13.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.
Table 213. SCT halt event select register (HALT, address 0x5000 400C) bit description
Bit
Symbol
Description
Reset value
15:0
HALTMSK_L
If bit n is one, event n sets the HALT_L bit in the CTRL register (event 0 = bit 0, event
1 = bit 1, …). The number of bits = number of events in this SCT.
0
31:16
HALTMSK_H
If bit n is one, event n sets the HALT_H bit in the CTRL register (event 0 = bit 16,
event 1 = bit 17, …). The number of bits = number of events in this SCT.
0
Table 214. SCT stop event select register (STOP, address 0x5000 4010) bit description
Bit
Symbol
Description
Reset value
15: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, …). The number of bits = number of events in this SCT.
0
31: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, …). The number of bits = number of events in this SCT.
0