Hi Bruce,

I won't ask howto but where to look for the answer

I'm trying to use gpio.3 as an input, but I dont know how to set it as such.

Setting trisio=%00001000 does not help me

Thanks in advance

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".