Appendix d w atchdog timer and gpio sample code – Advantech PCM-3362 User Manual

Page 87

Advertising
background image

79

PCM-3362 User Manual

Appendix D

W

atchdog

Timer

and

GPIO

sample

code

; bit 1 = gpio 1 , 0 => Low; 1 => High
; .....
; bit 7 = gpio 7 , 0 => Low; 1 => High
; output:
; ax=5E78 ;function success, other value means function fail

mov ax,5E87h
mov bx,0400h
mov cl,01
INT15

;

Set GPIO 0,2,4,6 Output Low

;===============================================================

Advertising