+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Member level 4
    Points: 429, Level: 4

    Join Date
    Sep 2019
    Posts
    69
    Helped
    0 / 0
    Points
    429
    Level
    4

    pull pull down meaningon GPIO

    Hello, In the photo bellow there is a diagram for general purpose input output(GPIO).
    When they say in the manual "The following code configures pin 5 from Port C as a digital input with pull-up and filter"
    We see in the diagram is just connecting the output to VDD and pull down is connecting the output to GND.
    So if we have digital input of a square wave then the pull up cancels it totally because we have path to VDD (OR) ground.
    We ruin our signal by doing pullup or pull down.
    What is it good for?
    Thanks

    Click image for larger version. 

Name:	5.JPG 
Views:	4 
Size:	73.9 KB 
ID:	159513


    Click image for larger version. 

Name:	4.JPG 
Views:	5 
Size:	46.7 KB 
ID:	159512

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 83,926, Level: 70
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    17,069
    Helped
    3857 / 3857
    Points
    83,926
    Level
    70

    Re: pull pull down meaningon GPIO

    Hi,

    Explain "ruin". Best if you can calculate volts.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 85,289, Level: 71
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    14,036
    Helped
    4671 / 4671
    Points
    85,289
    Level
    71

    Re: pull pull down meaningon GPIO

    You are not noticing the resistor symbols on the diagram.

    The pull-up and pull-down are not direct connections to VDD or VSS, they enable a weak current source to maintain the pin in a known state when not being driven or having current drawn from it. The source is usually only a few uA so your external signal should easily drive against it. If in doubt, turn it off.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

--[[ ]]--