UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
403 of 515
NXP Semiconductors
UM11029
Chapter 21: LPC84x SCTimer/PWM
Note that it is possible to reverse the action specified by “SET” and “CLR” when counting
down in bi-directional mode depending on the setting of the SETCLRn field in the
OUTPUTDIRCTRL register. To define the creation of the actual event(s) that sets an
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.
21.6.27 SCTimer/PWM output clear registers 0 to 6
Each SCT output can be cleared on the occurrence of one or more specified events.
There is one register for each SCTimer/PWM 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.).
Note that it is possible to reverse the action specified by “SET” and “CLR” when counting
down in bi-directional mode depending on the setting of the SETCLRn field in the
OUTPUTDIRCTRL register. To define the creation of the actual event(s) that sets an
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.
Table 411. SCTimer/PWM output set register (OUT[0:6]_SET, offset 0x500 (OUT0_SET) to
0x530 (OUT6_SET) bit description
Bit
Symbol
Description
Reset
value
7: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,..., event 7 = bit 7.
When the counter is used in bidirectional 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:8
-
Reserved
-
Table 412. SCTimer/PWM output clear register (OUT[0:6]_CLR, offset 0x504 (OUT0_CLR) to
0x534 (OUT6_CLR)) bit description
Bit
Symbol
Description
Reset
value
7:0
CLR
A 1 in bit m selects event m to clear output n (or set it if SETCLRn =
0x1 or 0x2) event 0 = bit 0, event 1 = bit 1,..., event 7 = bit 7.
When the counter is used in bidirectional 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:8
-
Reserved
-