Analog port newbie questions


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Which version of PBP are you using?
    And try
    adcon0 = $c1 : adcon1 = $f0
    Last edited by skimask; - 9th March 2008 at 08:32.

  2. #2
    Join Date
    Feb 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Which version of PBP are you using?
    And try
    adcon0 = $c1 : adcon1 = $f0
    Im using PBP 2.47. I tried to change adcon1 and add adcon0 but it still doesnt work. Is the problem in my code or is my port A burnt (I accidentally input ~10V for a short while into the Vref+ pin earlier) ?
    Is anything wrong with the quoted code ?

    Any help is appreciated.

  3. #3
    Join Date
    Feb 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    OK, I found the problem, turns out the defines must be in block letters. Weird that I did not get any compile errors though.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rngd View Post
    OK, I found the problem, turns out the defines must be in block letters. Weird that I did not get any compile errors though.
    Which is exactly what the PBP manual says will happen...

  5. #5
    Join Date
    Feb 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Which is exactly what the PBP manual says will happen...
    Yeah, too bad for me, I did not not read the part about the defines

Similar Threads

  1. pic18f analog comparator problem
    By david.silaghi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th May 2009, 09:38
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  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. Hi Everyone! Some newbie questions :-)
    By guest_05 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th October 2006, 22:24
  5. NEWBIE: Some basic questions using interrupts
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2006, 02:59

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