Hi Rob,

Interesting... Theoretical baudrate deviations close to -10% should be
possible iirc, so 5%should be safe. However, if transmission speed is
higher then receiving speed and transmission is continues, garbage can
occure. So I'm interested what happens. Are there overruns? Is the
baudrate divisor calculated correctly? Has it to do with you specific
host (probably not)?
I think we need to know what happens, before we decide to reduce the
tolerance allowed. Adding a warning may be wise though.

Joep

2010/1/19 Rob Hamerling <[email protected]>:
>
> 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.
>
>
>
>
-- 
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.


Reply via email to