
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
459 of 464
NXP Semiconductors
UM10850
Chapter 33: Supplementary information
Match logic . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Capture logic . . . . . . . . . . . . . . . . . . . . . . . . 195
Event selection . . . . . . . . . . . . . . . . . . . . . . . 195
Output generation . . . . . . . . . . . . . . . . . . . . . 196
State logic . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Interrupt generation . . . . . . . . . . . . . . . . . . . 197
Clearing the prescaler . . . . . . . . . . . . . . . . . 197
Match vs. I/O events . . . . . . . . . . . . . . . . . . . 197
SCT operation . . . . . . . . . . . . . . . . . . . . . . . 198
Configure the SCT . . . . . . . . . . . . . . . . . . . 199
13.7.10.1 Configure the counter . . . . . . . . . . . . . . . . . 199
13.7.10.2 Configure the match and capture registers . 199
13.7.10.3 Configure events and event responses . . . . 199
13.7.10.4 Configure multiple states . . . . . . . . . . . . . . . 200
13.7.10.5 Miscellaneous options . . . . . . . . . . . . . . . . . 200
13.7.11
Run the SCT . . . . . . . . . . . . . . . . . . . . . . . . 200
Configure the SCT without using states. . . . 201
SCT PWM Example . . . . . . . . . . . . . . . . . . . 201
Chapter 14: LPC5410x Standard counter/timers (CT32B0/1/2/3/4)
How to read this chapter . . . . . . . . . . . . . . . . 204
Basic configuration . . . . . . . . . . . . . . . . . . . . 204
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 205
General description . . . . . . . . . . . . . . . . . . . . 205
Capture inputs . . . . . . . . . . . . . . . . . . . . . . . 205
Match outputs . . . . . . . . . . . . . . . . . . . . . . . . 205
Applications . . . . . . . . . . . . . . . . . . . . . . . . . 205
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 205
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 207
Multiple CAP and MAT pins . . . . . . . . . . . . . 207
Register description . . . . . . . . . . . . . . . . . . . 208
Interrupt Register . . . . . . . . . . . . . . . . . . . . . 209
Timer Control Register . . . . . . . . . . . . . . . . . 209
Timer Counter registers . . . . . . . . . . . . . . . 210
Prescale register . . . . . . . . . . . . . . . . . . . . . . 211
. . . . . . . . . . . . . . . 211
Match Control Register . . . . . . . . . . . . . . . . . 211
Match Registers . . . . . . . . . . . . . . . . . . . . . . 212
. . . . . . . . . . . . . . 213
Capture Registers . . . . . . . . . . . . . . . . . . . . 214
External Match Register. . . . . . . . . . . . . . . . 214
Count Control Register . . . . . . . . . . . . . . . . 216
PWM Control Register . . . . . . . . . . . . . . . . 217
Functional description . . . . . . . . . . . . . . . . . 218
DMA operation . . . . . . . . . . . . . . . . . . . . . . . 220
Chapter 15: LPC5410x Windowed Watchdog Timer (WWDT)
How to read this chapter . . . . . . . . . . . . . . . . 221
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Basic configuration . . . . . . . . . . . . . . . . . . . . 222
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 222
General description . . . . . . . . . . . . . . . . . . . . 222
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 223
Clocking and power control . . . . . . . . . . . . . 224
Using the WWDT lock features. . . . . . . . . . . 224
15.5.3.1 Disabling the WWDT clock source . . . . . . . . 224
15.5.3.2 Changing the WWDT reload value . . . . . . . 224
Register description . . . . . . . . . . . . . . . . . . . 225
Watchdog mode register . . . . . . . . . . . . . . . 225
Watchdog Timer Constant register. . . . . . . . 227
Watchdog Feed register. . . . . . . . . . . . . . . . 227
Watchdog Timer Value register . . . . . . . . . . 227
Watchdog Timer Warning Interrupt register . 228
Watchdog Timer Window register . . . . . . . . 228
Functional description . . . . . . . . . . . . . . . . . 229
Chapter 16: LPC5410x Real-Time Clock (RTC)
How to read this chapter . . . . . . . . . . . . . . . . 230
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Basic configuration . . . . . . . . . . . . . . . . . . . . 230
RTC timers . . . . . . . . . . . . . . . . . . . . . . . . . . 231
General description . . . . . . . . . . . . . . . . . . . . 232
Real-time clock . . . . . . . . . . . . . . . . . . . . . . . 232
High-resolution/wake-up timer . . . . . . . . . . . 232
RTC power . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Pin description . . . . . . . . . . . . . . . . . . . . . . . 232
Register description . . . . . . . . . . . . . . . . . . . 233
RTC CTRL register . . . . . . . . . . . . . . . . . . . 233
RTC match register . . . . . . . . . . . . . . . . . . . 234
RTC counter register . . . . . . . . . . . . . . . . . . 234
RTC high-resolution/wake-up register . . . . . 235
Chapter 17: LPC5410x Multi-Rate Timer (MRT)
How to read this chapter . . . . . . . . . . . . . . . . 236
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Basic configuration . . . . . . . . . . . . . . . . . . . . 236
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 236
General description . . . . . . . . . . . . . . . . . . . . 236
Repeat interrupt mode . . . . . . . . . . . . . . . . . 237
One-shot interrupt mode . . . . . . . . . . . . . . . 237
One-shot stall mode . . . . . . . . . . . . . . . . . . . 238
Register description . . . . . . . . . . . . . . . . . . . 239