
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
271 of 368
NXP Semiconductors
UM10375
Chapter 15: LPC13xx 16-bit timer/counters (CT16B0/1)
15.8.5 Prescale Counter register (TMR16B0PC - address 0x4000 C010 and
TMR16B1PC - address 0x4001 0010)
The 16-bit Prescale Counter controls division of PCLK by some constant value before it is
applied to the Timer Counter. This allows control of the relationship between the resolution
of the timer and the maximum time before the timer overflows. The Prescale Counter is
incremented on every PCLK. When it reaches the value stored in the Prescale Register,
the Timer Counter is incremented, and the Prescale Counter is reset on the next PCLK.
This causes the TC to increment on every PCLK when PR = 0, every 2 PCLKs when
PR = 1, etc.
15.8.6 Match Control Register (TMR16B0MCR and TMR16B1MCR)
The Match Control Register is used to control what operations are performed when one of
the Match Registers matches the Timer Counter. The function of each of the bits is shown
in
Table 258: Prescale registers (TMR16B0PR, address 0x4000 C00C and TMR16B1PR
0x4001 000C) bit description
Bit
Symbol
Description
Reset
value
15:0
PR
Prescale max value.
0
31:16
-
Reserved.
-
Table 259: Prescale counter registers (TMR16B0PC, address 0x4001 C010 and TMR16B1PC
0x4000 0010) bit description
Bit
Symbol
Description
Reset
value
15:0
PC
Prescale counter value.
0
31:16
-
Reserved.
-
Table 260. Match Control Register (TMR16B0MCR - address 0x4000 C014 and TMR16B1MCR - address 0x4001 0014)
bit description
Bit
Symbol
Value Description
Reset
value
0
MR0I
Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC.
0
1
Enabled
0
Disabled
1
MR0R
Reset on MR0: the TC will be reset if MR0 matches it.
0
1
Enabled
0
Disabled
2
MR0S
Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches
the TC.
0
1
Enabled
0
Disabled
3
MR1I
Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC.
0
1
Enabled
0
Disabled