Internal pullups 16C72


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default Internal pullups 16C72

    I can't remember if these are enabled by default or not (looks like not) -- could someone please help, don't have time to google it.

    Using 16C72 port B

    If not, what do I put in the code header?

    THANKS !

  2. #2
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Internal pullups 16C72

    OPTION_REG register

    The OPTION_REG register is a readable and writable
    register, which contains various control bits to configure
    the TMR0 prescaler/WDT postscaler (single assignable
    register known as the prescaler), the External INT
    Interrupt, TMR0 and the weak pull-ups on PORTB.


    bit 7:

    RBPU: PORTB Pull-up Enable bit
    1=PORTB pull-ups are disabled

    0
    = PORTB pull-ups are enabled for all PORTB inputs

    Page 12 in the datasheet
    Shawn

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Internal pullups 16C72

    I know about the OPTION reg

    OPTION_REG.7 = 0 ?

    Enabled?

    Sort of pressed for time today and having a hard time deciphering the datasheet

    What bits are the other ports A and C? THANKS !

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Internal pullups 16C72

    could it be?

    only portb has the internal pullups?

  5. #5
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Internal pullups 16C72

    Only port B has internal pull ups


    OPTION_REG.7 = 0

    should be what you need to turn on the internal pull ups on port b
    Shawn

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