ADCON Explanation


+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    eoasap's Avatar
    eoasap Guest

    Default ADCON Explanation

    hi! using 18LF8722 and there are two ports that are A/D. i've used the ADCON1 = 7 before, but only when someone on here specifically told me which port to use for a specific chip.

    I want to make both these ports digital, but am unsure how. If anyone can tell me how, and also how to interpret the command so i understand it better i'd appreciate it. thanks

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Everything is in the datasheet dude!

    look in the adcon1 and CMCON section.

    ADCON1=%00001111
    CMCON=%00000111

    now, turn the volume of your PC to maximum then click on the folowing link
    http://www.picbasic.co.uk/forum/showthread.php?t=2050
    Last edited by mister_e; - 11th December 2005 at 09:29.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,587


    Did you find this post helpful? Yes | No

    Talking The beast sleeping in all of us

    Quote Originally Posted by mister_e
    now, turn the volume of your PC to maximum then click on the folowing link
    http://www.picbasic.co.uk/forum/showthread.php?t=2050
    Hi, Steve

    I'm a little deceived ... I was waiting to something more funny; let's say related to leather and sweat ...
    Would have been logical, from where it comes ...

    Hi, hi, hi ....

    Maudit Français

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    somehow i missed that big chart, i swear i loooked!

    Thanks steve, that did the trick.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    @eoasap

    Good! Looks like the whip worked OR it works better with eyes open just kidding! it happen!

    @acetronics

    Well i'll try to do better next time... there's always a midpoint between 'What we want to post' and 'what we can post'

    <img src=http://www.picbasic.co.uk/forum/attachment.php?attachmentid=653&stc=1&d=1134328059 >

    Mes salutations a la France!
    Attached Images Attached Images  
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. explanation on I2C command (PBP)
    By F1CHF in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th May 2014, 05:30
  2. Adcon
    By Martin.... in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 20th January 2007, 08:30
  3. adcon problems with adcin
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd January 2007, 22:15
  4. port/ pin explanation 16F877
    By emmett brown in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th August 2006, 01:07
  5. ADCON does not compile 16F628
    By mslaney in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th January 2005, 15:43

Posting Permissions

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