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
218 of 464
NXP Semiconductors
UM10850
Chapter 14: LPC5410x Standard counter/timers (CT32B0/1/2/3/4)
14.8 Functional description
shows a timer configured to reset the count and generate an interrupt on match.
The prescaler is set to 2 and the match register set to 6. At the end of the timer cycle
where the match occurs, the timer count is reset. This gives a full length cycle to the
match value. The interrupt indicating that a match occurred is generated in the next clock
after the timer reached the match value.
shows a timer configured to stop and generate an interrupt on match. The
prescaler is again set to 2 and the match register set to 6. In the next clock after the timer
reaches the match value, the timer enable bit in TCR is cleared, and the interrupt
indicating that a match occurred is generated.
CT32B2
0x4000 4000
0x074
-
1
CT32B3
0x4000 8000
0x074
-
1
CT32B4
0x4000 C000
0x074
-
1
Table 264. Address map PWMC register
Peripheral
Base address
Offset
Increment
Dimension
Table 265: PWM Control Register (PWMC, address offset 0x074)) bit description
Bit
Symbol
Value
Description
Reset value
0
PWMEN0
PWM mode enable for channel0.
0
0
Match. CT32Bn_MAT0 is controlled by EM0.
1
PWM. PWM mode is enabled for CT32Bn_MAT0.
1
PWMEN1
PWM mode enable for channel1.
0
0
Match. CT32Bn_MAT01 is controlled by EM1.
1
PWM. PWM mode is enabled for CT32Bn_MAT1.
2
PWMEN2
PWM mode enable for channel2.
0
0
Match. CT32Bn_MAT2 is controlled by EM2.
1
PWM. PWM mode is enabled for CT32Bn_MAT2.
3
PWMEN3
PWM mode enable for channel3.
Note:
It is recommended to use match channel
3 to set the PWM cycle.
0
0
Match. CT32Bn_MAT3 is controlled by EM3.
1
PWM. PWM mode is enabled for CT132Bn_MAT3.
31:4
-
Reserved. Read value is undefined, only zero should be written.
NA
Fig 30. A timer cycle in which PR=2, MRx=6, and both interrupt and reset on match are enabled
3&/.
SUHVFDOH
FRXQWHU
LQWHUUXSW
WLPHU
FRXQWHU
WLPHUFRXQWHU
UHVHW