This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

input through serial port

I need some help regarding how to give input through serial port.
I can see the output of serial port in UART #1.

char rxcharacter(void)
{ char character;

SBUF = _getkey ();
//SBUF = 'G';

while(RI != 1);

character = SBUF;
RI = 0;

return character;
}

0