English
Language : 

COP8AME9 Datasheet, PDF (35/83 Pages) National Semiconductor (TI) – 8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset
12.0 Timers (Continued)
12.4 TIMER T2 OPERATION IN IDLE MODE
Timer T2 has a special mode that allows it to be operated in
IDLE mode. To use this mode, T2 must be configured as a
high speed timer, by setting T2HS = 1, and, also, configured
to run in the IDLE mode by setting the T2IDLE bit to 1 in the
HSTCR register. Table 16 shows the modes of operation
allowed for T2 during the IDLE mode. All the T2 modes are
allowed except the following:
• Using the instruction cycle clock (tc)
• PWM: TxA Toggle
T2 should not be left in this special mode when entering
HALT. The T2IDLE bit must be reset to 0 before entering the
HALT mode to ensure that T2 remains in the same state
when exiting HALT as it was prior to entering HALT.
TABLE 16. Timer T2 Mode Control Bits in IDLE Mode
Mode
1
2
3
TxC3
1
1
0
0
0
1
0
1
TxC2
0
0
0
0
1
1
1
1
TxC1
1
0
0
1
0
0
1
1
Description
Not Allowed
PWM: No TxA
Toggle
External Event
Counter
External Event
Counter
Captures:
TxA Pos. Edge
TxB Pos. Edge
Captures:
TxA Pos. Edge
TxB Neg. Edge
Captures:
TxA Neg. Edge
TxB Pos. Edge
Captures:
TxA Neg. Edge
TxB Neg. Edge
Interrupt A
Source
Interrupt B
Source
Timer
Counts On
Autoreload RA Autoreload RB MCLK
Timer Underflow Pos. TxB Edge
Timer Underflow Pos. TxB Edge
Pos. TxA Edge
or Timer
Underflow
Pos. TxA
Edge or Timer
Underflow
Neg. TxA
Edge or Timer
Underflow
Neg. TxA
Edge or Timer
Underflow
Pos. TxB Edge
Pos.TxB
Edge
Pos. TxB
Edge
Neg. TxB
Edge
TxA Pos.
Edge
TxA Neg.
Edge
MCLK
MCLK
MCLK
MCLK
12.4.1 Timer T2 Clocking Scheme
Table 17 shows the relationship between the T2 clock, the
Processor clock, and the T0 clock. Note that the T2 clock is
always equal to the processor clock frequency when en-
abled.
TABLE 17. Timer T2 Clocking Scheme
Device Clock Mode
High Speed
Dual Clock
Low Speed
Idle Mode
0
1
0
1
0
1
T0 Clock
HS Clock
HS Clock
LS Clock
LS Clock
LS Clock
LS Clock
Procesor
Clock
HS Clock
Off
HS Clock
Off
LS Clock
Off
T2 Clock if
T2IDLE = 1
HS Clock
HS Clock
HS Clock
HS Clock
LS Clock
LS Clock
T2 Clock if
T2IDLE = 0
HS Clock
Off
HS Clock
Off
LS Clock
Off
35
www.national.com