How to Install and Test ISA8255 Card on Linux
(1) Instalation : Download driver from as follows:
KERNEL 2.2.14
Download the driver to /
(2)
Please follow as follows to install:
This sample is under REDHAT 8.0 KERNEL 2.4.18-14.
Step1: Extract the file
Step 2: Edit install file
1.Configuration for DIP Switch
Before you use the 8255 I/O card, you must ensure that the I/O address and the clock are set
correctly. Observe the figure below the proper settings for the 8255 I/O card are described figure
below:
2.1 I/O address
JP2: Short (default): Select &H300 - &H30f as I/O port address.
JP2: Open: Select &H360 - &H36F as I/O port address.
2.2 Clock Select
P1-1 = Short (default) : Select internal clock to counter 0.
P1-2 = Short (default) : Select internal clock to counter 1.
P1-3 = Short (default) : Select internal clock to counter 2.
P1-1 = Open : Select external clock to counter 0.
P1-2 = Open : Select external clock to counter 1.
P1-3 = Open : Select external clock to counter 2.
3.Check IO address
You can use ' cat /proc/ioports ' to check which IO address can be used.
4.Here
you need to modify two lines in the file "install",because we should tell
driver what the
IO address that card uses.The line that you need to modify is "ioaddr=0x300".It
means that the card
use 0x300 as its IO address.
Step 3: Execute the 'install' file to install
Step 4: Please use "lsmod" command to check
(3)Please edit /etc/rc.local to add command line as follows:
(4)Please reboot systems.
(5)Please use 'lsmod' to check after system restarted. You can find disa8255 .
2.About uninstall
3.About Test:
Sixteen LEDs indicate when I/O is operating.
(1)The test program
The device driver already includes three test programs.
1.test.c:
Auto tests Output ON/OFF. It is the basic I/O program for 8255 .
2.test1.c: It is used for test the 8253 timer .
3.test2.c: Manuly tests Output.
(2)Please
compile the 'test.c' 'test1.c' 'test2.c' files as following step:
Then it will create the 'test' 'test1' 'test2' file.
(3)Please execute the 'test' file to test output. You will see LED light from L1 to L8 Auto ON and OFF .
The test.c's content is as follows:
(4) Please execute 'test1' to test . The result is as follows:
The test1.c's content is as follows:
(5) Please execute 'test2' to manuly test output. The result is as follows:
The test2.c's content is as follows: