abacusdheda
Junior Member level 1
unsigned char USART_Receive( void )
{
/* Wait for data to be received */
while ( !(UCSRA & (1<<RXC)) )
;
/* Get and return received data from buffer */
return UDR;
}
using this code(which is also given in datasheet), i m not able to receive in terminal for simple echoing program(especially d one wrote in ICCAVR), in codevision i used standard library functions getchar putchar, but having problem with the above given code.:?::?::?::?: