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