Compiler error on CMCON = 7


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hi rjones2102,

    first:
    comparator register is CM1CON0. if you look at the datasheet pg. 80 it will tell you how to arrange the bits so that you can turn it off. in this case CM1CON0.7=0 will turn off Comparator 1 because bit 7 in CM1CON0 Register is enable/disable register. same with comparator 2: CM2CON0.7 = 0.

    second:
    I used to get erros in PBP when i adjusted the fuses (config register) in PBP. the way i got around this is like joe said, instead of declaring: @ __CONFIG _CONFIG1, _INTOSCIO & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _LVP_OFF & _BOR_ON

    go to the .inc file and edit your fuses there. i believe it would be in c:\PBP folder

    last:
    i don't know if it matters but the way i usually set up my registers, is i first begin with osc, then with other stuff.

  2. #2
    Join Date
    Sep 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Thanks guys,

    I will take all of that on board. Your help has undoubtedly saved me hours but certainly hasn't detracted from my learning!

    Thanks
    Rich

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 07:14
  2. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 08:31
  3. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 14: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, 20:16
  5. code conversion
    By saturnX in forum mel PIC BASIC
    Replies: 19
    Last Post: - 3rd October 2005, 18: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