
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
285 of 487
NXP Semiconductors
UM10800
Chapter 16: LPC82x SCTimer/PWM
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.
16.6.27 SCT output clear registers 0 to 5
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.
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 248. SCT output set register (OUT[0:5]_SET, address 0x5000 4500 (OUT0_SET) to
0x5000 4528 (OUT5_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 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:8
-
Reserved
Table 249. SCT output clear register (OUT[0:5]_CLR, address 0x5000 4504 (OUT0_CLR) to
0x5000 452C (OUT5_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 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:8
-
Reserved