System Installation
ROBO-8112VG2AR User’s Manual
3-13
//Set
output
Or_Register(0xC8,0x10);
//14
Or_Register(0xCA,0xE0);
//35,36,37
//output
high
outp(GP0,0x10);
//14
outp(GP2,0xE0);
//35,36,37
result=1;
if ((inp(GP0)&0x06)!=0x06) result=0; //11,12
if ((inp(GP3)&0x80)!=0x80) result=0; //47
if ((inp(GP4)&0x01)!=0x01) result=0; //50
if
(result==0){
printf("Test
fail!!\n");
return
1;
}
//output
low
outp(GP0,inp(GP0)&0xEF); //14
outp(GP2,inp(GP2)&0x1F); //35,36,37
result=1;
if ((inp(GP0)&0x06)!=0x00) result=0; //11,12
if ((inp(GP3)&0x80)!=0x00) result=0; //47
if ((inp(GP4)&0x01)!=0x00) result=0; //50
if
(result==0){
printf("Test
fail!!\n");
return
1;
}
//getchar
();
printf("Test
Pass!!\n");
return
1;
}