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










