Interrupt handling

Status
Not open for further replies.
I always get confused with interrupt handling. Is there any standard on how interrupts should be handled. Can I implement something like this whenever interrupt happens I disable all other interrupts and finish processing and enable interrupts. By this method will there be some kind of data loss.
 
It will depend on the CPU that you use. From memory on a PIC16 cpu entering the interrupt routine disables all interrupts until you return from the interrupt routine. While in the routine other interrupt bits can be set and will cause in interrupt when interrupts are re enabled.

Les.
 
For the later Pics you have an option of using both a high priority and a low priority, the high priority will interrupt a low one if it is active.
The alternative is still there to make them same priority.
Al.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…