Atmel AVR Microcontroller discussion group.
Best Communications Protocol for AVR? - danjmaclean - Feb 17 22:08:00 2003
Another annoying newbie question: What do you recommend for simple
serial communications with an AVR? RS232? 1-Wire? I2C?
I'm looking for something easy to implement with BASCOM or GCC-AVR
and requires very few support components. Has anyone had more luck
with one than the others?
Thanks!

(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )
Re: Best Communications Protocol for AVR? - poitsplace - Feb 18 6:48:00 2003
--- In avrclub@avrc..., "danjmaclean <captainvideo@w...>"
<captainvideo@w...> wrote:
> Another annoying newbie question: What do you recommend for simple
> serial communications with an AVR? RS232? 1-Wire? I2C?
>
> I'm looking for something easy to implement with BASCOM or GCC-AVR
> and requires very few support components. Has anyone had more luck
> with one than the others?
I think most just use RS-232. Most of the popular Atmel chips have
onboard UARTs. To get the RS-232 levels you should just pick up a
MAX232 chip when you order your stuff (if you're not using Atmel's
programmer). I also have a link (it's on another computer...I'll dig
it up later) to some relatively simple schematics for getting the RS-
232 levels using the computer's own output. I'm actually using one
of those now (even though I have several MAX232 chips now...hey, if
it's not broken, don't fix it)
Since you're classifying yourself as a newbie...I'll point you to one
more helpful bit of info. There are specific pins on each MCU that
connect to the UART. You'll see them labeled as TXD and RXD on the
datasheets.
Also, on a completely different subject...don't screw around with
clock crystals that require external capacitors. Just get resonators
with internal capacitors. They cost just as much, but save a little
board space and wiring

(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )
Re: Best Communications Protocol for AVR? - danjmaclean - Feb 19 17:06:00 2003
Thanks for the info! I agree about the resonators. Way easier!
--- In avrclub@avrc..., "poitsplace <lmburt@e...>"
<lmburt@e...> wrote:
> --- In avrclub@avrc..., "danjmaclean <captainvideo@w...>"
> <captainvideo@w...> wrote:
> > Another annoying newbie question: What do you recommend for
simple
> > serial communications with an AVR? RS232? 1-Wire? I2C?
> >
> > I'm looking for something easy to implement with BASCOM or GCC-
AVR
> > and requires very few support components. Has anyone had more
luck
> > with one than the others?
>
> I think most just use RS-232. Most of the popular Atmel chips have
> onboard UARTs. To get the RS-232 levels you should just pick up a
> MAX232 chip when you order your stuff (if you're not using Atmel's
> programmer). I also have a link (it's on another computer...I'll
dig
> it up later) to some relatively simple schematics for getting the
RS-
> 232 levels using the computer's own output. I'm actually using one
> of those now (even though I have several MAX232 chips now...hey, if
> it's not broken, don't fix it)
>
> Since you're classifying yourself as a newbie...I'll point you to
one
> more helpful bit of info. There are specific pins on each MCU that
> connect to the UART. You'll see them labeled as TXD and RXD on the
> datasheets.
> Also, on a completely different subject...don't screw around with
> clock crystals that require external capacitors. Just get
resonators
> with internal capacitors. They cost just as much, but save a
little
> board space and wiring

(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )