Hi Gusse
Is this looking better ?
Not sure of the Comparator setting ??
Code:@__config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_ON & _LVP_OFF & _CP_OFF 'Ocsillator selections here 'OSCCON = %01100001 for 4mhz, or OSCCON = %01110001for 8mhz OSCCON = %01110001 'Int CLK 8MHz ANSEL= %11111111 '$0F = disable A/D converter cm1con = 1 option_reg = 7 'switch pull-ups ON 'END of oscillator selections 'timer/oscillator defines define osc 8 '8MHz 'END of timer/oscillator defines
Bookmarks