Quanmax KUBE-8040 User Manual page 40

Embedded box pc with intel core 2 duo processor
Table of Contents

Advertisement

outp(0x53a,RetVal);
system("pause");
//Reading DIO_IN 1~2
RetVal=inp(0x50C);//IO Port: 0x50c
RetVal=((RetVal&0xC0)>>6);
printf("DI 1/2= %d",RetVal);
system("pause");
//Reading DIO_IN 3~4
RetVal=inp(0x538);//IO Port: 0x538
RetVal=((RetVal&0xC0)>>6);
printf("DI 3/4= %d",RetVal);
system("pause");
return 0;
}
KUBE-8040 User's Manual
//DIO_IN 1 is bit 6
//DIO_IN 2 is bit 7
//DIO_IN 3 is bit 6
//DIO_IN 4 is bit 7
40

Advertisement

Table of Contents
loading

Table of Contents