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.
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.
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.
You're right Mat. I am using a 16F873A but the compiler was set to 873. Stupid me.
Bookmarks