Advantech PCM-3353 User Manual Page 58

  • Download
  • Add to my manuals
  • Print
  • Page
    / 70
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 57
PCM-3353 User Manual 50
D.1 GPIO Sample Code
;===============================================================
===
NEWIODELAY Macro
out 0ebh,al
ENDM
;===============================================================
====
.model small
.486p
.stack 256
.data
;===============================================================
====
; Data Area
;===============================================================
====
SMBus_Port EQU6000h
PCA9555_ID EQU 4Eh
Input_Reg EQU 00h
Output_Reg EQU 01h
Inversion_Reg EQU 02h
Configure_Reg EQU 03h
Advantech_Str db 'Advantech Company Copyright (C) 2005 Design by Dun-
can',0AH,0Dh,'$'
Advantech_Str db 'Advantech Company Copyright (C) 2005 Design by Dun-
can, Modify by Steven',0AH,0Dh,'$'
GX3_Fun_Str db 'Check Philip GPIO function.',0Ah,0Dh,'$'
Note1_Str db 'Test Method: GPIO 0 connect to GPIO 1.',0Ah,0Dh,'$'
Note2_Str db ' GPIO 2 connect to GPIO 3.',0Ah,0Dh,'$'
Note3_Str db ' GPIO 4 connect to GPIO 5.',0Ah,0Dh,'$'
Note4_Str db ' GPIO 6 connect to GPIO 7.',0Ah,0Dh,'$'
Success1_Str db 'First GPIO Chip Test success !! ',0Ah,0Dh,'$'
Success2_Str db 'Second GPIO Chip Test success !! ',0Ah,0Dh,'$'
Success_lenght EQU ($ - offset Success1_Str) / 2
db 'Third GPIO Chip Test success !! ',0Ah,0Dh,'$'
db 'Fouth GPIO Chip Test success !! ',0Ah,0Dh,'$'
db 'Fifth GPIO Chip Test success !! ',0Ah,0Dh,'$'
db 'Sixth GPIO Chip Test success !! ',0Ah,0Dh,'$'
db 'Seventh GPIO Chip Test success !!',0Ah,0Dh,'$'
db 'Eighth GPIO Chip Test success !! ',0Ah,0Dh,'$'
Fail_Str db 'First GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
Fail2_Str db 'Second GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
Fail_lenght EQU ($ - offset Fail_Str) / 2
db 'Third GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
db 'Fouth GPIO Chip Test Fail !! ',0Ah,0Dh,'$'
Page view 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 69 70

Comments to this Manuals

No comments