
462
H'A5
H'FFFF8612
Address:
Writing 0 to the WOVF bit
15
8
7
0
H'00
H'5A
H'FFFF8612
Address:
Writing to the RSTE and RSTS bits
15
8
7
0
Write data
Figure 13.3 Writing to the RSTCSR
Reading from the TCNT, TCSR, and RSTCSR: TCNT, TCSR, and RSTCSR are read like
other registers. Use byte transfer instructions. The read addresses are H'FFFF8610 for the TCSR,
H'FFFF8611 for the TCNT, and H'FFFF8613 for the RSTCSR.
13.3
Operation
13.3.1
Watchdog Timer Mode
To use the WDT as a watchdog timer, set the WT/
IT
and TME bits of the TCSR to 1. Software
must prevent TCNT overflow by rewriting the TCNT value (normally by writing H'00) before
overflow occurs. No TCNT overflows will occur while the system is operating normally, but if the
TCNT fails to be rewritten and overflows occur due to a system crash or the like, a
WDTOVF
signal is output externally (figure 13.4). The
WDTOVF
signal can be used to reset the system. The
WDTOVF
signal is output for 128
φ
clock cycles.
If the RSTE bit in the RSTCSR is set to 1, a signal to reset the chip will be generated internally
simultaneous to the
WDTOVF
signal when TCNT overflows. Either a power-on reset or a manual
reset can be selected by the RSTS bit. The internal reset signal is output for 512
φ
clock cycles.
When a watchdog overflow reset is generated simultaneously with a reset input at the
RES
pin, the
RES
reset takes priority, and the WOVF bit is cleared to 0.
The following are not initialized a WDT reset signal:
•
The MTU’s POE (Port Output Enable) function register
•
PFC (Pin Function Controller) function register
•
I/O port register
Initializing is only possible by external power-on reset.
Содержание 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 ...