![C&T PC311E Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/candt/pc311e/pc311e_user-manual_3074614071.webp)
PC300 / PC311E(P) l User’s Manual
71
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 007h
WDT_UNIT
equ 60h ;
60h=second, 68h=minute, 40h=Disabled Watchdog timer
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 timer
mov
dx, SIO_INDEX_Port
mov
al, 0F6h
out
dx, al
mov
dx, SIO_DATA_Port
mov
al, WDT_Timer
out
dx, al
;set UINT
mov
dx, SIO_INDEX_Port
mov
al, 0F5h
out
dx, al
mov
dx, SIO_DATA_Port
mov
al, WDT_UNIT
out
dx, al
;enable reset
mov
dx, SIO_INDEX_Port
mov
al, 0Fah
out
dx, al
mov
dx, SIO_DATA_Port
in
al, dx
or
al, 01h
out
dx, al
;close config mode
mov
dx, SIO_INDEX_Port
mov
al, SIO_Lock_Value
out
dx, al
Appendix – WDT & GPIO
Содержание PC311E
Страница 1: ...PC300 Series PC Module...
Страница 8: ...Chapter 1 Product Introductions...
Страница 16: ...PC300 PC311E P l User s Manual 16 1 4 Mechanical Dimensions 1 4 1 PC300 Unit mm Chapter 1 Product Introductions...
Страница 17: ...PC300 PC311E P l User s Manual 17 1 4 2 PC311E PC311P Unit mm Chapter 1 Product Introductions...
Страница 18: ...Chapter 2 Switches and Connectors...
Страница 28: ...PC300 PC311E P l User s Manual 28 Chapter 2 Switches and Connectors...
Страница 32: ...Chapter 3 System Setup...
Страница 47: ...Chapter 4 BIOS Setup...
Страница 50: ...PC300 PC311E P l User s Manual 50 50 4 3 Advanced Setup 4 3 1 CPU Configuration Chapter 4 BIOS Setup...
Страница 62: ...PC300 PC311E P l User s Manual 62 4 4 Chipset Chapter 4 BIOS Setup 4 4 1 System Agent SA Configuration...
Страница 64: ...PC300 PC311E P l User s Manual 64 Chapter 4 BIOS Setup 4 4 2 PCH IO Configuration PCI Express Configuration...
Страница 73: ...Copyright 2016 C T Solution Inc All Rights Reserved www candtsolution com...