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.

[SOLVED] [Moved] MICROCONTROLLER - PORT 0 is not giving output high voltage

Status
Not open for further replies.

knark

Junior Member level 1
Joined
Dec 13, 2010
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,438
i am burning this program in the controller 89c51 and o am setting all the pins of port 0 equals to 1 and the high voltage at port 0 is not ore than 0.7V while it gives 0V at low my code is

#include<reg52.h>
#define port P1
#define key P0


void main()
{
key=0xFF;
}
please if any one can help me out
 

PORT 0 of 89c51 and 89c52 are open collector outputs. means you have to connect a pull up resistor with p0 of 89c51/89c52. without pull up resistor it will not work. so put a pull up resistor of any value, 1k ohm , 2.2k ohms or 3.9k ohms with this port and then connect the load with it.

look at a simple schemetic just for understanding.



regards
 
  • Like
Reactions: knark

    knark

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top