
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
287 of 487
NXP Semiconductors
UM10800
Chapter 16: LPC82x SCTimer/PWM
16.7.4 Output generation
shows one output slice of the SCT.
16.7.5 State logic
The SCT can be configured as a timer/counter with multiple programmable states. The
states are user-defined through the events that can be captured in each particular state. In
a multi-state SCT. the SCT can change from one state to another state when a
user-defined event triggers a state change. The state change is triggered through each
event’s EV_CTRL register in one of the following ways:
•
The event can increment the current state number by a new value.
•
The event can write a new state value.
If an event increments the state number beyond the number of available states, the SCT
enters a locked state in which all further events are ignored while the counter is still
running. Software must interfere to change out of this state.
Fig 39. Event selection
select
event i
select
MATCHSELi
inputs
IOSELi
select
STATEMASKi
COMBMODEi
IOCONDi
outputs
OUTSELi
HEVENTi
H STATE
L STATE
H matches
L matches
Fig 40. Output slice i
Set
register i
Clear
register i
OUT
reg
Select
Events
Output i
NoChangeConflict i
OiRES
SETCLRi
SCT clock