Pages: [1]   Go Down
Author Topic: Extra TTL interface(s)  (Read 907 times)
0 Members and 1 Guest are viewing this topic.
Florida
Offline Offline
Newbie
*
Karma: 0
Posts: 32
It is what it is...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Simple question from an idiot...

I need to interface to multiple serial type devices and I don't want to use soft-serial to make it work. How can I get that second serial interface?
Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.acroname.com/robotics/info/ideas/sermux/sermux.html

Logged

If it was designed by man it can be repaired by man.

Florida
Offline Offline
Newbie
*
Karma: 0
Posts: 32
It is what it is...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Perfect!

Thanks!
Logged

Florida
Offline Offline
Newbie
*
Karma: 0
Posts: 32
It is what it is...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems like I'm set up to possibly loose data with a muxing setup, even if I write my handler with an interrupt driven system to receive the data. Not to mention what happens if I actually need to send data...

What's the best way to prevent this data loss? Would a buffer stuck in front of each muxed interface be appropriate or is there a better way I'm overlooking??
Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just talking to one device at a time is the best solution.
That way you can switch between them reliably.

You only lose data if both serial devices are sending data to the microcontroller at the same time.
Make it so at least one of them asks whether the line is clear before sending is all you need.
Logged

Pages: [1]   Go Up
Jump to: