English
Language : 

FMS7401 Datasheet, PDF (42/80 Pages) Fairchild Semiconductor – Digital Power Controller
FMS7401/7401L
PRODUCT SPECIFICATION
issue a system reset unless the feature is enabled by the Watchdog Enable (WDEN) bit of the Initialization Register 1.6 The
WDEN bit can only be set while the device is in programming mode.7 If set, the Watchdog Timer’s system reset ability will
always power-up enabled. Software cannot disable Watchdog Resets. The Watchdog Reset can only be disabled in program-
ming mode by clearing the WDEN bit as long as the memory write protect (WDIS) feature is not enabled.
The Watchdog Timer is a 4-bit extension of the Timer 0’s main 12-bit up-counter. With each overflow of the main counter, the
Watchdog Timer extension bits may increment to a count of 16. If the Watchdog Timer is allowed to increment to the 16th
count, a Watchdog Reset is issued triggering a system reset. The system reset will initialize all device circuits and instruction
execution will restart at the default program counter address (0xC00) after TRESET delay.8
In order to service the Watchdog Timer to prevent a reset, software must write 0x1B to the Watchdog Service Register
(WDSVR) before every 61,440 cycles (the 16th Watchdog Timer count) and not earlier than the first 4,096 cycles (the 1st
Watchdog Timer count) since the last Watchdog Timer service or system reset. Once the Watchdog Timer is serviced, the 4-bit
Watchdog Timer is cleared and then continues to increment. The Watchdog Timer will issue a reset if it is serviced too fre-
quently or not frequently enough where the servicing of the Watchdog Timer is controlled completely by software.
The Watchdog Timer, like Timer 0’s counter, is not memory mapped and cannot be accessed by software. Software must
monitor the Watchdog Timer by keeping a count of the number of T0PND flags since the last service or reset. If software clears
the T0PND flags before the next Timer 0 counter overflow, software may count the number of triggered T0PND flags in order
to determine when to next service the Watchdog Timer. The Watchdog Timer remains operational during Idle Mode; therefore,
software should service the Watchdog Timer prior to entering Idle Mode to prevent false resets.
It is not recommended to service the Watchdog Timer within an interrupt service routine (ISR). For example, the most obvious
place to issue the Watchdog service command seems to be within the Timer 0 ISR since it guarantees the Watchdog Timer ser-
vice to occur within the allowed 4,096-61,440 cycle window. However, this action takes place automatically since the Timer 0
circuit runs independently from the microcontroller program execution without knowledge of the state of the microcontroller
core. If the program execution is stuck in an infinite loop due to some unforeseen circumstances, the TMRI0 hardware interrupt
will still be triggered executing software’s ISR, the Watchdog Timer will then be serviced, and program execution will return to
the infinite loop once the ISR completes. The infinite loop or “runaway condition” will continue undetected defeating the pur-
pose of the Watchdog Reset feature. The ISRs may be used to keep track of the number of cycles since the last Watchdog ser-
vice (e.g. keep a count of the number of T0PND flags triggered). However, the actual Watchdog service command must be
issued within software’s main program code.
Table 19. Watchdog Service Register (WDSVR) Definition
WDSVR (addr. 0xB5)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
1
1
0
1
1
1. Refer to Table 30 of the Device Memory section of the datasheet for the detailed memory map.
2. Hardware interrupts are not executed by the microcontroller core unless the Global Interrupt enable (G) flag of the Status register is set. Refer to the 8-Bit Micro-
controller Core section of the datasheet for details.
3. The Timer 0 hardware interrupt will be executed in the defined priority order. Refer to the 8-Bit Microcontroller Core section of the datasheet for details.
4. After a system reset, the T0CNTRL register is defaulted to 0x00.
5. Refer to the Power Saving Modes section of the datasheet for Idle Mode wakeup conditions.
6. Refer to the Device Memory section of the datasheet for details regarding the Initialization Registers.
7. The FMS7401/7401L must be placed in a special programming mode in order to have full write and read access of all of the device memories. Refer to the In-circuit
Programming Specification section of the datasheet for details.
8. Refer to the Electrical Characteristics section of the datasheet for details.
42
REV. 1.0.2 6/23/04