UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
109 of 258
NXP Semiconductors
UM10429
Chapter 12: LPC1102 16-bit counter/timers (CT16B0/1)
12.7.4 Prescale Register
The 16-bit Prescale Register specifies the maximum value for the Prescale Counter.
12.7.5 Prescale Counter register
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.
12.7.6 Match Control Register
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 105. Timer counter registers (TMR16B0TC, address 0x4000 C008 and TMR16B1TC
0x4001 0008) bit description
Bit
Symbol
Description
Reset
value
15:0
TC
Timer counter value.
0
31:16
-
Reserved.
-
Table 106. Prescale registers (TMR16B0PR, address 0x4000 C00C and TMR16B1PR
0x4001 000C) bit description
Bit
Symbol
Description
Reset
value
15:0
PR
Prescale counter max value.
0
31:16
-
Reserved.
-
Table 107: Prescale counter registers (TMR16B0PC, address 0x4001 C010 and TMR16B1PC
0x4000 0010) bit description
Bit
Symbol
Description
Reset
value
15:0
PC
Timer prescale counter value.
0
31:16
-
Reserved.
-
Table 108. 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