#include <12F683.h>
#device adc=8
#FUSES NOWDT,NOMCLR,PUT,INTRC_IO
#use delay(clock=4000000)
#int_TIMER1
void TIMER1_isr(void) {
set_timer1(45535);
}
void main() {
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_INTERNAL);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_INTERNAL|T1_DIV_BY_1);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC);
setup_vref(FALSE);
disable_interrupts(INT_TIMER0);
enable_interrupts(INT_TIMER1);
enable_interrupts(GLOBAL);
setup_oscillator(OSC_4MHZ);
set_timer1(45535);
do{
}while(TRUE);
}