Operations Manual 8255 PCI Bus Adapter
Operations Manual 8255 PCI Bus Adapter
CHAPTER 1
INTRODUCTION
The PCI bus 8255 adapter is a 32 bits PCI bus adapter with
Plug and Play (PnP) features, it is a programmable I/O interface
for PC/486, Pentium or compatible computers. The PnP
features let hardware configuration for IRQ and I/O address is
detected by BIOS automatically, you don’t need set switch and
jumper.
The PCI bus 8255 adapter provides total 6 digital I/O ports,
each I/O port contains 8 I/O lines, and can be set either input or
output by the user’s program. The signal assignments of PCI
bus 8255 adapter is designed as a standard configurations, so
that it can be used to connect to the 8255 terminator board for
several applications.
CHAPTER 2
UNPACKING INFORMATION
CHAPTER 3
HARDWARE INSTALLATION
CHAPTER 4
HARDWARE CONFIGURATION
The DIP switch is used to identify 8255 adapter, you may set
any switch, however if more than one 8255 adapters are
plugged in, please set different switch number to avoid address
conflict with each others.
37 +5V 38 -5V
39 +12V 40 -12V
2. Pin Assignments for CN2 Connector
CHAPTER 5
DII DEVICE DRIVER
The DII provides DLL, OCX, ... etc. components for further
programming. For more details, please refer DII manual.
CHAPTER 6
DIAGNOSTIC
a := $ff; subtest
until keypressed;
end.
6.3 C Programming
#include <stdio.h>
#include <conio.h>
int test,i,a;
void subtest()
{
for(i=0;i<=2;i++) outportb(test+i,a);
}
main()
{
clrscr();
gotoxy(10,10);
puts("8255 I/O CARD TESTING");
gotoxy(10,12);
puts("TWO 8255 PORT A,B,C OUTPUT SQUARE WAVE");
gotoxy(10,14);
puts("8253 COUNTER 0 DIVIDE BY 2");
gotoxy(10,16);
puts("8253 COUNTER 1 DIVIDE BY 50");
gotoxy(10,18);
puts("8253 COUNTER 2 DIVIDE BY 100");
test = 0x1b0;
outportb(test+11,0x36);
outportb(test+11,0x76);
outportb(test+11,0xb6);
outportb(test+ 8,0x02);
outportb(test+ 8,0x00);
outportb(test+ 9,0x32);
outportb(test+ 9,0x00);
outportb(test+10,0x64);
outportb(test+10,0x00);
do {
test = 0x1b0;
outportb(test+3,0x80);
a = 0;
subtest();
for(i=0;i<=1000;i++);
a = 0xff;
subtest();
} while(!kbhit());
}
APPENDIX A
TERMINATOR BOARD
The 8255 terminator board provides expansion signal
connection for convenience purpose. When power control on
the normal condition, the LED will light. To connect 8255
adapter to terminator board, please plug in CN1 connector (at
8255 adapter) to J1 (at terminator board). The similar method
will be used to connect CN2 to J2. The signal assignment is
shown in the follows.
1. TB1
PORT 1 PA0
PORT 1 PA1
PORT 1 PA2
PORT 1 PA3
PORT 1 PA4
PORT 1 PA5
PORT 1 PA6
PORT 1 PA7
PORT 1 PB0
PORT 1 PB1
PORT 1 PB2
PORT 1 PB3
PORT 1 PB4
PORT 1 PB5
PORT 1 PB6
PORT 1 PB7
2. TB2
PORT 1 PC0
PORT 1 PC1
PORT 1 PC2
PORT 1 PC3
PORT 1 PC4
PORT 1 PC5
PORT 1 PC6
PORT 1 PC7
PORT 2 PA0
PORT 2 PA1
PORT 2 PA2
PORT 2 PA3
PORT 2 PA4
PORT 2 PA5
PORT 2 PA6
PORT 2 PA7
3. TB3
PORT 2 PB0
PORT 2 PB1
PORT 2 PB2
PORT 2 PB3
PORT 2 PB4
PORT 2 PB5
PORT 2 PB6
PORT 2 PB7
PORT 2 PC0
PORT 2 PC1
PORT 2 PC2
PORT 2 PC3
PORT 2 PC4
PORT 2 PC5
PORT 2 PC6
PORT 2 PC7
4. TB4
CLK0
GATE0
OUT0
CLK1
GATE1
OUT1
CLK2
GATE2
OUT2
GND1
GND2
+5V
-5V
GND1
GND1
GND2
APPENDIX B
WARRANTY INFORMATION
B.1 Copyright
DECISION warrants that for a period of one year from the date
of purchase (unless otherwise specified in the warranty card)
that the goods supplied will perform according to the
specifications defined in the user manual. Furthermore that the
PCI bus 8255 adapter product will be supplied free from
defects in materials and workmanship and be fully functional
under normal usage.
All goods returned for warranty repair must have the serial
number intact. Goods without serial numbers attached will not
be covered by the warranty.
APPENDIX C
DATA SHEET