![NXP Semiconductors LPC84x Скачать руководство пользователя страница 364](http://html.mh-extra.com/html/nxp-semiconductors/lpc84x/lpc84x_user-manual_1721742364.webp)
UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
364 of 515
NXP Semiconductors
UM11029
Chapter 20: LPC84x Standard counter/timer (CTIMER)
20.7.4 Prescale register
The 32-bit Prescale register specifies the maximum value for the Prescale Counter.
20.7.5 Prescale Counter register
The 32-bit Prescale Counter controls division of the APB bus clock by some constant
value before it is applied to the Timer Counter. This allows control of the relationship of the
resolution of the timer versus the maximum time before the timer overflows. The Prescale
Counter is incremented on every APB bus clock. When it reaches the value stored in the
Prescale register, the Timer Counter is incremented and the Prescale Counter is reset on
the next APB bus clock. This causes the Timer Counter to increment on every APB bus
clock when PR = 0, every 2 APB bus clocks when PR = 1, etc.
20.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.
Table 374. Timer prescale register (PR, offset 0x0C) bit description
Bit
Symbol
Description
Reset value
31:0
PRVAL
Prescale counter value.
0
Table 375. Timer prescale counter register (PC, offset 0x10) bit description
Bit
Symbol
Description
Reset value
31:0
PCVAL
Prescale counter value.
0
Table 376. Match Control Register (MCR, offset 0x14) bit description
Bit
Symbol
Description
Reset
Value
0
MR0I
Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC.
0 = disabled. 1 = enabled.
0
1
MR0R
Reset on MR0: the TC will be reset if MR0 matches it. 0 = disabled. 1 = enabled.
0
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 = disabled. 1 = enabled.
0
3
MR1I
Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC.
0 = disabled. 1 = enabled. 0 = disabled. 1 = enabled.
0
4
MR1R
Reset on MR1: the TC will be reset if MR1 matches it.
0 = disabled. 1 = enabled.
0
5
MR1S
Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC.
0 = disabled. 1 = enabled.
0
6
MR2I
Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC.
0 = disabled. 1 = enabled.
0
7
MR2R
Reset on MR2: the TC will be reset if MR2 matches it.
0 = disabled. 1 = enabled.
0
8
MR2S
Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC.
0 = disabled. 1 = enabled.
0
9
MR3I
Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC.
0 = disabled. 1 = enabled.
0
10
MR3R
Reset on MR3: the TC will be reset if MR3 matches it.
0 = disabled. 1 = enabled.
0