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