51 PCM-3353 User Manual
Appendix D GPIO Sample Code
db 'Fifth GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
db 'Sixth GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
db 'Seventh GPIO Chip Test Fail !!',0Ah,0Dh,'$'
db 'Eighth GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
Error_Str1 db 'Error !! The system has no GPIO Chip or no support INT15
hook! ',0Ah,0Dh,'$'
;===============================================================
====
; Main Program Start
;===============================================================
====
.code
org 100h
.STARTup
;Clear Screen
pusha
lea dx, Advantech_Str
mov ah,09h
int 21h
lea dx, GX3_Fun_Str
mov ah,09h
int 21h
lea dx, Note1_Str
mov ah,09h
int 21h
lea dx, Note2_Str
mov ah,09h
int 21h
lea dx, Note3_Str
mov ah,09h
int 21h
lea dx, Note4_Str
mov ah,09h
int 21h
;===============================================================
====
; Get Number of GPIO group
; one group mean 8 gpio pins(one GPIO Chip)
; Input:
; ax=5E87h
; bh=00h
; output:
; ax=5E78 ;function success, other value means function fail
; cl= n group of gpio
Comments to this Manuals