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
395 of 515
NXP Semiconductors
UM11029
Chapter 21: LPC84x SCTimer/PWM
21.6.14 SCTimer/PWM conflict resolution register
The output conflict resolution register specifies what action should be taken if multiple
events (or even the same event) dictate that a given output should be both set and
cleared at the same time.
To enable an event to toggle an output each time the event occurs, set the bits for that
event in both the OUTn_SET and OUTn_CLR registers and set the On_RES value to 0x3
in this register.
9:8
SETCLR4
Set/clear operation on output 4.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.
11:10
SETCLR5
Set/clear operation on output 5.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.
13:12 SETCLR6
Set/clear operation on output 6.
0
0x0
Set and clear do not depend on the direction of any counter.
0x1
Set and clear are reversed when counter L or the unified counter is counting down.
0x2
Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.
31:14 -
-
Reserved
-
Table 397. SCTimer/PWM bidirectional output control register (OUTPUTDIRCTRL, offset 0x054) bit description
Bit
Symbol
Value
Description
Reset
value
Table 398. SCTimer/PWM conflict resolution register (RES, offset 0x058) bit description
Bit
Symbol
Value
Description
Reset
value
1:0
O0RES
Effect of simultaneous set and clear on output 0.
0
0x0
No change.
0x1
Set output (or clear based on the SETCLR0 field in the OUTPUTDIRCTRL
register).
0x2
Clear output (or set based on the SETCLR0 field).
0x3
Toggle output.
3:2
O1RES
Effect of simultaneous set and clear on output 1.
0
0x0
No change.
0x1
Set output (or clear based on the SETCLR1 field in the OUTPUTDIRCTRL
register).
0x2
Clear output (or set based on the SETCLR1 field).
0x3
Toggle output.