Shop OBEX P1 Docs P2 Docs Learn Events
What''s a UART? — Parallax Forums

What''s a UART?

ArchiverArchiver Posts: 46,084
edited 2004-02-04 01:41 in General Discussion
I've seen the term before many a time but specifically what is a UART and
how does it relate to serial coms on a Basic Stamp?

Thanks,
Chris

<<<>>>

Date: Tue, 03 Feb 2004 21:31:20 -0000
From: "suri_list" <suri_list@y...>
Subject: Re: OT : How does the stamp implement multiple UARTS on all pins

thanks this answer makes sense. I was suprised that the hw uart on
the pic was able to connect to all i/o.
its a software uart : thats why it can bit bang on all bits.
in our case we need to implement 6 serial connxns from the atmega128
which has 2 uarts. seems like the best we could do is run two serial
from them and the rest would have to be bit banged.
thanks
--- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
wrote:
> The BasicStamp can do these things because it uses
> a "bit-bang" uart in software. When you issue
> SEROUT 16, 16384, [noparse][[/noparse]"Hi"],
> a software routine sends the bits out port '16'
> (the built-in serial port) and controls the
> timing of the serial bits with a timing loop.
>
> This is why you can only send out one port
> at a time -- but you can send out any port.
>
> The PIC has a hardware UART on-chip. To use
> a hardware UART, you simply write to the
> UART's transmit register, and it handles all
> bit timing in the background.
>
> The benefit of this is that your processor
> can be doing other stuff while the byte is
> being sent.
>
> If you had multiple hardware uarts, your
> Stamp would only have to talk to them when
> a byte was ready -- not have to sit there and
> ONLY send out bytes, or ONLY recieve bytes,
> and oh by the way the Stamp can't do both at
> the same time.
>
> It's the 'simultaneous' aspect which is
> desirable and people pay for.
>
> --- In basicstamps@yahoogroups.com, "suri_list" <suri_list@y...>
> wrote:
> > I have a question regarding using a MCU to implement multiple
> serial
> > (UART)

________________________________________________________________
The best thing to hit the Internet in years - Juno SpeedBand!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
Sign In or Register to comment.