the code below that you sent should not compile as there needs to be a
semi-colon after the word data ... and ... it looks like your first while
needs 2 equal signs. why don't you post your actual code so we can see what
you are really using ... both you initialization and your transmit code.
Jim
----- Original Message -----
From: "aswinefy2003" <aswinefy2003@yahoo.co.in>
To: <AVR-Chat@yahoogroups.com>
Sent: Monday, July 04, 2005 2:29 AM
Subject: [AVR-Chat] problem with uart help
> I have the following code written in icc avr compiler
>
>
> uart_init()//intialiation of uart
> delay();
> while(condition=true)
> {
> while(!(UCSRA&(1<<UDRE)));
> UDR=data
> }
>
> The problem is when i remove the delay
> the uart is transmitting is some junk char's .
> But if the delay() is present there ,there is no problem .
> KIndly advice to rectify the problem
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>Message
Re: [AVR-Chat] problem with uart help
2005-07-04 by James Hatley
Attachments
- No local attachments were found for this message.