PIC12F675 and ADCIn


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Smile PIC12F675 and ADCIn

    Hi,
    I am using the ADCIN feature and have a q?

    I set

    ANSEL = 7 so to set AN0,1,2 to Analogue and AN3 to Digital

    ADCIN 0 for AN0
    ADCIN 1 for AN1
    ADCIN 2 for AN2

    however I can only get feedback from AN0 and AN1 but not from AN2?

    I can provide complete code if required

    regards
    Pete

  2. #2
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Talking

    OOps,

    If you want the data to be read you must store in the same place!

    I set the reading of ADCIN 3, Result_Ch2

    Where as it should be ADCIN 3, Result_Ch3

    Must be getting late!
    Pete

  3. #3
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Thumbs up

    Hi Pete,

    Could you please post your code, as i wish to use the 675 A/D myself, but am having trouble initialiaing it all. Have not used one of these little pics before.

    I am wanting to use 1 analog input, 2 digital inputs, and 2 outputs.

    Regards

    Bob.....

  4. #4
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Smile

    Hi Bob,

    Will post the the file when I get back to work on Monday.

    I'll probably forget, so if you dont see, just ask me again.

    regards
    Pete

Similar Threads

  1. pic12f675 ADC problem
    By radu022003 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st September 2009, 10:13
  2. I neat some help on 12F675 ad
    By Kmt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd November 2007, 18:48
  3. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

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