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.

open collector in PORT0 of 8051..

Status
Not open for further replies.

simrantogether

Member level 1
Member level 1
Joined
Sep 11, 2007
Messages
41
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,527

Why do we require Open collector outputs in Port 0 of 8051 microcontroller..


Regards,

Simran..
 

As a matter of fact, it is OPEN DRAIN, not OPEN COLLECTOR ..

Historically speaking, early microcontrollers didn't have much inside and they had to relay on external devices such as memories ..
To connect external memory one needs bi-directional port and the simplest way to obtain bi-directional line is to use an open drain as the output line ..
When the output transistor is blocked, an external device can control the line ..
In other words, when software writes "1" to the latch assiciated with the output line it is fast turned into an input line ..

Nowadays, most of 8051-derivatives have enough internal program and data memory, so the open-configuration feature is hardly used, but some designers are happy to use these pins as I2C drivers, which require open-drain configuration ..

Regards,
IanP
 
Strictly speaking, the PORT0 output structure is more complicated than just a plain open drain. When accessing external memories, during the address phase, it is a true push-pull output; and before it turns to the data phase (when it would be an open collector quasibidirectional output), it writes automatically all 1s into the output buffers, so effectively it turns into a pure input.

It's only when PORT0 is used as an general purpose I/O port, it can be seen as a quasibidirectional port...

Of course, this (and in more colorful details), and all sorts of fine information, can be found - where else - in the "bible"...

JW
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top