HT46R49 Holtek Semiconductor, HT46R49 Datasheet - Page 44

no-image

HT46R49

Manufacturer Part Number
HT46R49
Description
Cost-Effective A/D Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT46R49
Quantity:
50 000
www.datasheet4u.com
takes place. If an interrupt request flag is set to 1 be-
fore entering the Power Down Mode, the wake-up func-
tion of the related interrupt will be disabled.
No matter what the source of the wake-up event is, once
a wake-up situation occurs, a time period equal to 1024
system clock periods will be required before normal sys-
tem operation resumes. However, if the wake-up has
originated due to an interrupt, the actual interrupt sub-
routine execution will be delayed by an additional one or
more cycles. If the wake-up results in the execution of
the next instruction following the HALT instruction, this
will be executed immediately after the 1024 system
clock period delay has ended.
Watchdog Timer
The Watchdog Timer is provided to prevent program mal-
functions or sequences from jumping to unknown loca-
tions, due to certain uncontrollable external events such
as electrical noise. It operates by providing a device reset
when the WDT counter overflows. The WDT clock is sup-
plied by one of two sources selected by configuration op-
tion: its own self contained dedicated internal WDT
oscillator or f
tion has been disabled, then any instruction relating to its
operation will result in no operation.
I n t h e C o s t - E ff e c t i v e A / D Ty p e s e r i e s o f
microcontrollers, all Watchdog Timer options, such as
enable/disable, WDT clock source and clear instruction
type all selected through configuration options. There
are no internal registers associated with the WDT in the
Cost-Effective A/D Type MCU series. One of the WDT
clock sources is an internal oscillator which has an ap-
proximate period of 65 s at a supply voltage of 5V. How-
ever, it should be noted that this specified internal clock
period can vary with VDD, temperature and process
variations. The other WDT clock source option is the
f
internal WDT oscillator, or from f
vided by 16 via an internal 15-bit counter and a clearable
single bit counter to give longer Watchdog time-outs. As
this ratio is fixed it gives an overall Watchdog Timer
time-out value of 2
Rev. 1.30
SYS
/4 clock. Whether the WDT clock source is its own
SYS
/4. Note that if the WDT configuration op-
15
/f
S
to 2
16
/f
S
. As the clear instruction
SYS
/4, it is further di-
Watchdog Timer
HT46R46/C46/R47/C47/R48A/C48A/R49
44
only resets the last stage of the divider chain, for this
reason the actual 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 instruc-
tion is executed. It is important to realise that as there
are no independent internal registers or configuration
options associated with the length of the Watchdog
Timer time-out, it is completely dependent upon the fre-
quency of f
If the f
should be noted that when the system enters the Power
Down Mode, then the instruction clock is stopped and
the WDT will lose its protecting purposes. For systems
that operate in noisy environments, using the internal
WDT oscillator is strongly recommended.
Under normal program operation, a WDT time-out will
initialise a device reset and set the status bit TO. How-
ever, if the system is in the Power Down Mode, when a
WDT 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 WDT. The first is an external
hardware reset, which means a low level on the RES
pin, the second is using the watchdog software instruc-
tions and the third is via a HALT instruction.
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 WDT. Note that for this second option, if CLR
WDT1 is used to clear the WDT, successive executions
of this instruction will have no effect, only the execution of
a CLR WDT2 instruction will clear the WDT. Similarly
after the CLR WDT2 instruction has been executed,
only a successive CLR WDT1 instruction can clear the
Watchdog Timer.
SYS
/4 clock is used as the WDT clock source, it
SYS
/4 or the internal WDT oscillator.
June 5, 2008

Related parts for HT46R49