Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] problem with uart help

2005-07-04 by James Hatley

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.