Enable_BIT0_FallEdge_Trig;
EPI=1;
set_EA;
void PinInterrupt_ISR (void) interrupt 7
{
if(PIF == 0x01)
{
PIF = 0x00; //clear interrupt flag
clr_GPIO1;
Timer0_Delay1ms(100);
set_GPIO1;
Timer0_Delay1ms(100);
clr_GPIO1;
Timer0_Delay1ms(100);
set_GPIO1;
Timer0_Delay1ms(100);
}
} |