PULLDOWN AND PULLUP resistors

Home Forums Microcontrollers PIC Microcontroller PULLDOWN AND PULLUP resistors

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

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

    #7557
    Ligo George
    Keymaster

    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.)..

    #7559
    venkatvy
    Participant

    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

    #7560
    Ligo George
    Keymaster

    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.
>