Unable to get 2 inputs to work


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rangerdoc View Post
    I'm using a PIC 16F747 as a BCD decoder w/ LCD display. I've also included a stopwatch function. Everything works as desired except I can't get pins RB4 & RB5 to work as digital inputs. RB6 & RB7 are working as inputs for the timer (start & clear). Can anybody look at this and see what I'm missing? I suspect I need to use ADCON, but I'm having difficullty finding info on the proper usage.
    The best place to get answers to these type of questions is to read the device datasheet.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Check the value shown in the data sheet to load into ADCON1 to make all pins digital.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This thread will also apply to your PIC even though we are talking about PORTB.
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    This thread will also apply to your PIC even though we are talking about PORTB.
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Thanks... This put me on the right track.

Similar Threads

  1. pls help me verify my code not work, why???
    By chai98a in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th January 2010, 09:19
  2. Replies: 20
    Last Post: - 13th May 2007, 05:10
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. 10bits adc using 16f877
    By sixty9sandals in forum mel PIC BASIC
    Replies: 7
    Last Post: - 8th March 2007, 18:23
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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