im using pic 16f877a for my project....i want to use interrupt in it...i heard that i shouldnt make isr much long and should avoid calling subroutines like delay loops within isr.....is there some relevance to the statement....im currently facing some delay as i exit the isr which is not intended...how can i avoid it?....should i make interrupt routine small.....also can i call interrupt when im in the isr by clearing the interrupt bits...........
im attaching my code ......
i found that its taking much time to exit the isr when i simulated it....is the clearing of the flag i have done proper.....should the external interrupt flag be cleared within the isr........can i call subroutines as i have done which are inside the isr?