Advantech PCM-9588 user manual Mov Bx,0400h Int 15h RA02 END Check GPI 1,3,5,7 value

Models: PCM-9588

1 104
Download 104 pages 42.19 Kb
Page 93
Image 93

mov

bx,0400h

 

 

int

15h

 

 

;RA02 - END

 

 

 

;3. Check GPI 1,3,5,7 value

 

;RA02 - START

 

 

 

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

push

cx

;save NO. of GPIO chip

dec

cx

 

 

mov

al,Fail_lenght

 

mul

cl

 

 

lea

dx, Fail_Str

 

 

add

dx,ax

 

 

cmp

bl,33h

 

 

Appendix C Programmable GPIO & Watchdog Timer

83

PCM-9588 User Manual

Page 93
Image 93
Advantech PCM-9588 user manual Mov Bx,0400h Int 15h RA02 END Check GPI 1,3,5,7 value