Atmega8 usart not receiving in ICCAVR

Status
Not open for further replies.

abacusdheda

Junior Member level 1
Joined
Dec 28, 2009
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
INDIA
Activity points
1,381
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.:?::?::?::?:
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…