http://www.sampson-jeff.com/article/.../int.htm#async
Please scroll down to figure 3b;
Looks interesting; Tx, Rx, and perhaps power too, all on 1 line.
Comments, folks?
http://www.sampson-jeff.com/article/.../int.htm#async
Please scroll down to figure 3b;
Looks interesting; Tx, Rx, and perhaps power too, all on 1 line.
Comments, folks?
Also, from the forum, http://www.picbasic.co.uk/forum/showthread.php?t=4292
Bob talks of a separate line for flow control, but that could be avoided by querying each slave, I guess.
Recently, I too needed to connect a couple of nodes to a common controller. I wanted a bus on which I could go on adding slaves "in parallel".
Also, half duplex was acceptable in my application. This is the outcome: works like a charm along a 20 meter cable run at 9600 baud. I'm sure will run much longer at slower speeds..
And, comms happen over a single line, so you also save a pin on the pic.
Hope somebody finds it useful!
![]()
Thanks, Andy.
Actually, there's nothing to it, really.
Just set up the Rx and Tx routines as shown in the graphic (substitute the pin you're actually using in place of the C.6 I've shown) and call Tx before each transmission, and Rx before receiving (or more accurately, after each transmission).
So, at any time, only one guy is transmitting.
And, make sure the pin you're using is set for digital I/O, of course.
Anand
Hello Anand,
Thank you very much buddy in advance for your replying me.
In brief, I am beginner at PIC world, and absolutely not expert such as you bro.
Would you mind if you share an applicable sample here (for Master and slaves), please?
I would deeply appreciate for your understanding and most valuable support.
Regards,
Andy
Last edited by andymuller; - 27th January 2015 at 17:47.
test post to open a closed thread (I have a pending post)
can be deleted once another post is added (thread auto-closes if I remove this one)
Last edited by Demon; - 1st June 2024 at 03:34.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I can post here just fine. I see it opened.
Ioannis
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks