поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

HT46R005 датащи(PDF) 23 Page - Holtek Semiconductor Inc

номер детали HT46R005
подробное описание детали  Small Package 8-Bit OTP MCU
PDF  62 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  HOLTEK [Holtek Semiconductor Inc]
домашняя страница  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46R005 датащи(HTML) 23 Page - Holtek Semiconductor Inc

Back Button HT46R005 Datasheet HTML 19Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 20Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 21Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 22Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 23Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 24Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 25Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 26Page - Holtek Semiconductor Inc HT46R005 Datasheet HTML 27Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 62 page
background image
HT48R005/HT46R005
Rev. 1.00
23
November 29, 2011
Watchdog Timer
The Watchdog Timer, also known as the WDT, is pro-
vided to inhibit program malfunctions caused by the pro-
gram jumping to unknown locations due to certain
uncontrollable external events such as electrical noise.
Watchdog Timer Operation
It operates by providing a device reset when the Watch-
dog Timer counter overflows. Note that if the Watchdog
Timer function is not enabled, then any instructions re-
lated to the Watchdog Timer will result in no operation.
Setting up the various Watchdog Timer options are con-
trolled via the configuration options and two internal reg-
isters WDTS and CTRL1. Enabling the Watchdog Timer
can be controlled by both a configuration option and the
WDTEN bits in the CTRL1 internal register in the Data
Memory.
Configuration
Option
CTRL1
Register
WDT
Function
Disable
Disable
OFF
Disable
Enable
ON
Enable
x
ON
Watchdog Timer On/Off Control
The Watchdog Timer will be disabled if bits
WDTEN3~WDTEN0 in the CTRL1 register are written
with the binary value 1010B and WDT configuration op-
tion is disable. This will be the condition when the device
is powered up. Although any other data written to
WDTEN3~WDTEN0 will ensure that the Watchdog
Timer is enabled, for maximum protection it is recom-
mended that the value 0101B is written to these bits.
The Watchdog Timer clock can emanate from three dif-
ferent sources, selected by configuration option. These
are fSYS/4, or LIRC. It is important to note that when the
system enters the Sleep Mode the instruction clock is
stopped, therefore if the configuration options have se-
lected fSYS/4 as the Watchdog Timer clock source, the
Watchdog Timer will cease to function. For systems that
operate in noisy environments, using the LIRC as the
clock source is therefore the recommended choice. The
division ratio of the prescaler is determined by bits 0, 1
and 2 of the WDTS register, known as WS0, WS1 and
WS2. If the Watchdog Timer internal clock source is se-
lected and with the WS0, WS1 and WS2 bits of the
WDTS register all set high, the prescaler division ratio will
be 1:128, which will give a maximum time-out period.
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 Sleep Mode, when a
Watchdog Timer time-out occurs, the device will be
woken up, the TO bit in the status register will be set and
only the Program Counter and Stack Pointer will be re-
set. Three methods can be adopted to clear the con-
tents of the Watchdog Timer. The first is an external
hardware reset, which means a low level on the external
reset pin, the second is using the Clear Watchdog Timer
software instructions and the third is when a HALT in-
struction is executed. 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 single
²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 Watchdog Timer
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 effect, only the execution of a
²CLR WDT2² instruc-
tion will clear the Watchdog Timer. Similarly after the
²CLR WDT2² instruction has been executed, only a suc-
cessive
²CLR WDT1² instruction can clear the Watch-
dog Timer.
1 5 s t a g e c o u n t e r
W D T T i m e - o u t
W S 2 ~ W S 0
C o n f i g .
O p t i o n
S e l e c t
W D T C l o c k S o u r c e S e l e c t i o n
C l e a r W D T T y p e
C o n f i g u r a t i o n O p t i o n
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
f S Y S / 4
L I R C
f W D T C K
Watchdog Timer



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com