![NXP Semiconductors LCP43 Series User Manual Download Page 845](http://html1.mh-extra.com/html/nxp-semiconductors/lcp43-series/lcp43-series_user-manual_1721817845.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
845 of 1269
NXP Semiconductors
UM10503
Chapter 28: LPC43xx State Configurable Timer (SCT)
Define when event 4
occurs
EVCTRL4
•
Set COMBMODE = 0x1. Event 4 uses match condition only.
•
Set MATCHSEL = 0x3. Select match value of match register 4.
Define when event 5
occurs
EVCTRL5
•
Set COMBMODE = 0x1. Event 5 uses match condition only.
•
Set MATCHSEL = 0x3. Select match value of match register 5.
Define when event 6
occurs
EVCTRL6
•
Set COMBMODE = 0x2. Event 6 uses I/O condition only.
•
Set IOSEL = 0. Select input 0.
•
Set IOCOND = 0x1. Input 0 goes HIGH.
Define how event 6
changes the state
EVCTRL6
Set STATEV bits to 0 and the STATED bit to 1. Event 6 changes the
state to state 0.
Define by which events
output 0 is set
OUTPUTSET0
Set SET0 bits 0 (for event 0) and 4 (for event 4) to one to set the
output when these events 0 and 4 occur.
Define by which events
output 0 is cleared
OUTPUTCLR0
Set CLR0 bits 1 (for events 1) and 5 (for event 5) to one to clear the
output when events 1 and 5 occur.
Define which event
resets the counter
LIMIT
Set LIMMASK_L bit 2 to 1 (for event 2 to limit the counter). Set all
other bits to zero.
Configure states event 0
is enabled
EVSTATEMSK0
Set STATEMSK0 bit 0 to 1. Set all other bits to 0. Event 0 is enabled
in state 0.
Configure states event 1
is enabled
EVSTATEMSK1
Set STATEMSK1 bit 0 to 1. Set all other bits to 0. Event 1 is enabled
in state 0.
Configure states event 2
is enabled
EVSTATEMSK2
Set STATEMSK2 bit 0 to 1 and bit 1 to 1. Set all other bits to 0.
Event 2 is enabled in state 0 and state 1.
Configure states event 3
is enabled
EVSTATEMSK3
Set STATEMSK3 bit 0 to 1. Set all other bits to 0. Event 3 is enabled
in state 0.
Configure states event 4
is enabled
EVSTATEMSK4
Set STATEMSK4 bit 1 to 1. Set all other bits to 0. Event 4 is enabled
in state 1.
Configure states event 5
is enabled
EVSTATEMSK5
Set STATEMSK5 bit 1 to 1. Set all other bits to 0. Event 5 is enabled
in state 1.
Configure states event 6
is enabled
EVSTATEMSK6
Set STATEMSK6 bit 1 to 1. Set all other bits to 0. Event 6 is enabled
in state 1.
Table 676. SCT configuration example
Configuration
Registers
Setting