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
193 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
13.6.26 SCT output set registers 0 to 7
Based on a selected event, each SCT output can be set.
There is one output set register for each SCT output which selects which events can set
that output. Each bit of an output set register is associated with a different event (bit 0 with
event 0, etc.). A selected event can set or clear the output depending on the setting of the
SETCLRn field in the OUTPUTDIRCTRL register. To define the actual event that sets the
output (a match, an I/O pin toggle, etc.), see the EVn_CTRL register.
Remark:
If the SCTimer/PWM is operating as two 16-bit counters, events can only modify
the state of the outputs when neither counter is halted. This is true regardless of what
triggered the event.
13.6.27 SCT output clear registers 0 to 7
Based on a selected event, each SCT output can be cleared.
There is one register for each SCT output which selects which events can clear that
output. Each bit of an output clear register is associated with a different event (bit 0 with
event 0, etc.). A selected event can clear or set the output depending on the setting of the
SETCLRn field in the OUTPUTDIRCTRL register. To define the actual event that clears
the output (a match, an I/O pin toggle, etc.), see the EVn_CTRL register.
20
MATCHMEM
If this bit is one and the COMBMODE field specifies a match component to the
triggering of this event, then a match is considered to be active whenever the
counter value is GREATER THAN OR EQUAL TO the value specified in the match
register when counting up, LESS THEN OR EQUAL TO the match value when
counting down.
If this bit is zero, a match is only be active during the cycle when the counter is
equal to the match value.
0
22:21
DIRECTION
Direction qualifier for event generation. This field only applies when the counters
are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is
reserved.
0
0x0
Direction independent. This event is triggered regardless of the count direction.
0x1
Counting up. This event is triggered only during up-counting when BIDIR = 1.
0x2
Counting down. This event is triggered only during down-counting when BIDIR = 1.
31:23
-
Reserved
-
Table 234. SCT event control register 0 to 12 (EV[0:12]_CTRL, address 0x5000 4304 (EV0_CTRL) to 0x5000 4364
(EV12_CTRL)) bit description
Bit
Symbol
Value
Description
Reset
value
Table 235. SCT output set register (OUT[0:7]_SET, address 0x5000 4500 (OUT0_SET) to 0x5000 4538 (OUT7_SET) bit
description
Bit
Symbol
Description
Reset
value
15:0
SET
A 1 in bit m selects event m to set output n (or clear it if SETCLRn = 0x1 or 0x2) event 0 = bit 0,
event 1 = bit 1, …up to the number of bits = number of events in this SCT.
When the counter is used in bi-directional mode, it is possible to reverse the action specified by
the output set and clear registers when counting down, See the OUTPUTCTRL register.
0
31:16
-
Reserved
-