
RCO-6000 l User’s Manual
113
WDT Sample Code
SIO_INDEX_Port
equ 02Eh
SIO_DATA_Port
equ 02Fh
SIO_UnLock_Value
equ 087h
SIO_Lock_Value
equ 0AAh
WatchDog_LDN
equ 008h
WDT_UNIT
equ 00h ;
00h=second, 80h=minute,
WDT_Timer
equ 30 ;
ex. 30 seconds
Sample code:
;Enable config mode
mov
dx, SIO_INDEX_Port
mov
al, SIO_UnLock_Value
out
dx, al
jmp
short $+2
;Io_delay
jmp
short $+2
;Io_delay
out
dx, al
;Change to WDT
mov
dx, SIO_INDEX_Port
mov
al, 07h
out
dx, al
mov
dx, SIO_DATA_Port
mov
al, WatchDog_LDN
out
dx, al
;Acive WDT
mov
dx, SIO_INDEX_Port
mov
al, 30h
out
dx, al
mov
dx, SIO_DATA_Port
in
al, dx
or
al, 01h
out
dx, al
;set UNIT
mov
dx, SIO_INDEX_Port
mov
al, 0F0h
out
dx, al
mov
dx, SIO_DATA_Port
in
al, dx
and
al,0f4h
;
clear "Select Watchdog Timer I count mode”
or
al, 02h
; Enable the rising edge of a KBC reset (P20) to issue a time-out event.
or
al, WDT_UNIT
out
dx, al
;set timer
mov
dx, SIO_INDEX_Port
mov
al, 0F1h
out
dx, al
mov
dx, SIO_DATA_Port
mov
al, WDT_Timer
out
dx, al
;close config mode
mov
dx, SIO_INDEX_Port
mov
al, SIO_Lock_Value
out
dx, al
Appendix – WDT & GPIO
Summary of Contents for RCO-6000
Page 1: ...RCO 6000 Series Superior Fanless Embedded System...
Page 11: ...Chapter 1 Product Introductions...
Page 47: ...Chapter 2 Switches and Connectors...
Page 49: ...RCO 6000 l User s Manual 49 2 1 2 Bottom View Chapter 2 Switches and Connectors...
Page 67: ...Chapter 3 System Setup...
Page 92: ...Chapter 4 BIOS Setup...
Page 116: ...Copyright C T Solution Inc All Rights Reserved www candtsolution com...