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.

Pull Down resistor at port0 ?

Status
Not open for further replies.

jay1691

Member level 2
Joined
Jul 22, 2014
Messages
47
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
345
Hello All,

Is it possible to connect some IO Pins of PORT0 (At89s52 MCU) to Pull Down ?

In more specific when it is worked as output pin.
 

To achieve what?

Port0 needs pull-up resistors to get a statical non-zero output voltage.

Datasheet explains:
Port 0 has no internal pullups. The FET pullup in the P0 output driver (see Figure 4) is used only when the Port emits 1s during external memory accesses. Otherwise, the FET pullup is off. Consequently, P0 lines that are used as output port lines are open drain.
 

Hiii FVM,

Please find block diagram for more information.
Here i drive relay by switching ground through transistor. QUE.JPG
 

As you can read from the datasheet, your circuit doesn't work. The transistor will be never turned on.

I guess you want to assure that the relay isn't turned on unintentionally, e.g during µC reset. The only save way to achieve this with a 8051 processor is to an active low controlled relay driver, e.g. a PNP transistor or a NPN transistor with additional inverter.
 
As the PORT0 of 8051 microcontroller is open drain. So externally you need to connect a pull-up to make it work. Jay when you try to make that particular pin high from port 0 it won't work. So make a pull-up resistor and use a PNP transistor to drive a relay or still if you want to use NPN add a inverter after the pull-up resistor.
 
Hi FVM ,

Thank you for your reply.

Dear Surendhar,

Actually i thought to use PNP transistor but as somewhere i read that it is not recommended to use PNP transistor for switching ground of circuit. So i didnt use PNP.
But according to you i will try practically by using PNP transistor.
Thank you for your advice.
 

Dear FvM,
As you said "The only save way to achieve this with a 8051 processor is to an active low controlled relay driver, e.g. a PNP transistor or a NPN transistor with additional inverter"

can you please suggest me any example of this type of circuit or any practical circuit ?
 

Notice that the port inactive output state must be high.



- - - Updated - - -

Simplified for 8051 open drain outputs

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top