Home Forums Microcontrollers PIC Microcontroller PULLDOWN AND PULLUP resistors

This topic contains 3 replies, has 2 voices, and was last updated by  Ligo George 4 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #7551


    can any one, please drop the code of pullup and pulldown checking for pic32mx


    Ligo George

    What do you mean?? Connecting Switches using Pull Down and Pull Up resistors??

    For that you need to configure the required pins as input… by writing to corresponding TRIS registers (eg: TRISA, TRISB etc)… then you can read the status of each pins by reading corresponding PORT registers (eg: PORTA, PORTB, etc.)..



    thank you for the reply,
    Actually there is highstate(pullup) logic and lowstate(pulldown) logic
    what i am trying to do is
    i want to make the highstatelogic work as same as lowstatelogic means
    highstatelogic = highstatelogic
    lowstatelogic = highstatelogic
    the push button should work completely in highstate (or) lowstate
    that is what i needed.

    thanks in advance


    Ligo George

    Sorry, I don’t get what you are saying…
    Try this link, it might help you..
    Using Push Button Switch with PIC Microcontroller – MikroC
    Using Push Button Switch with PIC Microcontroller – Hi Tech C

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.