HT48CA0-2 Holtek Semiconductor, HT48CA0-2 Datasheet - Page 7

no-image

HT48CA0-2

Manufacturer Part Number
HT48CA0-2
Description
(HT48RA0-2 / HT48CA0-2) Remote Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT48CA0-200J
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
Part Number:
HT48CA0-201T
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
www.DataSheet4U.com
Watchdog Timer - WDT
The clock source of the WDT is implemented by instruc-
tion clock (system clock divided by 4). The clock source
is processed by a frequency divider and a prescaller to
yield various time out periods.
WDT time out period =
Where n= 8~11 selected by code option.
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.
Rev. 1.50
Clock Source
2
n
CLR WDT
Watchdog Timer
7
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 PC (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.
To minimize power consumption, all I/O pins should be
carefully managed before entering the HALT status.
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.
HT48RA0-2/HT48CA0-2
July 23, 2004
SYS

Related parts for HT48CA0-2