AD conversion problem for pic16F684


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: AD conversion problem for pic16F684

    It is always a good idea to check that the PIC settings are correct by implementing a blinking LED before you do anything else. Also, in your code I don't see any WHILE....WEND loop to check if the ADCON0.1 has changed it's status. I haven't checked the datasheet for your PIC, so you might want to double check if the ADCON0.1 is the correct bit.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    May 2015
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: AD conversion problem for pic16F684

    Quote Originally Posted by rsocor01 View Post
    It is always a good idea to check that the PIC settings are correct by implementing a blinking LED before you do anything else. Also, in your code I don't see any WHILE....WEND loop to check if the ADCON0.1 has changed it's status. I haven't checked the datasheet for your PIC, so you might want to double check if the ADCON0.1 is the correct bit.
    i am glad i did find the answer !!After very long time of searching!!
    The problem is : when i want to convert 8 bits: ADC_bits = 8 then I must declare the var in ADCin as a byte (8 bits) otherwise it do not work
    i did find out to use the ADRESH and ADRESL registers
    I thank you for for qiuck answer for my problem !!
    It is solved and I can go on with my work after several days of searching
    have a nice day

Similar Threads

  1. A/D conversion problem on 18F4431
    By ttease in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2007, 23:03
  2. Conversion Problem
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th March 2007, 12:09
  3. Conversion problem
    By eva in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th March 2007, 18:21
  4. A/D conversion problem with pic16F88
    By Tapio Linkosalo in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 18th August 2006, 11:42
  5. Conversion problem
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2004, 18:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts