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;
}

More questions in this forum