Meaning of the mode bits in FullDuplexSerial?
simonl
Posts: 866
I'm wondering what the "open drain/source tx" bit actually means (in FullDuplexSerial). Anyone able to shed some light?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
“Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
“Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
“Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
I now understood as well · the open drain/source part
In case the invert bit is also set, it's the other way around. The line itself should be pulled down to low and the propeller has to push it to high level.
Driving line high with resistor is called open drain, driving the line low with resistor is called open source.
How does that work for both cases?
Well, the TX pin is not permanently an output-pin. The code only sets the dira-bit of the TX pin to 1, if the line needs to be driven by the prop and sets the dira-bit to 0 if the pushup/pulldown resistor should do its job ;o)
Post Edited (MagIO2) : 5/5/2009 1:28:33 PM GMT
Actually, this has helped me even more - just this morning I was wondering if FullDuplexSerial could be made to do simplex comm's (Tx & Rx share one wire, and Tx/Rx is one way at a time). Now I know it can
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
“Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.