Acrosser AR-B8170 User Manual
Page 33
AR-B8170 User Manual
33
IO Address
Register Name
BA[0] + 00h GPIO PORT0 Data Register
BA[1] + 00h GPIO PORT1 Data Register
BA[2] + 00h GPIO PORT2 Data Register
BA3 + 00h
GPIO PORT3 Data Register
BA4 + 00h
GPIO PORT4 Data Register
Direction Port
(Base Address Refers to the Register of index 6Bh-6Ah, IDSEL = AD18/SB of PCI Configuration
Register)
IO Address
Register Name
BA + 00h
GPIO PORT0 Data Register
BA + 01h
GPIO PORT1 Data Register
BA + 02h
GPIO PORT2 Data Register
BA + 03h
GPIO PORT3 Data Register
BA + 04h
GPIO PORT4 Data Register
BA + 06h
GPIO PORT1 Interrupt Status Register
BA + 07h
GPIO PORT0 Interrupt Status Register
GPIO demo program in Turbo C++ as following:
//===========================================================================
// Turbo C++ Version 3.0 Copyright(c) 1990, 1992 by Borland International,Inc.
//===========================================================================
// Describe : GPIO00~GPIO07 GPIO10~GPIO17 Test utility for Vortex86DX.
// Date : 09/17/2009
// Author : Willy
//===========================================================================
//===========================================================================
// Language include files
//===========================================================================
#include
#include
//===========================================================================
// Normal procedure
//===========================================================================
void Show_Help();
void Show_Fail();
void Show_Pass();
//===========================================================================
// Main procedure
//===========================================================================
int main(int argc)
{
char *Model_Name="AR-B8170";
unsigned char
IO_PORT_BASE=0x22; // DATA_PORT = IO_PORT_BASE + 1;
unsigned char data;
int result=0;