RE: [AVR-Chat] Digest Number 1075
2005-07-05 by Lauer, Thilo
I don't actually use the IAR compiler and didn't actually test this
code, but so far, nobody seems to complain about the value assignment
within the while statement, which in fact should just be a comparison:
uart_init()//intialiation of uart
delay();
while(condition=true) // shouldn't that read: "while
(condition == true)"??
{
while(!(UCSRA&(1<<UDRE)));
UDR=data
}
I also don't know if this will fix your problem, but it's definitely a
bug in your program.
-- Thilo