UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
191 of 268
NXP Semiconductors
UM10413
MPT612 User manual
22.5 Register
description
Each timer counter contains the registers shown in
. More detailed descriptions
follow.
[1]
Reset value reflects the data stored in used bits00 only. It does not include the content of reserved bits.
Table 175. Timer counter pin description
Pin
Type
Description
MAT3[3..0]
output
external match output 0/1. If a match register 0/1 (MR3:0) equals the
Timer Counter (TC), this output can either toggle, go LOW, go HIGH, or
do nothing. External match register (EMR) and PWM control register
(PWMCON) control the functionality of this output.
all Match signals and their selection pins are listed below:
•
MAT3.0: PIO21
•
MAT3.1: PIO0
•
MAT3.2: PIO1
•
MAT3.3: PIO30
Table 176. Timer counter3 register map
Generic
name
Description
Access
Reset
value
Timer counter3
address and name
IR
interrupt register. IR can be written to clear interrupts. IR can be read
to identify which of eight possible interrupt sources are pending.
R/W
0
0xE007 4000
T3IR
TCR
timer control register. TCR is used to control timer counter functions.
Timer counter can be disabled or reset by TCR.
R/W
0
0xE007 4004
T3TCR
TC
timer counter. 16-bit TC is incremented every PR+1 cycles of PCLK.
TC is controlled by TCR.
R/W
0
0xE007 4008
T3TC
PR
prescale register. Prescale counter (below) is equal to this value.
Next clock increments TC and clears PC.
R/W
0
0xE007 400C
T3PR
PC
prescale counter. 16-bit PC is a counter which is incremented to the
value stored in PR. When the value in PR is reached, TC is
incremented and PC is cleared. PC is observable and controllable
via the bus interface.
R/W
0
0xE007 4010
T3PC
MCR
match control register. MCR is used to control if an interrupt is
generated and if TC is reset when a match occurs.
R/W
0
0xE007 4014
T3MCR
MR0
match register 0. MR0 can be enabled through MCR to reset TC,
stop both TC and PC, and/or generate an interrupt every time MR0
matches TC.
R/W
0
0xE007 4018
T3MR0
MR1
match register 1; see MR0 description
R/W
0
0xE007 401C
T3MR1
MR2
match register 2; see MR0 description
R/W
0
0xE007 4020
T3MR2
MR3
match register 3; see MR0 description
R/W
0
0xE007 4024
T3MR3
EMR
external match register. EMR controls the match function and the
external match pins MAT1.3:0.
R/W
0
0xE007 403C
T3EMR
CTCR
count control register. CTCR selects between Timer and Counter
mode, and in Counter mode selects signal and edge(s) for counting.
R/W
0
0xE007 4070
T3CTCR
PWMCON PWM control register. PWMCON enables PWM mode for the
external match pins MAT3.3:0.
R/W
0
0xE007 4074
PWM3CON