Need help to shut off comparators for 16f688
Hello,
I'm trying to shut off the comparators on my 16f688 and can't seem to accomplish it, as a result I can't get RA0 or RA1 to function as expected. When I use CMCON0 = 7 or CMCON0 = %00000111 and try to compile, I get an error message saying there is a syntax error.
I'm using PicBasic Pro Ver 2.45, MPASM Ver 3.60 with MicroCode Studio 2.1.0.7 and EPIC Version 2.46 beta programmer with a PIC16F688-20/P.
Would anyone have any suggestions on why it won't compile? I looked at the data sheet and CMCON0 = %00000111 is a valid command and I've also seen this used in code examples while looking in the archives.
Any help would be very much appreciated.
Thanks
jessey
Still waiting for my upgrade
Quote:
Originally Posted by Darrel Taylor
Jessey,
I was just roaming the meLabs site, and it looks like the
P245al.exe Patch might fix the missing register names for the 688.
http://www.melabs.com/support/patches.htm
Until you get a chance to upgrade :)
Hi Darrel,
I downloaded the patch you suggested (just to try it out) and it works great, I can now compile without any errors when using CMCON0 = 7. I also tried using your code http://www.picbasic.co.uk/forum/showthread.php?t=40 (for the first time) to get rid of "Crossing page boundary - ensure page bits are set" from coming up every time I compile and it also works great with my 688. Sounds like I owe you more than a few beers by now!
Thanks Again
jessey