Omega OME-PIO-D144 Hardware Manual page 38

Pci-bus digital i/o board
Table of Contents

Advertisement

outp(wBase+0xcc,0x00);
outp(wBase+0xd0,0x00);
for (;;)
{
printf("\nCN1 : PA=0x55, PB=0xAA, PC=0x5A, press Q to stop");
outp(wBase+0xc4,0);
outp(wBase+0xc0,0x55);
outp(wBase+0xc4,1);
outp(wBase+0xc0,0xaa);
outp(wBase+0xc4,2);
outp(wBase+0xc0,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);
outp(wBase+0xc0,0xAA);
outp(wBase+0xc4,1);
outp(wBase+0xc0,0x55);
outp(wBase+0xc4,2);
outp(wBase+0xc0,0xa5);
c=getch(); if ((c=='Q') || (c=='q')) break;
}
PIO_DriverClose();
}
OME-PIO-D144 User's Manual (Ver.2.1, Sep/2001)
/* CN3 to CN4 port are all output */
/* CN5 to CN6 port are all output */
/* select CN1_PA
/* set CN1_PA=0x55 */
/* select CN1_PB
/* set CN1_PB=0xaa */
/* select CN1_PC
/* set CN1_PC=0x5a */
/* select CN1_PA
/* set CN1_PA=0xAA */
/* select CN1_PB
/* set CN1_PB=0x55 */
/* select CN1_PC
/* set CN1_PC=0xA5
*/
*/
*/
*/
*/
*/
*/
---- 36

Advertisement

Table of Contents
loading

Table of Contents