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
108 of 258
NXP Semiconductors
UM10429
Chapter 12: LPC1102 16-bit counter/timers (CT16B0/1)
[1]
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
12.7.1 Interrupt Register (TMR16B0IR and TMR16B1IR)
The Interrupt Register (IR) consists of four bits for the match interrupts and one bit for the
capture interrupt. If an interrupt is generated then the corresponding bit in the IR will be
HIGH. Otherwise, the bit will be LOW. Writing a logic one to the corresponding IR bit will
reset the interrupt. Writing a zero has no effect.
12.7.2 Timer Control Register (TMR16B0TCR and TMR16B1TCR)
The Timer Control Register (TCR) is used to control the operation of the counter/timer.
12.7.3 Timer Counter register
The 16-bit Timer Counter is incremented when the Prescale Counter reaches its terminal
count. Unless it is reset before reaching its upper limit, the TC will count up through the
value 0x0000 FFFF and then wrap back to the value 0x0000 0000. This event does not
cause an interrupt, but a Match register can be used to detect an overflow if needed.
-
-
0x040 -
0x06C
Reserved
-
-
-
0x070
Reserved
-
TMR16B1PWMC R/W
0x074
PWM Control Register (PWMCON). The PWMCON enables PWM mode
for the external match pins CT16B1_MAT[1:0].
0
Table 102. Register overview: 16-bit counter/timer 1 CT16B1 (base address 0x4001 0000)
…continued
Name
Access
Address
offset
Description
Reset
value
[1]
Table 103. Interrupt Register (TMR16B0IR - address 0x4000 C000 and TMR16B1IR - address 0x4001 0000) bit
description
Bit
Symbol
Description
Reset value
0
MR0 Interrupt
Interrupt flag for match channel 0.
0
1
MR1 Interrupt
Interrupt flag for match channel 1.
0
2
MR2 Interrupt
Interrupt flag for match channel 2.
0
3
MR3 Interrupt
Interrupt flag for match channel 3.
0
31:4
-
Reserved
-
Table 104. Timer Control Register (TMR16B0TCR - address 0x4000 C004 and TMR16B1TCR -
address 0x4001 0004) bit description
Bit
Symbol
Description
Reset value
0
Counter Enable When one, the Timer Counter and Prescale Counter are
enabled for counting. When zero, the counters are
disabled.
0
1
Counter Reset
When one, the Timer Counter and the Prescale Counter
are synchronously reset on the next positive edge of
PCLK. The counters remain reset until TCR[1] is
returned to zero.
0
31:2
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA