need help..
i am currrently trying to prgram my pic to receive a signal from sensor then just to put out an output. out put is just LED
void main(void)
{
TRISA=0b11111111; //set PORTB as input
TRISB=0b11111111; //set PORTC as output
TRISC=0b00000000;
TRISD=0b00000000;
RD3=1;
{
if(RB5==0)
{
RC3=1;
}
else if (RB5==1)
{
RC3=0;
}
}
}
this is my programming.. how come the RC# does not lie up at all???
can any1 help me pls
i am currrently trying to prgram my pic to receive a signal from sensor then just to put out an output. out put is just LED
void main(void)
{
TRISA=0b11111111; //set PORTB as input
TRISB=0b11111111; //set PORTC as output
TRISC=0b00000000;
TRISD=0b00000000;
RD3=1;
{
if(RB5==0)
{
RC3=1;
}
else if (RB5==1)
{
RC3=0;
}
}
}
this is my programming.. how come the RC# does not lie up at all???
can any1 help me pls