PCA-6742 User Manual
36
B.1.2
Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh
; Unlock W83627HG
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
;-----------------------------------------------------------
Table B.1: Watchdog timer registers
Address of
register (2E)
Attribute
Read/Write
Value (2F)& description
87 (hex)
-----
Write this address to I/O address port 2E (hex) twice to
unlock the W83627HG
07 (hex)
write
Write 08 (hex) to select register of watchdog timer.
30 (hex)
write
Write 01 (hex) to enable the function of the watchdog timer.
Disabled is set as default.
F5 (hex)
write
Set seconds or minutes as units for the timer. Write 0 to bit 3:
set second as counting unit. [default]. Write 1 to bit 3: set
minutes as counting unit
F6 (hex)
write
0: stop timer [default]
01~FF (hex): The amount of the count, in seconds or min-
utes, depends on the value set in register F5 (hex). This
number decides how long the watchdog timer waits for
strobe before generating an interrupt or reset signal. Writing
a new value to this register can reset the timer to count with
the new value.
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 immediately 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.
Содержание PCA-6742 Series
Страница 1: ...User Manual PCA 6742 Half Size CPU Card ...
Страница 18: ...PCA 6742 User Manual 12 ...
Страница 19: ...Chapter 3 3 BIOS Operation This chapter describes how to set BIOS configuration data ...
Страница 30: ...PCA 6742 User Manual 24 ...
Страница 31: ...Appendix A A Pin Assignments This appendix contains informa tion of a detailed or specialized nature ...
Страница 38: ...PCA 6742 User Manual 32 ...
Страница 47: ...Appendix C C System Assignments This appendix contains informa tion of all System assignments ...
Страница 50: ...PCA 6742 User Manual 44 ...
Страница 51: ...Appendix D D Installing PC 104 Modules This appendix contains informa tion of installing PC 104 modules ...
Страница 54: ...PCA 6742 User Manual 48 27 SA4 TC 28 SA3 BALE 29 SA2 5 V 30 SA1 OSC 31 SA0 0 V 32 0 V 0 V active low ...
Страница 55: ...Appendix E E Mechanical Drawing ...
Страница 57: ...51 PCA 6742 User Manual Appendix E Mechanical Drawing ...