Quote Originally Posted by Bruce
Hi Pablo,

Look in the data sheet under Comparator Module. Look at the "default" POR (power on reset) value in CMCON0.

Now look at the drawing in FIGURE 8-3: COMPARATOR I/O OPERATING MODES.

Place CMCON0 = X in the initialization section of your code.

Replace X with the value shown in this section that will turn "Comparator Off".
Thanks Bruce, your answer helped me two ways, to solve the problem and to understand a little more how to read datasheets, I have the 12F683 printed&binded datasheet next to me, but since I didn't know where to look exactly I wast lost in the sea of trial&error.

Thanks again, and thanks Steve who also gave me the right answer!


Pablo