HT48CA0-1 Holtek Semiconductor, HT48CA0-1 Datasheet - Page 8

no-image

HT48CA0-1

Manufacturer Part Number
HT48CA0-1
Description
(HT48RA0-1 / HT48CA0-1) Remote Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
This timer is designed to prevent a software malfunction
or sequence jumping to an unknown location with un-
predictable results. The Watchdog Timer can be dis-
abled by code option. If the Watchdog Timer is disabled,
all the executions related to the WDT result in no opera-
tion and the WDT will lose its protection purpose. In this
situation the logic can only be restarted by an external
logic.
A WDT overflow under normal operation will initialize chip
reset and set the status bit TO . To clear the contents of
the WDT prescaler, three methods are adopted; external
reset (a low level to RES), software instructions, or a HALT
instruction. There are two types of software instructions.
One type is the single instruction CLR WDT , the other
type comprises two instructions, CLR WDT1 and CLR
WDT2 . Of these two types of instructions, only one can
be active depending on the code option
times selection option . If the CLR WDT is selected (i.e..
CLR WDT times equal one), any execution of the CLR
WDT instruction will clear the WDT. In case CLR WDT1
and CLR WDT2 are chosen (i.e.. CLR WDT times equal
two), these two instructions must be executed to clear the
WDT; otherwise, the WDT may reset the chip due to a
time-out.
Power Down Operation - HALT
The HALT mode is initialized by the HALT instruction
and results in the following...
The system can quit the HALT mode by means of an ex-
ternal reset or an external falling edge signal on port B.
An external reset causes a device initialization. Exam-
ining the TO and PDF flags, the reason for chip reset
can be determined. The PDF flag is cleared when the
system powers up or execute the CLR WDT instruction
and is set when the HALT instruction is executed. The
TO flag is set if the WDT time-out occurs, and causes a
wake-up that only resets the program counter and SP,
the others keep their original status.
The port B wake-up can be considered as a continuation
of normal execution. Each bit in port B can be independ-
ently selected to wake up the device by the code option.
Awakening from an I/O port stimulus, the program will
resume execution of the next instruction.
Once a wake-up event(s) occurs, it takes 1024 t
(system clock period) to resume normal operation. In
other words, a dummy cycle period will be inserted after
the wake-up.
Rev. 1.40
The system oscillator turns off and the WDT stops.
The contents of the on-chip RAM and registers remain
unchanged.
WDT prescaler are cleared.
All I/O ports maintain their original status.
The PDF flag is set and the TO flag is cleared.
CLR WDT
SYS
8
To minimize power consumption, all I/O pins should be
carefully managed before entering the HALT status.
Reset
There are three ways in which a reset can occur:
Some registers remain unchanged during reset condi-
tions. Most registers are reset to the initial condition
when the reset conditions are met. By examining the
PDF and TO flags, the program can distinguish between
different chip resets .
Note: u means unchanged.
TO PDF
RES reset during normal operation
RES reset during HALT
WDT time-out reset during normal operation
0
u
0
1
0
u
1
u
RES reset during power-up
RES reset during normal operation
RES wake-up HALT
WDT time-out during normal operation
Reset Configuration
Reset Timing Chart
HT48RA0-1/HT48CA0-1
Reset Circuit
RESET Conditions
December 21, 2005

Related parts for HT48CA0-1