
458
13.2.2
Timer Control/Status Register (TCSR)
The timer control/status register (TCSR) is an 8-bit read/write register.
(The TCSR differs from
other registers in that it is more difficult to write to. See section 13.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 power-on reset or in standby mode. Bits 2–0 are initialized to
000 by a power-on reset, but retain their values in the standby mode. These bits are not initialized
by a manual reset from an external source (
MRES
), but are initialized by a manual reset from the
WDT.
Bit:
7
6
5
4
3
2
1
0
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
R
R/W
R/W
R/W
•
Bit 7—Overflow Flag (OVF): Indicates that the TCNT has overflowed from H'FF to H'00 in
the interval timer mode. It is not set in the 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 the interval timer mode
•
Bit 6—Timer Mode Select (WT/
IT
): Selects whether to use the WDT as a watchdog timer or
interval timer. When the 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 request to the CPU when
TCNT overflows (initial value)
1
Watchdog timer mode:
WDTOVF
signal output externally when TCNT
overflows. (Section 13.2.3, Reset Control/Status Register (RSTCSR),
describes in detail what happens when TCNT overflows in the watchdog
timer mode.)
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...