AAEON IMBA-880 Rev.B User Manual

Page 46

Advertising
background image

I n d u s t r i a l M o t h e r b o a r d

I M B A - 8 8 0 R e v . B

Appendix A Programming the Watchdog Timer

A-6

A.2 W83627EHG Watchdog Timer Initial Program

Example: Setting 10 sec. as Watchdog timeout interval

;///////////////////////////////////////////////////////////////////////////////////////////////

Mov dx,2eh

;Enter W83627EHG config mode

Mov al,87h

(out 87h to 2eh twice)

Out dx,al

Out dx,al

;///////////////////////////////////////////////////////////////////////////////////////////////

Mov al,07h

Out dx,al

Inc dx

Mov al,08h

;Select Logical Device 8 (GPIO Port

2)

Out dx,al

;///////////////////////////////////////////////////////////////////////////////////////////////

Dec dx

Mov al,30h

;CR30 (GP20~GP27)

Out dx,al

Inc dx

Mov al,01h

;Activate GPIO2

Out dx,al

Advertising