16f87 ADC compiler error


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    2

    Smile 16f87 ADC compiler error

    Hi all,

    im trying to read pin a0 of the 16f87 and using the adcon config but have errors during compiling, "undefined symbol", can some help me in understanding the datasheets in order use them more efficiently for the adc purpose, and what could be wrong with my compiler....

    br,
    d

  2. #2
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    I'm sorry, but you won't be able to fix this in software. The 16F87 doesn't have any ADC, only the 16F88. If you look on page 3 of the datasheet there is a table that shows the differences between the two chips, but if you just head off to the ADC section, it's easy to miss the little note that says '16F88 only.' That is why your compiler is giving you an error, there is no ADCON register for the 16F87.

    You could add a separate ADC chip of course, but it would be easier and cheaper to get your hands on a 16F88 if you need analog.

    Good Luck,

    Jerry.
    If your oscilloscope costs more than your car...

Similar Threads

  1. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  2. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  3. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  4. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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