| Electronic Components Datasheet Search |
|
7513 Datasheet(PDF) 45 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7513 Datasheet(HTML) 45 Page - Renesas Technology Corp |
|
45 / 66 page ![]() 44 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 7513 Group WATCHDOG TIMER The watchdog timer gives a mean of returning to the reset status when a program cannot run on a normal loop (for example, be- cause of a software runaway). The watchdog timer consists of an 8-bit watchdog timer L and a 6- bit watchdog timer H. At reset or writing to the watchdog timer control register (address 003716), the watchdog timer is set to “3FFF16.” When any data is not written to the watchdog timer con- trol register (address 003716) after reset, the watchdog timer is in stop state. The watchdog timer starts to count down from “3FFF16” by writing an optional value into the watchdog timer control regis- ter (address 003716) and an internal reset occurs at an underflow. Accordingly, programming is usually performed so that writing to the watchdog timer control register (address 003716) may be started before an underflow. The watchdog timer does not function when an optional value has not been written to the watchdog timer control register (address 003716). When address 003716 is read, the following values are read: qvalue of high-order 6-bit counter qvalue of STP instruction disable bit qvalue of count source selection bit. When bit 6 of the watchdog timer control register (address 003716) is set to “0,” the STP instruction is valid. The STP instruction is disabled by rewriting this bit to “1.” At this time, if the STP instruc- tion is executed, it is processed as an undefined instruction, so that a reset occurs inside. This bit cannot be rewritten to “0” by programming. This bit is “0” immediately after reset. The count source of the watchdog timer becomes the system clock φ divided by 8. The detection time in this case is set to 8.19 s at f(XCIN) = 32 kHz and 65.536 ms at f(XIN) = 4 MHz. However, count source of high-order 6-bit timer can be connected to a signal divided system clock by 8 directly by writing the bit 7 of the watchdog timer control register (address 003716) to “1.” The detection time in this case is set to 32 ms at f(XCIN) = 32 kHz and 256 µs at f(XIN) = 4 MHz. There is no difference in the detection time between the middle-speed mode and the high-speed mode. Fig. 46 Block diagram of watchdog timer Fig. 47 Structure of watchdog timer control register Fig. 48 Timing of reset output Internal reset signal Watchdog timer detection ≅ 2 ms (f(XIN) = 4 MHZ) f(XIN) XIN Data bus XCIN “1” “0” Internal system clock selection bit “0” “1” 1/16 Watchdog timer count source selection bit Reset circuit Undefined instruction Reset “3F16” is set when watchdog timer is written to. Internal reset RESETIN Reset release time wait “FF16” is set when watchdog timer is written to. STP instruction STP instruction disable bit Watchdog timer H (6) Watchdog timer L (8) b7 b0 Watchdog timer register (address 003716) WDTCON STP instruction disable bit 0 : STP instruction enabled 1 : STP instruction disabled Watchdog timer H count source selecion bit 0 : Internal system clock/2048 (f(XIN)/4096) 1 : Internal system clock/8 (f(XIN)/16) Watchdog timer H (for read-out of high-order 6 bit) “3FFF16” is set to the watchdog timer by writing values to this address. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |