Advantech ARK-1503 User Manual page 62

Embedded ipc
Table of Contents

Advertisement

;
bit 7 = gpio 7 , 0 => output pin; 1 => input pin
; output:
;
ax=5E78
;======================================================
;=======================================================;
Get GPIO status
; Input:
;
ax=5E87h
;
bh=03h
;
cl= n ; n means which group of GPIO you want to get
; output:
;
ax=5E78
;
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
;=========================================================
;=========================================================
;
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
;===========================================================
mov
mov
int
cmp
je
lea
mov
int
jmp
next_test:
ARK-1503 User Manual
;function success, other value means function fail
;function success, other value means function fail
;function success, other value means function fail
ax,5e87h
bh,00h
15h
ax,5e78h
next_test
dx, Error_Str1
ah,09h
21h
Finish_Test
50

Advertisement

Table of Contents
loading

Table of Contents