By the way, if the calculation is performed during the program run, I think this is better:
*UBRR = (((F_CPU + (ULONG)UART_BAUD_RATE<<3)) >> 4) / UART_BAUD_RATE - 1;* Here we exclude 2 multiplications of LONG vars. 2011/1/6 Bob Paddock <[email protected]> > > May or may not be relevant to your case: > > http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_wrong_baud_rate > >
_______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
