Advantech PCM-9588 User Manual page 91

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

;
ax=5E78
;function success, other value means function fail
;
cl= n group of gpio
;===============================================================
;===============================================================
;
Get GPIO Config
; Input:
;
ax=5E87h
;
bh=01h
;
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 config
;
bit 0 = gpio 0 , 0 => output pin; 1 => input pin
;
bit 1 = gpio 1 , 0 => output pin; 1 => input pin
;
.....
;
bit 7 = gpio 7 , 0 => output pin; 1 => input pin
;===============================================================
;===============================================================
;
Set GPIO Config
; Input:
;
ax=5E87h
;
bh=02h
;
cl= n ; n means which group of GPIO you want to set
;
bl= the n group of gpio config
;
bit 0 = gpio 0 , 0 => output pin; 1 => input pin
;
bit 1 = gpio 1 , 0 => output pin; 1 => input pin
;
.....
;
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
81
PCM-9588 User Manual

Advertisement

Table of Contents
loading

Table of Contents

Save Article as PDF