HighTechPower
Member level 5
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.