85
Appendix A
A.1.4 Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh ; Unlock W83627HF
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Mov al,07h ; Select registers of watchdog timer
Out dx,al
Inc
dx
Mov al,08h
Out dx,al
;-----------------------------------------------------------
Dec dx
; Enable the function of watchdog timer
Mov al,30h
Out dx,al
Inc
dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
F7 (hex)
read/write
Bit 6: Write 1 to enable
keyboard to reset the
timer, 0 to dis-
able.[default]
Bit 5: Write 1 to generate
a timeout signal immedi-
ately and automatically
return to 0. [default=0]
Bit 4: Read status of
watchdog timer, 1 means
timer is ""time out""."
AA (hex)
-----
Write this address to I/O
port 2E (hex) to lock the
watchdog timer.2
Summary of Contents for PCA-6184
Page 17: ...9 Figure 1 2 Extension I O daughter board ...
Page 22: ...PCA 6184 ed 1 User s Manual 14 ...
Page 34: ...PCA 6184 ed 1 User s Manual 26 ...
Page 61: ...51 Chapter5 3 The installaion is complete click on Yes to restart the system ...
Page 62: ...PCA 6184 ed 1 User s Manual 52 ...
Page 73: ...63 Chapter6 12 Click Finish to complete the installation ...
Page 74: ...PCA 6184 ed 1 User s Manual 64 ...