outp(wBase+0xcc,0x00);

/*

CN3

to

CN4

port

are

all

output

*/

outp(wBase+0xd0,0x00);

/*

CN5

to

CN6

port

are

all

output

*/

for (;;)

{

printf("\nCN1 : PA=0x55, PB=0xAA, PC=0x5A, press Q to stop");

outp(wBase+0xc4,0); /* select CN1_PA */ outp(wBase+0xc0,0x55); /* set CN1_PA=0x55 */

outp(wBase+0xc4,1);

/* select CN1_PB

*/

outp(wBase+0xc0,0xaa);

/* set CN1_PB=0xaa */

outp(wBase+0xc4,2);

/* select CN1_PC

*/

outp(wBase+0xc0,0x5a);

/* set CN1_PC=0x5a */

c=getch(); if ((c=='Q')

(c=='q')) break;

 

printf("\nCN1 : PA=0xAA, PB=0x55, PC=0xA5, press Q to stop");

outp(wBase+0xc4,0); /* select CN1_PA */ outp(wBase+0xc0,0xAA); /* set CN1_PA=0xAA */

outp(wBase+0xc4,1);

/* select CN1_PB

*/

outp(wBase+0xc0,0x55);

/* set CN1_PB=0x55 */

outp(wBase+0xc4,2);

/* select CN1_PC

*/

outp(wBase+0xc0,0xa5);

/* set CN1_PC=0xA5

*/

c=getch(); if ((c=='Q') (c=='q')) break;

}

PIO_DriverClose();

}

OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001)

---- 36

Page 38
Image 38
Omega OME-PIO-D144 manual CN3 CN4