| ??? 05/20/99 07:49 Read: times |
#436 - RE: C, 80c535/8051 and interrupts, more!! |
Jesper L. Thusgaard wrote: Can i Call functions from a Interrupt service rutine. Yes What happends if the same interrupt gets another hit, while in the function that makes a pause for a second, or more important, what happends when the second interrupt has been met! Does it continue on the first interrupt? You need to stop a new interrupt happening usually by masking off its enable bit when you enter the routine, checking that the interrupt flags are all cleared just before you reenable the interrupt and then RETI. I don't think re-entrant interrupts are a good idea. It makes me sweat just thinking about debugging them... I would have thought your compiler should recognise you are writing interrupt code and use RETI automatically. DON'T forget to protect your stack, PSW, register banks etc. when you vector to the ISR. Good luck. Steve |
| Topic | Author | Date |
| C, 80c535/8051 and interrupts | 01/01/70 00:00 | |
| RE: C, 80c535/8051 and interrupts, more!! | 01/01/70 00:00 | |
| RE: C, 80c535/8051 and interrupts, more!! | 01/01/70 00:00 | |
RE: C, 80c535/8051 and interrupts, more!! | 01/01/70 00:00 |



