85
PCA-6782 User Manual
Appendix C
P
rogramming
the
G
PIO
C.1.2
GPIO Example Program-1
------------------------------------------------------------
Enter the extended function mode, interruptible double-write
------------------------------------------------------------
MOV DX, 2Eh
MOV AL, 87h
OUT DX, AL
OUT DX, AL
------------------------------------------------------------
Configure logical device 7(GP10~GP17), configuration register CRF0,CRF1,CRF2
------------------------------------------------------------
MOV DX, 2Eh
MOV AL, 07h; point to Logical Device Number Reg.
OUT DX, AL
MOV DX, 2Fh
MOV AL, 07h; select logical device 7
OUT DX, AL
MOV DX, 2Eh
MOV AL, F0h
OUT DX, AL
MOV DX, 2Fh
MOV AL, 00h; 01: Input, 00: output for GP10~GP17
OUT DX, AL
MOV DX, 2Eh
MOV AL, F2h ;
OUT DX, AL
MOV DX, 2Fh
MOV AL, 00h; Set GPIO is normal not inverter
OUT DX, AL;
MOV DX, 2Eh
MOV AL, F1h
OUT DX, AL
MOV DX, 2Fh
MOV AL, ??h; Put the output value into AL
OUT DX, AL
------------------------------------------------------------
Exit extended function mode |
------------------------------------------------------------
MOV DX, 2Eh
MOV AL, AAh
OUT DX, AL
Summary of Contents for PCA-6782
Page 7: ...PCA 6782 User Manual viii...
Page 12: ...Chapter 1 1 Hardware Configuration...
Page 22: ...Chapter 2 2 Connecting Peripherals Jumper Settings...
Page 38: ...Chapter 3 3 AMI BIOS Setup...
Page 56: ...Chapter 4 4 Value Added Software Services...
Page 60: ...Chapter 5 5 Chipset Software Installation Utility...
Page 63: ...PCA 6782 User Manual 52...
Page 64: ...Chapter 6 6 Integrated Graphic Device Setup...
Page 66: ...Chapter 7 7 LAN Configuration...
Page 68: ...Appendix A A Programming the Watchdog Timer...
Page 76: ...Appendix B B I O Pin Assignments...