ADCIN - AD settings are wrong


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    how the Photocell is connected? any pull-up/down?

    1.CMCON=0? maybe CMCON=7.. but they're already off at POR so..
    2.your ADCON0 setting use Channel 8 but adcin should override this for you
    3.adcon1 should be set for right justified results
    4. the maximum input impedance for analog source is 2.5K (section 12.1) so.. maybe you'll need something between the PhotoCell and the PIC a/d input. sometimes it works, sometimes not. look at your Photocell specs or measure it. What's the value when there's no light? maybe a little bit high
    Last edited by mister_e; - 2nd December 2006 at 19:15.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Problem with AD inputs at PIC16f873a
    By wurm in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2008, 10:01
  2. LM35DZ and 18F2455 settings
    By Mark J in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th January 2008, 08:31
  3. I neat some help on 12F675 ad
    By Kmt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd November 2007, 18:48
  4. AD problems
    By Samoele in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th February 2007, 20:48
  5. help using adcin
    By harryweb in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st January 2006, 07:46

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