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
844 of 1269
NXP Semiconductors
UM10503
Chapter 28: LPC43xx State Configurable Timer (SCT)
This application of the SCT uses the following configuration (all register values not listed
in
are set to their default values):
Fig 94. SCT configuration example
STATE 0
STATE 1
STATE 0
SCT
output 0
SCT
counter
SC
input 0
match
events
EV0
EV4
EV4
EV5
EV5
EV1
EV1
EV1
EV1
EV3
EV2
EV6
EV0
EV0
EV0
input transition
events
EV2
EV2
EV2
EV2
EV2
Table 676. SCT configuration example
Configuration
Registers
Setting
Counter
CONFIG
Uses one counter (UNIFY = 1).
CTRL
Uses unidirectional counter (BIDIR_L = 0).
Clock base
CONFIG
Uses default values for clock configuration.
Match/Capture registers
REGMODE
Configure one match register for each match event by setting
REGMODE_L bits 0,1, 2, 4, 5 to 0. This is the default.
Define match values
MATCH0/1/2/4/5
Set a match value MATCH0/1/2/4/5_L in each register.
Define match reload
values
MATCHREL0/1/2/4/5
Set a match reload value RELOAD0/1/2/4/5_L in each register
(same as the match value in this example).
Define when event 0
occurs
EVCTRL0
•
Set COMBMODE = 0x1. Event 0 uses match condition only.
•
Set MATCHSEL = 0. Select match value of match register 0.
Define when event 1
occurs
EVCTRL1
•
Set COMBMODE = 0x1. Event 1 uses match condition only.
•
Set MATCHSEL = 1. Select match value of match register 1.
Define when event 2
occurs
EVCTRL2
•
Set COMBMODE = 0x1. Event 2 uses match condition only.
•
Set MATCHSEL = 2. Select match value of match register 2.
Define when event 3
occurs
EVCTRL3
•
Set COMBMODE = 0x2. Event 3 uses I/O condition only.
•
Set IOSEL = 0. Select input 0.
•
Set IOCOND = 0x2. Input 0 goes LOW.
Define how event 3
changes the state
EVCTRL3
Set STATEV bits to 1 and the STATED bit to 1. Event 3 changes the
state to state 1.