Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: What serial speed (RS232) can I achieve using the built-in oscilator, runnin

2007-05-31 by Samir Lohani

One technique I've used with great success in RC
oscillator Nitron devices is  to use the target to
itself calibrate the half-bit delay loop.I get the
target to send $7F to the micro at the start of the
serial session. The serial line is low for exactly
one-bit period, which is used to set the internal
delay count variable (in EEPROM). Then the micro will
send at the detected bit-rate.
Note that this also gives auto-baud detect including
for non-standard baud rates.

Cheers,
Samir.

--- David VanHorn <microbrix@gmail.com> wrote:
> Generally speaking, you need at least a resonator,
> or crystal, to do accurate baud rates.
> You have to factor in ALL the error sources.  First
> you have to allow the other device at least half
> of the error budget,then figure your
> divisor error, then min and max tolerance on the
> clock. When you add it all up, the internal RC
> isn't good enough for serial.



       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.