Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can i program MCu GPIO to be in Hi-z ?

Status
Not open for further replies.

levnu

Full Member level 2
Joined
Oct 29, 2010
Messages
149
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,298
Location
Israel
Activity points
2,501
Can i program the MCu GPIO output to '1' or 'Open circuit/Hi-Z/tri state'?

i thought that GPIO is sort of Open drain so how can it be Hi-Z?

Also i still couldn't understand how Hi-z is achived, is it only a FET switch?
 

Are you referring to a specific mcu?

There are mcu with open drain output or push-pull or others have a selection flag to make a pin open drain.
 
  • Like
Reactions: levnu

    levnu

    Points: 2
    Helpful Answer Positive Rating
No i asked in general.
i'm tring to understand how GPIO implemented in mcus & if also some mcu includes Hi-Z option in GPIO, so how it can be acheived?
 

No i asked in general.
i'm tring to understand how GPIO implemented in mcus & if also some mcu includes Hi-Z option in GPIO, so how it can be acheived? QUOTE]


Is this a college/university assignment i.e. is this your homework?

Either way, I think you need to do some fundamental digital electronics reading. Make sure you understand the TTL 'push-pull' logic output. From there you can read and understand open-drain and tri-state. Trying to teach you that here is not what the forum's aiming for.

Either way, the usual method to get a GPIO pin into high-impedance mode is to configure it as an input and ignore it in software.

However, if it's a true 8051 or similar, you configure a pin to be an input by writing a '1' to it's output register then leaving it alone. These MCUs implement 'quasi-bidirectional' GPIO pins which was a scheme that saved MCU logic gates by eliminating configuration registers etc back when every gate was precious.

Please do the reading, it's the best way. Good luck...
 
  • Like
Reactions: levnu

    levnu

    Points: 2
    Helpful Answer Positive Rating
Thanks, it seems you trying to prevent me from asking whatever i see is right...it doesn't importent what is my reason for asking.....you had the choise not to answer and even not continue reading...
i'm autodidact and i try to find leads to info that interests me ...

if wouldn't ask this question here i could continue swimming in the ocean of endless knowlage w/o being refered by you to TTL 'push pull' logic output etc.

Moreover this forum is great!!!
and if i ever have enought knowlage to answer to others i'll defiently do it, although my own knowlage is limited so for now i only asking question in this forum.

- - - Updated - - -

TonyM, what the forum's aiming for?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top