PCE-5130 User Manual
88
C.1
Supported GPIO Register
Below are the detailed descriptions of the GPIO addresses and programming sam-
ple.
C.1.1
GPIO registers
CRF0 (GP10-GP17 I/O selection register. Default 0xFF)
When set to a '1', respective GPIO port is programmed as an input port.
When set to a '0', respective GPIO port is programmed as an output port.
CRF1 (GP10-GP17 data register. Default 0x00)
If a port is programmed to be an output port, then its respective bit can be read/writ-
ten.
If a port is programmed to be an input port, then its respective bit can only be read.
CRF2 (GP10-GP17 inversion register. Default 0x00)
When set to a '1', the incoming/outgoing port value is inverted.
When set to a '0', the incoming/outgoing port value is the same as in data register.
Extended Function Index Registers (EFIRs)
The EFIRs are write-only registers with port address 2Eh or 4Eh on PC/AT systems.
Extended Function Data Registers (EFDRs)
The EFDRs are read/write registers with port address 2Fh or 4Fh on PC/AT systems.
C.1.2
GPIO example program-1
------------------------------------------------
Enter the extended function mode, interruptible double-write
------------------------------------------------
MOV DX,4EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
---------------------------------------------------------------
Configure logical device 7(GP10~GP17), configuration register CRF0,CRF1,CRF2
---------------------------------------------------------------
MOV DX,4EH
MOV AL,07H ; Point to Logical Device Number Reg.
OUT DX,AL
MOV DX,4FH
MOV AL,07H ; Select logical device 7
OUT DX,AL ;
MOV DX,4EH
MOV AL,F0
OUT DX,AL
MOV DX,4FH
Summary of Contents for PCE-5130
Page 8: ...PCE 5130 User Manual viii ...
Page 13: ...Chapter 1 1 Hardware Configuration ...
Page 22: ...PCE 5130 User Manual 10 CMOS1 ...
Page 26: ...PCE 5130 User Manual 14 JSETCOM2 COM1 for COM2 COM1 for G2 ...
Page 30: ...PCE 5130 User Manual 18 ...
Page 31: ...Chapter 2 2 Connecting Peripherals ...
Page 47: ...35 PCE 5130 User Manual Chapter 2 Connecting Peripherals LANLED1 ...
Page 49: ...Chapter 3 3 Award BIOS Setup ...
Page 66: ...PCE 5130 User Manual 54 ...
Page 67: ...Chapter 4 4 Chipset Software Installation Utility ...
Page 71: ...Chapter 5 5 VGA Setup ...
Page 74: ...PCE 5130 User Manual 62 ...
Page 75: ...Chapter 6 6 LAN Configuration ...
Page 79: ...Appendix A A Programming the Watchdog Timer ...
Page 86: ...PCE 5130 User Manual 74 ...
Page 87: ...Appendix B B I O Pin Assignments ...