#include <16F877A.h>

#device adc=8

#FUSES NOWDT                 	//No Watch Dog Timer
#FUSES XT                    	//Crystal osc <= 4mhz for PCM/PCH , 3mhz to 10 mhz for PCD
#FUSES NOPUT                 	//No Power Up Timer
#FUSES NOPROTECT             	//Code not protected from reading
#FUSES NODEBUG               	//No Debug mode for ICD
#FUSES NOBROWNOUT            	//No brownout reset
#FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD                 	//No EE protection
#FUSES NOWRT                 	//Program memory not write protected

#use delay(clock=4000000)

#use fast_io(c)
 
#int_TIMER1		
void  TIMER1_isr(void)
{	
	output_toggle(PIN_C6);
	output_toggle(PIN_C7);
}
	
void main(void)
{
	set_tris_c (0b00000000);
	output_c(0b00000000);
	setup_timer_1(T1_INTERNAL|T1_DIV_BY_8);	
	output_high(PIN_C7);
	enable_interrupts(INT_TIMER1);
	enable_interrupts(GLOBAL);
	while (1);
}