System Installation
AMDY-7002 User’s Manual
3-5
3.6 GPIO
The AMDY-7002 provides 8 programmable input or output ports that can be
individually configured to perform a simple basic I/O function. Users can configure
each individual port to become an input or output port by programming register bit
of I/O Selection. To invert port value, the setting of Inversion Register has to be
made.
Port values can be set to read or write through Data Register.
3.6.1 Pin
assignment
JP11
Function
Pin 1
GP 0
Pin 2
GP 4
Pin 3
GP 1
Pin 4
GP 5
Pin 5
GP 2
Pin 6
GP 6
Pin 7
GP 3
Pin 8
GP 7
Pin 9
GND
Pin 10
VCC
*Note:
a. This GPIO uses TTL level.
b. GPIO base address is 4EE, default direction is output.
3.6.2 Demo
Program
The following is demo program source code by C language.
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#define SIO_Port 0x2E
#define SIO_Port2 0x4E
#define GPIO_LDN 0x07
#define GPIO_Base 0x0A00
//Enter SIO
void Enter_IT872x_SIO() {
outp(SIO_Port, 0x87);
outp(SIO_Port, 0x01);
outp(SIO_Port, 0x55);
outp(SIO_Port, 0x55);
}
//Select LDN
Summary of Contents for AMDY-7002
Page 8: ...System Overview AMDY 7002 User s Manual 1 5 1 3 1 Mechanical Drawing ...
Page 9: ...System Overview AMDY 7002 User s Manual 1 6 ...
Page 12: ...Hardware Configuration AMDY 7002 User s Manual 2 2 Connector location on top layer RTL8111D L ...
Page 53: ...BIOS Setup Information AMDY 7002 User s Manual 4 20 4 7 Boot Boot Priority Order ...