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
202 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
same output but triggered by different match values. If input 0 is found HIGH by the next
time the timer is reset, the associated event (EV5) causes the state to change back to
state 0where the events EV0 and EV1 are enabled.
The example uses the following SCT configuration:
•
1 input
•
1 output
•
5 match registers
•
6 events and match 0 used with autolimit function
•
2 states
This application of the SCT uses the following configuration (all register values not listed
in
are set to their default values):
Fig 28. SCT configuration example
67$7(
67$7(
67$7(
6&7
RXWSXW
6&7
FRXQWHU
6&7
LQSXW
PDWFK
HYHQWV
(9
(9
(9
(9
(9
(9
(9
(9
(9
(9
0$7
$872/,0,7
(9
(9
(9
(9
LQSXWWUDQVLWLRQ
HYHQWV
0$7
$872/,0,7
0$7
$872/,0,7
0$7
$872/,0,7
0$7
$872/,0,7
0$7
$872/,0,7
Table 238. SCT configuration example
Configuration
Registers
Setting
Counter
CONFIG
Uses one counter (UNIFY = 1).
CONFIG
Enable the autolimit for MAT0. (AUTOLIMIT = 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, 3, 4 to 0. This is the default.