Hallo,
bei folgendem Code wird nur ein Zeichen gesendet, obwohl eigentlich endlos gesendet werden soll:
Code:
#include <avr/io.h>

void init_usart(void)
{
 UBRRL |= 0b01100111;
 UCSRB = (1<<TXEN) | (1<<RXEN);
 UCSRC = (1<<URSEL) | (1<<UCSZ1) | (1<<UCSZ0);
}


int main(void)
{
 unsigned int i;
 i = 0;
 init_usart();
 do
 {
  while (!(UCSRA & (1<<UDRE))) {}
   UDR = 'C';
 } while (i != 0);  
}
Wisst ihr warum nur einmal gesendet wird?
Gruß
Spurius