Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] 4 Serial Ports

2004-06-30 by Reza

--- Paul Maddox <P.Maddox@signal.qinetiq.com> wrote:
> Dear all,
> 
> anyone have any idea how I can add an extra two
> serial ports to a Mega128?
> I basically want two extra ports for communicating
> with two other Mega128's,
> doesn't need to be super fast 192Kbaud will be fast
> enough.
> 
> Paul
> 
> 
> 
Hi.
I dont know this can solve your problem, or not.
but I had same problem wichi was communicating with PC
and at same time with 12 other micros.

I used a bridge (an ATmega163) and other micros were
163 also. I was build a bridge board which
periodically switches between all channels which were
connected to 163 using a MAX232 a buffer. but in all
cases the bridge board denotes which micro haveto
communicate and in which direction like this:

for all channels including PC
   enable channel
   query channel if need to send a packet
   if so, request to send the packet
   disable channel
   enable target receiver channel (specified in
packet)
   send data to target receiver
   disable channel
end for

I used this method at 9600 bps but in my problem, the
speed was a great problem bcz of distance and quality
of medium used for communication.

reza


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

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.