Appendix a – Acnodes FES 2213 User Manual

Page 55

Advertising
background image

APPENDIX A



Watchdog Timer Sample Code

Watchdog function

:

The SCH3114 Runtime base I/O address is 6 00h
Setting WatchDog time val ue l ocati on at offset 66h
If set value “0 ”, it is mean disable WatchDog function.
Superi o_GPIO_P ort= 600h
m ov dx, Superio_GP IO_Port + 6 6h
m ov al, 00h
.model small
.486p
.stack 256
.data
SCH3114_IO EQU 600h
.code
org 100h
.STARTup
;=========== ============================= ========================== ===== ==
;47H
;enable WDT function bit [0]=0 Ch
;=========== ============================= ============== ===================
m ov dx, SCH331 14_IO + 47h
m ov al, 0Ch
out dx, al
;=========== ============================= ========================== ===== ==
;65H
;bit [1:0]=Reserved
;bit [6:2] Reserve=00000
;bit [7] WDT ti me-out Value Units Select
;Minutes=0 (default) Seconds=1
;=========== ============================= ========================== ===== ==
m ov dx, SCH311 4_IO + 65h;
m ov al, 080h
out dx, al
;=========== ============================= ============== ===================

Advertising