Hi. I'm designing a board with PIC12F683. The datasheet is attached herewith. I'm little bit confused about CMCON0 register. For comparator yes I have to set some values in 3 LSBs but what about if I use these pins as ADC input. Do I still have to declare the COMCON0 register for that GPIO as analog channel or digital channel i.e. if I declare GPIO as analog in COMCON0 then it will be directly connected to comparator which I don't want to use. The confusion arises due to the reason that ADC is also analog channel but I'm declaring it as digital in the said register.
Unless otherwise noted in the accirding sections:
* use the ADC configuration register for ADC things only
* use the Comparator configuration register for comparator things only
In doubt read through code examples and/or application notes given by the chip manufacturer.