Open drain??
Mike B.
Posts: 31
The Propeller BackPack docs say that I must use an open drain pin for the serial pin.· This is the first time I have heard this term used in connection with a serial device.
· What are they trying to tell me and how do I do it??
· Thanks.· Mike B.
· What are they trying to tell me and how do I do it??
· Thanks.· Mike B.
Comments
This type of connection works well for serial devices if raw speed and high noise resistance are not issues. The resting (idle) state of a serial line is logic high (Vdd) and the serial line is brought to near ground for active (logic zero) signals. A "totem pole" circuit works better for high speeds and high noise resistance since there's a 2nd transistor between the output line and Vdd that quickly raises the signal to logic high. If you connect two "totem pole" outputs to the same line, there's the potential for a short circuit if one device is at logic low and the other is at logic high. An "open drain/collector" output can be paralleled with another without the danger of a short circuit.
Post Edited (Mike Green) : 7/31/2010 9:45:12 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Why did I think a new, more challenging, job was a good idea ??
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
· As far as I can tell there isn't any feedback from the backpack so it's one directional from the (in my case) Propeller chip.· Can't I just hook it directly to the backpack serial pin and go about my business or am I missing something here??
· By the way, the 7" display I got from Parallax to use with the Backpack is really nice and complete with 2 video inputs and a REMOTE!· Love it..
·Mike B.
Now, having said that, for certain apps (like the preinstalled TV terminal program) communication is one-way only. So, strictly speaking, there won't be any return communication, and one could get by with a totem-pole output to the board -- at least when the "high" level is 3.3V; not when the "high" is 5V. Moreover, the pin has a series resistor, so bus conflicts are accommodated. Nonetheless, it's still a good idea to get in the habit of using open-drain communication with this board, in case you ever want to write your own software for it -- and always with 5V logic levels.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 7/31/2010 11:18:15 PM GMT
Instead of putting the pin to output and using
0 (connected to ground)
and
1 (connect to 3.3v)
for commutations that could create a short if both sides are trying to TX communicate)
But if you use Open Drain.
Where you use output with a 0 (ground) for sending a zero
and switch the pin to input (Z as it's 2mega ohm+) with an external pull-up 4k7·resistor to send a 1.
So the T1 in the below picture represent a prop pin.
Post Edited (tonyp12) : 8/1/2010 3:25:24 AM GMT
· Something is just not sinking in here.· Like they say, a picture is worth a 1,000 words.· Maybe it's the terminology that's screwing me up..· Are we talking about a NPN transistor between the prop and the backpack serial pin??·
Mike B.
-Phil
· Thank so much Phil !!· I have read and re-read all these posts and it sounded like everyone was telling me I needed some sort of additional circuit to make this all work which sounded like "really?· Why on earth would Parallax or any manufacturer make a serial connection so complicated?"· lol..
· I had my Son measure the actual distance between my ears, only 9.5 inches.· Why then·did·the·information traveling at·the speed of light take so long to get from one side to the other??· · <--(dunce cap)
Mike B.
-Phil
· OBJ FDS· : "FullDuplexSerial"
·····FDS.start(10,10,%01000,9600)
· This 7" display and backpack are going to make a dandy display for my submarine controller.
Mike B.