A/d 16f88


Results 1 to 6 of 6

Thread: A/d 16f88

Threaded View

  1. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Use CON or VAR

    hum...
    Correct:
    Ai var 6 'Notice we use "x" of ANx.
    adcin Ai, bat
    Doesn't work for me.

    It will work like this:
    Code:
    Ai CON 6
    ADCIN Ai, bat
    ... or:
    Code:
    Ai VAR BYTE
    Ai = 6
    ADCIN Ai, bat
    Or do I miss something?

    NB: addressing PORTs via variable/constant is a best practice not a must.
    Last edited by flotulopex; - 30th May 2009 at 15:57.
    Roger

Similar Threads

  1. 12f675 A/d Miseries
    By MARAD75 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th December 2008, 02:16
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. Need advice on A/D
    By james in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th August 2007, 19:30
  4. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57
  5. 18F2525 A/D, Comparator and Vref modules
    By fbraun in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th May 2005, 23:17

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