Chapter 26 eTimer
MPC5602P Microcontroller Reference Manual, Rev. 4
720
Freescale Semiconductor
26.6.2.8
Control register 1 (CTRL1)
Address: Base + 0x000C (eTimer0)
Base + 0x002C (eTimer1)
Base + 0x004C (eTimer2)
Base + 0x006C (eTimer3)
Base + 0x008C (eTimer4)
Base + 0x00AC (eTimer5)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
CNTR[15:0]
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 26-9. Counter register (CNTR)
Table 26-8. CNTR field descriptions
Field
Description
CNTR[15:0]
Contains the count value for this channel of the eTimer module.
Note:
This register is not byte accessible.
Address: Base + 0x000E(eTimer0)
Base + 0x002E (eTimer1)
Base + 0x004E (eTimer2)
Base + 0x006E (eTimer3)
Base + 0x008E (eTimer4)
Base + 0x00AE (eTimer5)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
CNTMODE[2:0]
PRISRC[4:0]
ONCE
LENGTH
DIR
SECSRC[4:0]
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 26-10. Control register 1 (CTRL1)
Table 26-9. CTRL1 field descriptions
Field
Description
CNTMODE[2:0]
Count Mode
These bits control the basic counting and behavior of the counter.
000 No Operation.
001 Count rising edges of primary source. Rising edges counted only when PIPS = 0. Falling
edges counted when PIPS = 1. If primary count source is IP bus clock, only rising edges
are counted regardless of PIPS value.
010 Count rising and falling edges of primary source. IP Bus clock divide by 1 can not be used
as a primary count source in edge count mode.
011 Count rising edges of primary source while secondary input high active.
100 Quadrature count mode, uses primary and secondary sources.
101 Count primary source rising edges, secondary source specifies direction (1 = minus).
Rising edges counted only when PIPS = 0. Falling edges counted when PIPS = 1.
110 Edge of secondary source triggers primary count till compare.
111 Cascaded counter mode, up/down. Primary count source must be set to one of the counter
outputs.
PRISRC
Primary Count Source
These bits select the primary count source. See
.
Note:
A timer cannot select its own output as its primary count source. If this is done, the timer
will not count.