PDA

View Full Version : CMCON = 7 Gives Errors On 16F873



peterdeco1
- 31st January 2007, 10:23
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.

mat janssen
- 31st January 2007, 10:37
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.

peterdeco1
- 31st January 2007, 16:27
You're right Mat. I am using a 16F873A but the compiler was set to 873. Stupid me.