PCA-6190 User’s Manual
92
Appendix B
Programming the GPIO
B.1 Sample Code
;------------------------------------------------------------
; MTEST1 _M_HL=05 GP10-13=GPO GP14-17=GPI
; _M_HL=50 GP10-13=GPI GP14-17=GPO
;------------------------------------------------------------
MTEST1 MACRO _M_HL
LOCAL _M_Begin,_M_END,_M_LOP1
_M_Begin:
MOV DX,2Eh ; 2E/2F=F1/05 (CR-F1)
MOV AL,0F1h ; =F1/50 (CR-F1)
OUT DX,AL ;-Index
MOV DX,2Fh ;
MOV al,_M_HL ;AL<--05/50
OUT DX,AL ;-Data
MOV DX,2Fh ;
IN AL,DX ;-Data
cmp al,55h ;
jz _M_LOP1 ;
jmp _M_Begin ;
_M_LOP1:
MOV DX,2Fh ;
MOV AL,_M_HL ;AL<-05/50
SHL AL,1 ;05/50 -->0A/A0
OUT DX,AL ;-Data
MOV DX,2Fh ;
IN AL,DX ;-Data
cmp al,0AAh ;
jz _M_END ;
jmp _M_Begin ;
Summary of Contents for PCA-6190
Page 16: ...PCA 6190 User s Manual xvi ...
Page 17: ...1 CHAPTER 1 General Information ...
Page 32: ...PCA 6190 User s Manual 16 ...
Page 33: ...17 Chapter2 CHAPTER 2 Connecting Peripherals ...
Page 46: ...PCA 6190 User s Manual 30 ...
Page 47: ...31 Chapter3 CHAPTER 3 Award BIOS Setup ...
Page 69: ...53 Chapter4 CHAPTER 4 Chipset Software Installation Utility ...
Page 74: ...PCA 6190 User s Manual 58 ...
Page 75: ...59 Chapter5 CHAPTER 5 VGA Setup ...
Page 79: ...63 Chapter5 3 Click Finish to complete the installation and restart the computer now or later ...
Page 80: ...PCA 6188 User s Manual 64 ...
Page 81: ...65 Chapter6 CHAPTER 6 LAN Configuration ...
Page 85: ...69 Chapter6 5 Click Finish to complete the installation ...
Page 86: ...PCA 6190 User s Manual 70 ...
Page 87: ...71 Chapter7 CHAPTER 7 USB 2 0 Configuration ...
Page 89: ...73 Chapter8 CHAPTER 8 Onboard Security Setup ...
Page 95: ...79 Chapter8 ...
Page 96: ...PCA 6190 User s Manual 80 ...
Page 97: ...81 AppendixA Appendix A Programming the Watchdog Timer ...
Page 107: ...91 AppendixB Appendix B Programming the GPIO ...
Page 112: ...PCA 6190 User s Manual 96 ...
Page 113: ...97 AppendixC Appendix C I O Pin Assignments ...
Page 130: ...PCA 6188 User s Manual 114 ...