Advantech PCM-3353 User Manual Page 59

  • Download
  • Add to my manuals
  • Print
  • Page
    / 70
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 58
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
Page view 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 69 70

Comments to this Manuals

No comments