Chapter 10: Programmable Timer/Contents
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
10-20
10.5.3 Watchdog Timer Mode Operation
This mode is set up by setting the timer mode (TMODE) field of the Timer Control Register
(TMTCR) to 0b10 (binary). In this mode, when the Timer/Counter Enable (TCE) bit of the
TMTCR register is set to “1”, the 24-bit counter begins counting. When the count value
reaches the value in register TMCPRA, the comparator sets the Watchdog Timer Interrupt
Status bit (TWIS) of the Timer Interrupt Status Register (TMTISR) to “1”. This also causes
the interrupt control logic to assert the Watchdog Timer Interrupt Request signal
WDTINTREQ*, if the Watchdog Timer Interrupt Enable bit (TWIE) in the Watchdog Timer
Mode Register (TMWTMR) is set to “1”. If the TWIE bit is “0”, WDTINTREQ* is masked, and
is thus not asserted. Writing a “1” to the TWIS bit is ignored.
To clear the 24-bit counter, the Watchdog Timer Clear (TWC) bit of the Watchdog Timer
Mode Register (TMWTMR) is set to “1”. The TWC bit is automatically reset to “0” after the
24-bit counter is cleared.
When the Timer/Counter Enable bit (TCE) is cleared and the Watchdog Timer Disable
(WDIS) bit of the TMWTMR register is set to “1”, the Watchdog Timer Counter is disabled.
However, when the WDIS bit is “0”, count operation cannot be stopped by clearing the TCE
bit to “0”. In addition, the TWIE bit cannot be cleared while the WDIS bit is “0”. Another way
to disable the watchdog timer (by masking the interrupt) is to clear the Watchdog Timer
Enable bit (TWIE) while WDIS bit is set to “1”. The WDIS bit is automatically cleared when
the Watchdog Timer becomes disabled by one of the methods described above.
The count value for the Watchdog Timer can be read from the TMTRR register.
TMODE10
TCE
1
TWC
TWIE
WDIS
CRE
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
10
TWIS
Time
Count Value
0x000000
WDTINTREQ*
TMCPRA Compare Value
Reset State
Reset State
Figure 10-6 Watchdog Timer Mode Operation of Timer/Counter
Содержание TMPR7901
Страница 1: ...TX System RISC TX79 Family TMPR7901 Symmetric 2 way superscalar 64 bit CPU ...
Страница 14: ...Handling Precautions ...
Страница 15: ......
Страница 17: ...1 Using Toshiba Semiconductors Safely 1 2 ...
Страница 41: ...4 Precautions and Usage Considerations 4 2 ...
Страница 42: ...TX7901 User s Manual Rev 6 30T November 2001 DOCUMENT NUMBER M 99 00004 07 ...
Страница 43: ......
Страница 259: ...Chapter 13 Removed TX7901 User s Manual Rev 6 30T Nov 2001 13 1 13 Removed ...
Страница 260: ...Chapter 13 Removed TX7901 User s Manual Rev 6 30T Nov 2001 13 2 ...