EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / pull up resistor

pull up resistor

|

Microcontroller › 8051 › pull up resistor

  • This topic has 23 replies, 15 voices, and was last updated 9 years, 2 months ago by Anonymous.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • October 18, 2011 at 2:54 pm #1321
    dharmik
    Participant

    why we need to connect pull up resistor to port 0 and what haappen if we dont ??  tell me some intresting abt it i know the basics of port0 …..  i had checked for both the conditions

                 and is pull up is essencial for connecting loads to port 0 or for all connections???

     

    October 20, 2011 at 9:57 am #6730
    nikhiljain
    Participant

    The 8051 microcontroller does not has internal pull up for port 0, for rest of the ports it has internal pull up so u dont need to connect.

    October 21, 2011 at 12:36 pm #6734
    dharmik
    Participant

    i already knew it dude ,,,,,,, i am seeking for some extraorinary information that i never had heard ……. what  is the funda of pull up?

    October 21, 2011 at 4:12 pm #6735
    Mohit garg
    Participant

    The key function for the resistor itself is to prevent too much current from flowing through the pins..

    and if we dont connect it ..noting will happen…:

     

    October 21, 2011 at 5:30 pm #6736
    Qaisar
    Participant

    hi ..

    what happened if the transistor is ON . vdd has a direct connection to ground as shown in equivalent switch diagram .it will short out the circuit. high current will flow.high current increase the temprature. if you are not lucky port pin might be burn out..

    so u have to connet a resitor at drain called pull up resistor . it limits the current.it also provide correct logic levels when the transistor is on or off..

    when the transistor is off it pulls up the drain terminal at high logic level thats what required…

     

    wysiwyg_imageupload:3013:

    October 22, 2011 at 7:10 am #6737
    dharmik
    Participant

    smiley that was really nice but now question arises is that pull up resistor is required only if want to connect some load to port0  pin or its also essential if we want to send high and low logic simply …… for eg, if lcd pins RS, RW and E pin is connected to port0 then pull up is required or not ?????

                  and why pull up is not inbuilt in 8051family  if its too essential ????????

    October 22, 2011 at 12:30 pm #6738
    Qaisar
    Participant

     

      yes ..if u r using port0 as i/o pin u must have to connect pull up resistor .

     if u are not using pull up resistor it gives logic 0 but will not gives logic 1 , instead it floats (high z) .

     

    2nd question is why it does not have built in pull up resistor.

     

     The P0 port is characterized by two functions.

    PO is  used to interface external external memory . 

    If u have to interface external memory  then the

     address/data  is applied on it. Port 0 is also designated as AD0-AD7, allowing it to be used for both address and data..address and data is multiplexed.

    Otherwise, all bits of this port are configured as I/O pins.

     

    when extrnal memory is connected to port 0 then microcontroller will provide internal power source to its pins so there is no need to connect external pull up resistor.

     

     

     

     

    October 22, 2011 at 1:37 pm #6740
    Amol Shah
    Participant

    wysiwyg_imageupload:3014:height=228,width=525

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    You can see an open collector o/p used in IC. In same way we have open drain o/p in 8051 port0. The output essentially acts as either an open circuit (no connection to anything) or a connected to ground. we use external pullup resistor to provide high volt (1) rather than providing open circuit output.

     

    Because the pull up resistor is external and need not be connected to the chip supply voltage, a lower or higher voltage can be used instead. Open collector circuits are therefore sometimes used to interface different families of devices that have different operating logic voltage levels or to control external circuitry that requires a higher voltage

    October 22, 2011 at 5:57 pm #6741
    shankhalpara bhargav b.
    Participant

    hello dharmik….

     

    you know basic about port 0 so as we know that port 0 has multiplex address and data bus so

     if we not connect external pullup than it will sink current from both one from inside supply as well as outer vcc supply and it would be a large current flow through internal transistor so it will damage port so thats why…..we use external pull up resistor is used in port 0 rathar than other port because other port not have any multiplexing add or data bus.

     

    October 23, 2011 at 6:19 am #6744
    dharmik
    Participant

    thanks all of you …. what is the internal structure of resistor array how to connect it to port0 if we want ???

    and which array is most suitable for atmel 89c51 4.7k or 10k…….?

    October 23, 2011 at 10:51 am #6745
    Amol Shah
    Participant

    since all other ports have 10k internal pull up resistor my suggestion is to go for 10k resistor. But the value of the pull up also depends for what you are using the pins for

    December 28, 2011 at 6:53 am #6956
    Ramesh
    Participant

    hello everyone

                       for past two weeks i am trying to do 4*4 keypad interfacing with 89c51 but i am not getting the output i can see only shuffled values in lcd not the assigned values plz help with the design and programming :):):) i am using keilc compiler and proload for dumping 

    wysiwyg_imageupload:3455:is there any problem with my circuit plzzz help me 

     

     

     

     

    or mail me at

    sramesh1992@gmail.

    com  

    January 20, 2012 at 5:28 am #7048
    mohamed shahul meeran
    Participant

    k guy. i have small doubt .why we are choosing cystal frequency of 11.0592mhz used.??

     

    May 12, 2012 at 7:53 am #7749
    Sindhu
    Participant

     hi guys,

     

    extension of this doubt…

     

    why is the value of pull-up resistor used = 10k? for a supply of 5V, this yields a current of 0.5mA..

     

    How does the microcontroller know whether there is a high signal or low signal on this pin?

    May 12, 2012 at 7:53 am #7769
    Sindhu
    Participant

     hi guys,

     

    extension of this doubt…

     

    why is the value of pull-up resistor used = 10k? for a supply of 5V, this yields a current of 0.5mA..

     

    How does the microcontroller know whether there is a high signal or low signal on this pin?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Supply vs performance query February 7, 2026
  • wall transformer polarity February 7, 2026
  • Do i need a buffer? February 7, 2026
  • BPF February 7, 2026
  • Figgie International intercom 1998 era February 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise