Hi,
May be it's because I don't understand the data sheet ?
I'm trying to compare with 18F13K22
My ref is connected to portA.1 (C12IN0-)
The other signal connected to portA.0 (C1IN+)
Doesn't work
Here is my code:
ANSEL = %00000011
ANSELH = %00000000
TRISA=%11111011 ' Set Inputs
TRISC=%00000000 ' Set Inputs
TRISB=%00000000 ' Set Inputs
CM1CON0 = %1000000
C1OUT VAR CM1CON0.6
mainloop:
IF C1OUT = 1 THEN
HIGH PORTB.6
ELSE
LOW PORTB.6
endif
PAUSE 200
goto mainloop
END
Thank's for help
Bookmarks