
EP100 AMD Embedded G-Series Processor EPIC Board with LVDS
Digital I/O
59
Appendix B
Digital I/O
About Digital I/O
The onboard digital I/O has 8 bits (DIO0~7). Each bit can be set to function as input or output
by software programming. In default, all pins are pulled high with +5V level (according to main
power). The BIOS default settings are 3 inputs and 5 outputs where all of these pins are set to
1.
CN8
Digital I/O Programming
Assembly sample code :
Set functionality:
;Start set DIO program:
mov
dx,2Eh
mov
al,87h
;Un-lock super I/O
out
dx,al
out
dx,al
mov
dx,2Eh
mov
al,07h
out
dx,al
mov
dx,2Fh
mov
al,08h
out
dx,al
mov
dx,2Eh
mov
al,30h
out
dx,al
mov
dx,2Fh
mov
al,02h
out
dx,al
Pin
Signal
Pin
Signal
1
DI0 (Bit0)
2
DO0 (Bit 3)
3
DI1 (Bit1)
4
DO1 (Bit 4)
5
DI2 (Bit2)
6
DO2 (Bit 5)
7
GND
8
DO3 (Bit 6)
9
GND
10
DO4 (Bit 7)