UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
167 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
•
State control features:
–
A state is defined by events that can happen in the state while the counter is
running.
–
A state changes into another state as a result of an event.
–
Each event can be assigned to one or more states.
–
State variable allows sequencing across multiple counter cycles.
13.3 Basic configuration
Configure the SCT as follows:
•
Enable the clock to the SCTimer/PWM (SCT) in the AHBCLKCTRL1 register
(
) to enable the register interface and the peripheral clock.
•
Clear the SCT peripheral reset using the PRESETCTRL register (
).
•
The SCT uses interrupt in slot #16 in the NVIC (
•
Use the IOCON registers to connect the SCT outputs to external pins. See
.
•
The SCT DMA request lines are connected to the DMA trigger inputs via the
DMA_ITRIG_PINMUX registers. See
Section 8.6.2 “DMA trigger input mux registers 0
.
Fig 18. SCT clocking
&ORFN
SURFHVVLQJ
6&7
6<6&21
6\VWHPFORFN
$+%&/.&75/>@
Fig 19. SCT connections
$'&WKUHVKROGLQWHUUXSW
GHEXJKDOWHG
6&7
3,2B
6&7B287SLQV
3,2B
3,2B
3,2B
3,2B
3,2B
6&7LQSXWV
6&7RXWSXWV
6&7RXWSXWV
WKURXJK
6&7RXWSXW
6&7'0$
UHTXHVWV$DQG%
'0$WULJJHU
LQSXWPX[
$'&WULJJHU
LQSXWV
,2&21VHOHFWDEOH
IXQFWLRQV