PCA-6008VG User Manual
66
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 ;
_M_END:
ENDM
;------------------------------------------------------------
; Logic_Dev_Sel
;------------------------------------------------------------
Logic_Dev_Sel MACRO Log_Dev
MOV DX,2Eh ;
MOV AL,07h ; Point To Logical Device Number Reg.
OUT DX,AL ;
MOV DX,2Fh ;
MOV AL,Log_Dev ; Select Logical Device Number 7
OUT DX,AL ; (GAME/MIDI/GPIO Port)
ENDM ;
;------------------------------------------------------------
;------------------------------------------------------------
AnyKey MACRO ;
Содержание PCA-6008VG
Страница 1: ...User Manual PCA 6008VG Celeron M Processor Card with VGA Single Gigabit LAN HISA 400 MHz FSB...
Страница 14: ...PCA 6008VG User Manual xiv...
Страница 15: ...Chapter 1 1 Hardware Configuration...
Страница 25: ...Chapter 2 2 Connecting Peripherals...
Страница 37: ...Chapter 3 3 Award BIOS Setup...
Страница 55: ...Chapter 4 4 Chipset Software Install Utility...
Страница 58: ...PCA 6008VG User Manual 44 5 Click Next when you see the following messages...
Страница 60: ...PCA 6008VG User Manual 46...
Страница 61: ...Chapter 5 5 VGA Setup...
Страница 64: ...PCA 6008VG User Manual 50...
Страница 65: ...Chapter 6 6 LAN Configuration...
Страница 68: ...PCA 6008VG User Manual 54 4 Click Finish to complete the installation...
Страница 69: ...Chapter 7 7 USB 2 0 Configuration...
Страница 71: ...Appendix A A Programming the Watchdog...
Страница 79: ...Appendix B B Programming the GPIO...
Страница 83: ...Appendix C C Pin Assignments...