CMCON = 7 Gives Errors On 16F873


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default CMCON = 7 Gives Errors On 16F873

    Hello Everyone. I've used CMCON = 7 to turn off comparators on other devices but I'm getting a compilation error when using a 16F873. The datasheet refers to the CMCON register. Does anyone know the problem? Thank you.

  2. #2
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    You are making al small think and read error!
    CMCON is only possible if you use a 16F873A
    In this part the comparators are present
    In a 16F873 there are no comparators that is why you get an error.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    You're right Mat. I am using a 16F873A but the compiler was set to 873. Stupid me.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  3. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  4. Working with indivividual bytes of an array
    By J_norrie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2007, 19:16
  5. code conversion
    By saturnX in forum mel PIC BASIC
    Replies: 19
    Last Post: - 3rd October 2005, 17: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