Advantech ARK-1503 User Manual page 63

Embedded ipc
Table of Contents

Advertisement

xor
ch,ch
push
cx
;save NO. of GPIO chip
;1.Set GPIO 0,2,4,6 as output, GPI 1,3,5,7 as input
mov
ax,5e87h
mov
bx,02aah
int
15h
;2. Set GPIO 0,2,4,6 Output Low
pop
cx
;restore NO. of GPIO chip
push
cx
;save NO. of GPIO chip
mov
ax,5e87h
mov
bx,0400h
int
15h
;3. Check GPI 1,3,5,7 value
pop
cx
;restore NO. of GPIO chip
push
cx
;save NO. of GPIO chip
mov
ax,5e87h
mov
bx,03FFh
int
15h
pop
cx
;restore NO. of GPIO chip
push
cx
;save NO. of GPIO chip
dec
cx
mov
al,Fail_lenght
mul
cl
lea
dx, Fail_Str
add
dx,ax
cmp
bl,00
jne
test_result
;4. Set GPIO 0,2,4,6 Output differential
pop
cx
;restore NO. of GPIO chip
push
cx
;save NO. of GPIO chip
mov
ax,5e87h
mov
bx,0411h
int
15h
;5. Check GPI 1,3,5,7 value
pop
cx
;restore NO. of GPIO chip
push
cx
;save NO. of GPIO chip
mov
ax,5e87h
mov
bx,03FFh
int
15h
pop
cx
;restore NO. of GPIO chip
51
ARK-1503 User Manual

Advertisement

Table of Contents
loading

Table of Contents