Hi Joep,
I frequently use 20MHz resonators for my (test-)boards, but sometimes 16
MHz resonators. With 20 MHz serial comms is no problem at 115200 bps,
but with 16MHz I get sometimes garbled data. When my calculations are
correct (and the 16MHZ resonator is really 16MHz) this is with a baud
deviation of 3.6 percent, while the library has an error limit of 5%.
When I reduce the baudrate to 57600: perfect communications.
I think that a _real_ deviation of 5% is acceptable, but that includes
the deviation of the oscillator frequency.
I see that TinyBootloader gives a warning at 2% and an error at 4%
deviation.
Would is be an idea to improve the baudrate calculator in this sense (be
more strict in acceptable baudrate deviations, e.g. 2.5%)?
Regards, Rob.
--
Rob Hamerling, Vianen, NL (http://www.robh.nl/)
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.