Chapter 12 Timer/Counter
12-7
12.3.6 Watchdog
Timer
Mode
The Watchdog Timer mode is used to monitor system anomalies. The software periodically clears the
counter and judges an anomaly to exist if the counter is not cleared within a specified period of time.
Then, either the TX4937 is internally reset or an NMI is signaled to the TX49/H3 core. Set the Timer
mode field (TMTCR2.TMODE) of the Timer Control Register to “10” to set the timer to the Watchdog
Timer mode. This mode can only be used by Timer 2.
Use the Watchdog Reset bit (WR) of the Chip Configuration Register (CCFG) to select whether to
perform an internal reset or signal an NMI. Set this bit to “1” to select Watchdog Reset, or set it to “0”
to select NMI Signaling.
When the timer count reaches the value programmed in Compare Register A (TMCPRA2), the
Watchdog Timer TMCPRA Match Status bit in the Timer Interrupt Status Register (TMTISR2.TWIS) is
set. Either the watchdog timer reset or NMI is issued if the Timer Watchdog Enable bit in the Watchdog
Timer Mode Register (TMWTMR2.TWIE) is set.
When the watchdog timer reset is selected, the Watchdog Reset Status bit in the Chip Configuration
Register (CCFG.WDRST) is set. If the Watchdog Reset External Output bit in the Chip Configuration
Register (CCFG.WDREXEN) is cleared, the entire TX4937 is initialized but the configuration registers.
Setting the Watchdog Reset External Output bit (CCFG.WDREXEN) causes the WDRST* signal to be
asserted. This does not initialize the TX4937. The WDRST* signal remains asserted until the RESET*
signal is asserted. Assertion of the RESET* signal deasserts the WDRST* signal and initializes the
TX4937.
There are three ways of stopping NMI signaling from being performed.
1. Clear the Watchdog Timer Interrupt Status bit (TMTISR2.TWIS) of the timer Interrupt Status
Register.
2. Clear the counter by writing “1” to the Watchdog Timer Clear bit (TMWTMR2.TWC) of the
Watchdog Timer Mode Register.
3. Clear the Watchdog Timer Interrupt Enable bit (TMWTMR2.TWIE) while the Watchdog Timer
Disable bit (TMWTMR2.WDIS) is still set.
It is possible to stop the counter when in the Watchdog Timer mode by clearing the Timer Counter
Enable bit (TMTCR2.TCE) of the Timer Control Register while the Watchdog Timer Disable bit
(TMWTMR2.WDIS) of the Watchdog Timer Mode Register is set to “1”.
It is also possible to stop the counter by clearing the Counter Clock Divide Cycle Enable bit
(TMTCR2.CCDE) of the Timer Control Register when the internal clock is being used as the counter
clock.
It is not possible to directly write “0” to the Watchdog Timer Disable bit (TMWTMR2.WDIS). There
are two ways to clear this bit.
1. Clear the Watchdog Timer Interrupt Enable bit (TMWTMR2.WDIS)
2. Clear the Timer Counter Enable bit (TMTCR2.TCE) of the Timer Control Register
Summary of Contents for TX49 TMPR4937
Page 1: ...64 Bit TX System RISC TX49 Family TMPR4937 Rev 2 0 ...
Page 4: ......
Page 13: ...Table of Contents ix TMPR4937 Revision History 1 ...
Page 14: ...Table of Contents x ...
Page 15: ...Handling Precautions ...
Page 16: ......
Page 18: ...1 Using Toshiba Semiconductors Safely 1 2 ...
Page 40: ...3 General Safety Precautions and Usage Considerations 3 18 ...
Page 42: ...4 Precautions and Usage Considerations 4 2 ...
Page 43: ...TMPR4937 2005 3 Rev 2 0 ...
Page 44: ......
Page 52: ...Chapter 1 Overview and Features 1 6 ...
Page 156: ...Chapter 7 External Bus Controller 7 56 ...
Page 491: ...Chapter 16 Removed 16 1 16 Removed ...
Page 492: ...Chapter 16 Removed 16 2 ...
Page 493: ...Chapter 17 Removed 17 1 17 Removed ...
Page 494: ...Chapter 17 Removed 17 2 ...
Page 495: ...Chapter 18 Removed 18 1 18 Removed ...
Page 496: ...Chapter 18 Removed 18 2 ...
Page 497: ...Chapter 19 Removed 19 1 19 Removed ...
Page 498: ...Chapter 19 Removed 19 2 ...
Page 506: ...Chapter 20 Extended EJTAG Interface 20 8 ...
Page 530: ...Chapter 22 Pinout and Package Information 22 10 ...
Page 542: ...Chapter 24 Parts Number when Ordering 24 2 ...