Multiple SX48's communication
Amit
Posts: 27
I have multiple SX48's connected together and they need to communicate with each other. There is a common 4 line bus running between RA.0-RA.3 on each SX. I was hoping to set up synchronous communication between the chips similar to that done by the shiftin/shiftout commands. The problem is that both those commands configure the clock line to output mode. How can I set this up so that reading SX reads the data line based on the clock pulse provided by the writing SX.
Also is there limiting factor on the number of SX's that can hooked up in this manner. I couldn't find the numbers on it, but I'd imagine that the current required to drive an input pin high would be under 1mA. Since the SX can source 45mA per pin there shouldn't be any problem driving 10-15 SX's... correct?
Thanks a lot!
-Amit
Also is there limiting factor on the number of SX's that can hooked up in this manner. I couldn't find the numbers on it, but I'd imagine that the current required to drive an input pin high would be under 1mA. Since the SX can source 45mA per pin there shouldn't be any problem driving 10-15 SX's... correct?
Thanks a lot!
-Amit
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Coders' Hangout
A place for programmers to hangout!
http://www.codershangout.com
METROID?
Metroid Classic
You can communicate synchronously with many (probably more than 256) SXes over a single line common to all units.
I have done this many times with 17 SXes, at speeds of 10 Megabits/second. The trick here is to synchronize, all SXes, and then keep them synchronized. This is a little tricky but works very reliably when you get it all together.
Cheers,
Peter (pjv)
Thanks for the info. Do you have any tips on how to do it? What was your setup to keep them synced? Any help you could provide would be greatly appreciated!
Thanks a lot!
-Amit
Unfortunately this is not a trivial subject, and I don't have much time to donate just now. I've spent over a year getting the results right, so I can't just do this with some "pointers".
Possibly if you were an accomplished assembler programmer; knew the nuances of the SX interrupt inside-out, and had a good multi channel oscilloscope on hand, then I might be inclined to have a go at helping. If this is the situation, please let me know, otherwise, I fear I will be pulling you along all the way, and that will take more time than I care to invest.
My reason for posting my results on this were mainly to let you know that it CAN be done, and if you perservere, you CAN also figure it out.
Cheers,
Peter (pjv)