HELP on reading the data sheet/weak pull-ups


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sbobowski View Post
    ok i found
    OPTION_REG.7=0 ' Enable weak Pull-Ups

    and micro code studio accepted that.

    so why does option_reg not have a # behind them
    and ADCON0 Does ???

    Thanks again in advance
    sorry if I'm a rock
    Not sure what you mean here..... the option register is 8 bits. With the statement OPTION_REG.7=0, bit 7 of the option register (bit 7 RBPU: PORTB Pull-up Enable bit
    1 = PORTB pull-ups are disabled
    0 = PORTB pull-ups are enabled by individual port latch values) enables weak pullups. Also from pg. 38 section 5.2
    Each of the PORTB pins has a weak internal pull-up
    (≈200 μA typical). A single control bit can turn on all the
    pull-ups. This is done by clearing the RBPU
    (OPTION<7>) bit. The weak pull-up is automatically
    turned off when the port pin is configured as an output.
    The pull-ups are disabled on Power-on Reset.
    . Not sure if I'm answering you question or not.
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

  2. #2


    Did you find this post helpful? Yes | No

    Default

    The data sheet in your post has no mention of ADCON0. Where did that come from?

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 0

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