Timer Mode Registers (Tmr1Ðtmr4) - Motorola MPC8260 PowerQUICC II User Manual

Motorola processor users manual
Table of Contents

Advertisement

Part IV. Communications Processor Module
Table 17-2. TGCR2 Field Descriptions (Continued)
Bit
Name
4
GM2
Gate mode for TGATE2. This bit is valid only if the gate function is enabled in TMR3 or TMR4.
0 Restart gate mode. TGATE2 is used to enable/disable the count. The falling edge of TGATE2
enables and restarts the count and the rising edge of TGATE2 disables the count.
1 Normal gate mode. This mode is the same as 0, except the falling edge of TGATE2 does not
restart the count value in TCN.
5
Ñ
Reserved, should be cleared.
6
STP3
Stop timer.
0 Normal operation.
1 Reduce power consumption of the timer. This bit stops all clocks to the timer, however it is
possible to read the values while the clock is stopped. The clocks to the timer remain stopped
until the user clears this bit or a hardware reset occurs.
7
RST3
Reset timer.
0 Reset the corresponding timer (a software reset is identical to an external reset).
1 Enable the corresponding timer if STP = 0.
17.2.3 Timer Mode Registers (TMR1ÐTMR4)
The four timer mode registers (TMR1ÐTMR4) are shown in Figure 17-5.
Erratic behavior may occur if TGCR1 and TGCR2 are not initialized before the TMRs.
Only TGCR[RST] can be modiÞed at any time.
Bits
0
1
2
Field
Reset
R/W
Addr
Figure 17-5. Timer Mode Registers (TMR1ÐTMR4)
Table 17-3 describes TMR1ÐTMR4 register Þelds.
Bits
Name
0Ð7
PS
Prescaler value. The prescaler is programmed to divide the clock input by values from 1 to 256. The
value 00000000 divides the clock by 1 and 11111111 divides the clock by 256.
8Ð9
CE
Capture edge and enable interrupt.
00 Disable interrupt on capture event; capture function is disabled.
01 Capture on rising TINx edge only and enable interrupt on capture event.
10 Capture on falling TINx edge only and enable interrupt on capture event.
11 Capture on any TINx edge and enable interrupt on capture event.
17-6
3
4
5
6
PS
0000_0000_0000_0000
0x10D90 (TMR1); 0x10D92 (TMR2); 0x10DA0 (TMR3); 0x10DA2 (TMR4)
Table 17-3. TMRIÐTMR4 Field Descriptions
MPC8260 PowerQUICC II UserÕs Manual
Description
7
8
9
10
11
CE
OM
ORI
R/W
Description
12
13
14
15
FRR
ICLK
GE
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents