EasyManuals Logo

Holtek HT48R30A-1 User Manual

Default Icon
174 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #97 background imageLoading...
Page #97 background image
Watchdog Timer
The Watchdog Timer is provided to prevent program malfunctions or sequences from jumping to
unknown locations, due to certain uncontrollable external events such as electrical noise. It oper
-
ates by providing a ²chip reset² when the WDT counter overflows. The WDT clock is supplied by
one of three sources selected by configuration option: its own self contained dedicated internal
WDT oscillator, the instruction clock (system clock divided by 4) or the 32kHz RTC oscillator. Note
that if the WDT configuration option has been disabled, then any instruction relating to its opera
-
tion will result in no operation.
The internal WDT oscillator has an approximate period of 65ms at a supply voltage of 5V. If se
-
lected, it is first divided by 256 via an 8-stage counter to give a nominal period of 18ms. Note that
this period can vary with VDD, temperature and process variations. For longer WDT time-out peri
-
ods the WDT prescaler can be utilized. By writing the required value to bits 0, 1 and 2 of the WDTS
register, known as WS0, WS1 and WS2, longer time-out periods can be achieved. With WS0,
WS1 and WS2 all equal to 1, the division ratio is 1:128 which gives a maximum time-out period of
about 2.1s. The high nibble and bit 3 of the WDTS are reserved for user defined flags, which can
be used to indicate some specified status.
The WDT oscillator can be disabled and the WDT clock source can be supplied from the instruc-
tion clock (system clock divided by 4). If the instruction clock is used as the clock source it 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. In such cases the system can only be restarted via
external logic. For systems that operate in noisy environments, using the internal WDT oscillator
or the 32kHz RTC oscillator is strongly recommended.
88
I/O Type MCU
W D T S R e g i s t e r
W D T P r e s c a l e r R a t e S e l e c t
W S 2
0
0
0
0
1
1
1
1
N o t u s e d
b 7 b 0
W S 2 W S 1 W S 0
W S 1
0
0
1
1
0
0
1
1
W S 0
0
1
0
1
0
1
0
1
W D T R a t e
1 : 1
1 : 2
1 : 4
1 : 8
1 : 1 6
1 : 3 2
1 : 6 4
1 : 1 2 8
8 - b i t C o u n t e r
(
¸
2 5 6 )
7 - b i t P r e s c a l e r
8 - t o - 1 M U X
W D T T i m e - o u t
W S 0 ~ W S 2
C o n f i g .
O p t i o n
S e l e c t
W D T S o u r c e S e l e c t
C o n t r o l
L o g i c
C L R W D T 1 F l a g
C L R W D T 2 F l a g
1 o r 2 I n s t r u c t i o n s
C L R
C L R
f
S Y S
/ 4
W D T O S C O u t p u t
3 2 k H z R T C
Watchdog Timer

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT48R30A-1 and is the answer not in the manual?

Holtek HT48R30A-1 Specifications

General IconGeneral
BrandHoltek
ModelHT48R30A-1
CategoryMicrocontrollers
LanguageEnglish

Related product manuals