16F88 - AD converter module always "ON"


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    914

    Default 16F88 - AD converter module always "ON"

    Hi there,

    I'm trying to understand the AD converter module on my 16F88.

    For testing purposes, I have a LCD and a pot connected to the PIC and everything runs fine.

    The ADCON0 register controlls the AD module. Bit 0 (ADON) activates or shuts off the module (0=OFF / 1=ON).

    When I set this Bit to 0, I expect the AD converter module to be stopped. Operating the pot at that time will still show changing values on the display.

    I don't understand why.
    Roger

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi flotulopex,

    If you are using the ADCIN statement to get the A/D values, then it will turn the ADON bit back on each time you use it.

    If you were using the A/D registers manually, it would still be off.

    But if you really want the Pins to be digital, you should...
    Code:
    ANSEL = 0
    CMCON = 7
    HTH,
    DT

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    914


    Did you find this post helpful? Yes | No

    Default

    Thank you.

    I didn't know about the ADCIN exact operation.

    The Micro Code Studio's help file is a little to spartan to me...
    Roger

Similar Threads

  1. Version Control
    By btaylor in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 16th October 2011, 17:12
  2. Interfacing 16F88 to RF module
    By scomi85 in forum General
    Replies: 2
    Last Post: - 19th February 2009, 12:52
  3. AD works in Porta.0 but not in porta.1
    By ruijc in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th February 2008, 20:22
  4. question regarding an external AD converter
    By dtoohey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th March 2005, 05:50
  5. ADC problem
    By NacNud in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th December 2004, 02:27

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