varunme
Advanced Member level 3
How can i modify the below code for hitech c?
rxbyte=RCREG;
switch(rxbyte)
{
case 0x01:
PORTC=0b00000001; //code to do what you need on portb when command 0x01 is received;
break;
and so on
}
rxbyte=RCREG;
switch(rxbyte)
{
case 0x01:
PORTC=0b00000001; //code to do what you need on portb when command 0x01 is received;
break;
and so on
}