Need setting to turn off 16F688 comparators


Closed Thread
Results 1 to 2 of 2
  1. #1
    Thomas Williams's Avatar
    Thomas Williams Guest

    Smile Need setting to turn off 16F688 comparators

    I am in need of some help to determine the correct setting to turn the comparators off on a 16F688 so that I can use them for A/D inputs.

    so far:

    cmcon0= %00000000
    cmcon1= %00000011
    VRCON = %00000000

    any other suggestions?

  2. #2
    jessey's Avatar
    jessey Guest


    Did you find this post helpful? Yes | No

    Default

    Hello Thomas,

    I just bought 30 16f688's at a very low price so I've been looking for all the information I could find about them and as far as what I've found from reading the archives here is that this statement also works CMCON0 = 7 ' Comparators disabled.

    I don't quite understand the data sheet but it says:
    Note:
    The ANSEL (91h) and CMCON0 (19h)
    registers must be initialized to configure
    an analog channel as a digital input. Pins
    configured as analog inputs will read ‘0’.

    Then it goes on to say bit 7-6: Unimplemented: Read as '0'. Does that mean that setting CMCON0 to either 6 or 7 has the same effect?

    Thanks
    jessey
    Last edited by jessey; - 22nd December 2005 at 01:02.

Similar Threads

  1. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Need help to shut off comparators for 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th October 2006, 04:54

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