Advantech PCM-9588 User Manual page 92

Intel celeron m ebx sbc with dvi/ ttl/ vga/ lvds/ lan/ 6 com/ 2 sata / 6 usb2.0/ 16bit gpio
Hide thumbs Also See for PCM-9588:
Table of Contents

Advertisement

;
.....
;
bit 7 = gpio 7 , 0 => Low; 1 => High
;===============================================================
;===============================================================
;
Set GPIO status
; Input:
;
ax=5E87h
;
bh=04h
;
cl= n ; n means which group of GPIO you want to set
;
bl= the n group of gpio status
;
bit 0 = gpio 0 , 0 => Low; 1 => High
;
bit 1 = gpio 1 , 0 => Low; 1 => High
;
.....
;
bit 7 = gpio 7 , 0 => Low; 1 => High
; output:
;
ax=5E78
;===============================================================
;RA02 - END
;RA02 - START
mov
mov
int
cmp
je
lea
mov
int
jmp
next_test:
xor
push
;RA02 - END
;1.Set GPIO 0,2,4,6 as output, GPI 1,3,5,7 as input
;RA02 - START
mov
mov
int
;RA02 - END
;2. Set GPIO 0,2,4,6 Output Low
;RA02 - START
pop
push
mov
PCM-9588 User Manual
;function success, other value means function fail
ax,5e87h
bh,00h
15h
ax,5e78h
next_test
dx, Error_Str1
ah,09h
21h
Finish_Test
ch,ch
cx
;save NO. of GPIO chip
ax,5e87h
bx,02aah
15h
cx
;restore NO. of GPIO chip
cx
;save NO. of GPIO chip
ax,5e87h
82

Advertisement

Table of Contents
loading

Table of Contents