Problems understanding pin connections

Feb 06, 2006 1 Replies

Hello !



Can anyone direct me to a good guide which explains the differences between "common" microcontroller pin types, such as "open-drain" or "push-pull" etc ?



The reason I'm asking this is that I'm trying to connect a TEA5768HL's SWPORT1 to a C8051F320's input port pin and I'm not sure how I should do it to make sure it works correctly. I've contacted Philips asking them the same question, but while they're able to help me with this specific issue, I would like to understand what it's all about so I don't have to ask again when I move on to another product or project.



Greetings, Antti Keskinen


Any good book that explains digital logic should do this. I would imagine it's in the ARRL handbook or "The Art of Electronics" by Horowitz & Hill (I'm not sure, though).

Here's a quick guide, though:

"Push-pull" (normal output) -- Actively supplies current from VCC to pull the voltage up, and pulls current to VEE to pull the voltage down. In CMOS this means it has a P-type transistor to VCC and an N-type transistor to VEE.

"Open-drain" (or open collector) -- Has a transistor to ground, either N-type MOS or NPN in TTL.

"Tri-state" -- Has pull-up and pull-down transistors, with a control line to turn both off. Hence, three states -- high voltage, low voltage or high impedance (to let other devices drive the line).

In addition to this you need to pay attention to old-style TTL logic interfaced to CMOS: a 5V TTL part is only guaranteed to drive about 2.7V or so as a "high", which is less than what 5V CMOS is guaranteed to respond to. If you want to interface TTL to CMOS you have to use special CMOS parts with a lower threshold. Ditto for interfacing parts with a 3.3V VSS to parts with a 5V VSS.

Tim Wescott Wescott Design Services http://www.wescottdesign.com

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required