RBPU question..


Closed Thread
Results 1 to 4 of 4

Thread: RBPU question..

  1. #1
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default RBPU question..

    I'm trying to enable the pullup pin on portB.7 only, and looking at page 114 at Table 10-3 I do not seem to find the variable I need to configure the pin. Hope anyone can give a hint.

    Thanks in advance,
    Tacbanon

  2. #2
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: RBPU question..

    Quote Originally Posted by tacbanon View Post
    I'm trying to enable the pullup pin on portB.7 only, and looking at page 114 at Table 10-3 I do not seem to find the variable I need to configure the pin. Hope anyone can give a hint.
    I forgot to mentioned I'm using Pic18F4550.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: RBPU question..

    PORTB pull-ups are enabled with INTCON2.7 = 0
    That turns on pull-ups for ALL PORTB pins.
    There are no individual controls for each pin.

    Pull-ups are only enabled on pins with the TRIS bit set to INPUT (1).
    DT

  4. #4
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: RBPU question..

    Thanks Darrel for the information...INTCON2.7 = 0 (enable pull-ups) affects only with input pins like TRISB = %10000000.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts