#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=4000000)
#use rs232 (baud=9600, xmit=pin_C6, rcv=pin_C7, parity=N, stop=1)
#INT_RDA
void RDA (void)
{
disable_interrupts(int_rda);
output_high(pin_b0);
}
void main ( )
{
setup_psp(PSP_DISABLED);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_CCP1(CCP_OFF);
setup_CCP2(CCP_OFF);
output_low(pin_c5);
enable_interrupts(GLOBAL);
while(1)
{
enable_interrupts(int_rda);
output_high(pin_c5);
delay_ms(1000);
output_low(pin_c5);
delay_ms(1000);
}
}