swakit
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;
}
code is not working....directly copied from datasheet!!!!!...
RXC bit is also not getting set...what could be the problem...please help...
{
/* Wait for data to be received */
while ( !(UCSRA & (1<<RXC)) )
;
/* Get and return received data from buffer */
return UDR;
}
code is not working....directly copied from datasheet!!!!!...
RXC bit is also not getting set...what could be the problem...please help...