Operations Manual
PCI bus multi-8255/8254 adapter
CHAPTER 6
DIAGNOSTIC
DIAGNOSTIC
In the following, we assume PCI BIOS allocates I/O address is
1B0.
6.1 PASCAL Programming
program diagnostic(input, output);
uses Crt;
var a, i, test : integer;
procedure subtest;
begin
for i := 0 to 2 do
port[test+i] := a;
end;
begin
{ 8255 I/O Card Testing Program }
clrscr;
gotoxy(10, 10);
writeln('8255 I/O CARD TESTING');
gotoxy(10, 12);
writeln('TWO 8255 PORT A,B,C OUTPUT SQUARE
WAVE');
gotoxy(10, 14);
writeln('8253 COUNTER 0 DIVIDE BY 2');
gotoxy(10, 16);
writeln(' COUNTER 1 DIVIDE BY 50');
gotoxy(10, 18);
writeln(' COUNTER 2 DIVIDE BY 100');
頁碼
DECISION Computer International
頁
碼