338
12.2.2
Timer Control/Status Register (TCSR)
The timer control/status register (TCSR) is an eight-bit read/write register. TCSR differs from
other registers in being more difficult to write. See section 12.2.4, Register Access, for details. Its
functions include selecting the timer mode and clock source. Bits 7–5 are initialized to 000 by a
reset and in standby mode. Bits 2–0 are initialized to 000 by a reset, but retain their values in
standby mode.
Bit:
7
6
5
4
3
2
1
0
Bit name:
OVF
WT/
IT
TME
—
—
CKS2
CKS1
CKS0
Initial value:
0
0
0
1
1
0
0
0
R/W:
R/(W)
*
R/W
R/W
—
—
R/W
R/W
R/W
Note:
*
Only 0 can be written, to clear the flag.
•
Bit 7 (Overflow Flag (OVF)): OVF indicates that TCNT has overflowed from H'FF to H'00 in
interval timer mode. It is not set in watchdog timer mode.
Bit 7: OVF
Description
0
No overflow of TCNT in interval timer mode
(Initial value)
Cleared by reading OVF, then writing 0 in OVF
1
TCNT overflow in interval timer mode
•
Bit 6 (Timer Mode Select (WT/
IT
)): WT/
IT
selects whether to use the WDT as a watchdog
timer or interval timer. When TCNT overflows, the WDT either generates an interval timer
interrupt (ITI) or generates a
WDTOVF
signal, depending on the mode selected.
Bit 6: WT/
IT
Description
0
Interval timer mode: interval timer interrupt to the CPU when TCNT
overflows
(Initial value)
1
Watchdog timer mode:
WDTOVF
signal output externally when TCNT
overflows. Section 12.2.3, Reset Control/Status Register (RSTCSR),
describes in detail what happens when TCNT overflows in watchdog
timer mode.
•
Bit 5 (Timer Enable (TME)): TME enables or disables the timer.
Bit 5: TME
Description
0
Timer disabled: TCNT is initialized to H'00 and count-up stops
(Initial value)
1
Timer enabled: TCNT starts counting. A
WDTOVF
signal or interrupt is
generated when TCNT overflows.
Summary of Contents for HD6417032
Page 21: ......
Page 35: ...xiv ...
Page 85: ...50 ...
Page 101: ...66 ...
Page 129: ...94 ...
Page 135: ...100 ...
Page 343: ...308 ...
Page 369: ...334 ...
Page 383: ...348 ...
Page 475: ...440 ...
Page 525: ...490 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 18 Self Refresh ...
Page 578: ...543 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 62 Self Refresh ...
Page 689: ...654 ...