Just quickly tried to compile your example with v2.46 without error.
It would suggest that if these three lines...
CMCON=7
CVRCON=0
CCP1CON=0
...are causing you problems, then you have NOT got the correct chip selected somewhere...
And it goes to say that you have default Analog functions still enabled on your PIC.
It's always a good idea to EXPLICITY define the start of your program with the chips CONFIG parameters along with the chip you are using... example...
Code:
@ DEVICE pic10F206, WDT_OFF
' Watchdog Timer Disabled
@ DEVICE pic10F206, MCLR_OFF
' Master Clear Options Internal
@ DEVICE pic10F206, PROTECT_OFF
' Code Protection Disabled
...because if, further down the line, you inadvertantly start to compile for the wrong chip, you end up with a whole heap of errors pointing you to the fact that you've done something wrong (or have the wrong chip selected somewhere).
Bookmarks