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.

IO ports in microcontrollers open drain configuration

Status
Not open for further replies.

aashishsharma

Member level 5
Joined
Jun 26, 2013
Messages
93
Helped
4
Reputation
8
Reaction score
4
Trophy points
8
Activity points
683
Hey I just got confused with IO ports of microcontrollers.
1. Are IO ports in all the micro controllers uses open drain configuration?
2. Correct me If I am wrong when IO port is used as input it is always deliberately pulled up to positive high voltage as if its left open then noise can make it 0 or 1 but if its pulled up then noise can have no effect on it whatsoever but downside is that input must be inverted( as if switch is connected to this port and this port is configured as input then switchpress can be detected if switchpress give 0 volt to the pin otherwise its already pulled up) Thus we can only detect the presence of 0 volt on this input configured port.
3.I used atmega 8/16 microcontroller and IO ports were not that comlicated. I started to study 8051.
Datasheet says writing 1 to port register makes it input( reverse of atmega8/16). Now if you look internally Writing 1 means internally base is given higher voltage. Right? but if base is always at logic one how can transiter act like switch atall? afterall this is how open drain configuration work
 

Attachments

  • ioports.png
    ioports.png
    157.5 KB · Views: 65

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top