Hi guys,
I'm trying to send many data bytes at once via UART to the PC using Peter Fleurys UART Library.
The TX buffer size is about 32 Byte, but I need to transfer much more,
so I tried to check, if the TX buffer is empty and then send the next byte.
As proposed in some threads here, I used
while ( !( UCSR0A & (1<<UDRE0)) );
but that doesn't seem to work. This line freezes everything.
Can anybody please explain what's happening and how get it work?
for (uint8_t i = 1; i< 200; i++ ) { while ( !( UCSR0A & (1<<UDRE0)) );// Wait until buffer is empty uart_putc(i); }
Many thanks!
BEXX