HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 84

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
One of the WDT clock sources is the internal f
can be sourced from either the 32K_INT internal oscilla-
tor or the 32768Hz oscillator. The 32K_INT internal os-
cillator has an approximate period of 31.2 s at a supply
voltage of 5V. However, it should be noted that this
specified internal clock period can vary with VDD, tem-
perature and process variations. The 32768Hz oscillator
is supplied by an external 32768Hz crystal. The other
Watchdog Timer clock source option is the f
Whether the Watchdog Timer clock source is its own in-
ternal 32K_INT, the 32768Hz oscillator or f
vided by 2
required Watchdog Timer time-out period. The max time
out period is when the 2
time-out period may vary with temperature, VDD and
process variations. As the clear instruction only resets
the last stage of the divider chain, for this reason the ac-
tual division ratio and corresponding Watchdog Timer
time-out can vary by a factor of two. The exact division
ratio depends upon the residual value in the Watchdog
Timer counter before the clear instruction is executed.
If the f
source, it should be noted that when the system enters
the Power Down Mode, then the instruction clock is
stopped and the Watchdog Timer will lose its protecting
purposes. For systems that operate in noisy environ-
ments, using the 32K_INT RC oscillator is strongly rec-
ommended.
Rev. 1.10
SYS
/4 clock is used as the Watchdog Timer clock
13
~2
16
, using configuration option to obtain the
16
option is selected. This
Watchdog Timer Software Control - MISC
SYS
SYS
SUB
/4, it is di-
/4 clock.
, which
84
Under normal program operation, a Watchdog Timer
time-out will initialise a device reset and set the status bit
TO. However, if the system is in the Power Down Mode,
when a Watchdog Timer time-out occurs, the TO bit in
the status register will be set and only the Program
Counter and Stack Pointer will be reset. Three methods
can be adopted to clear the contents of the Watchdog
Timer. The first is an external hardware reset, which
means a low level on the RES pin, the second is using
the watchdog software instructions and the third is via a
Clearing the Watchdog Timer
There are two methods of using software instructions to
clear the Watchdog Timer, one of which must be chosen
by configuration option. The first option is to use the sin-
gle CLR WDT instruction while the second is to use the
two commands CLR WDT1 and CLR WDT2 . For the
first option, a simple execution of CLR WDT will clear
the WDT while for the second option, both CLR WDT1
and CLR WDT2 must both be executed to successfully
clear the Watchdog Timer. Note that for this second op-
tion, if CLR WDT1 is used to clear the Watchdog Timer,
successive executions of this instruction will have no ef-
fect, only the execution of a CLR WDT2 instruction will
clear the Watchdog Timer. Similarly after the CLR
WDT2 instruction has been executed, only a successive
HALT instruction.
CLR WDT1 instruction can clear the Watchdog Timer.
HT56R66/HT56R666
September 8, 2009

Related parts for HT56R66