??? 12/07/05 20:09 Read: times |
#104841 - One Thing at a Time Responding to: ???'s previous message |
Grant Beattie said:
In both cases the interrupt gets serviced immediately save for the latency period with int's off (which I'm reading here is about 10 to 15 cycles worst case). FWIW my systems often have more than one functioning interrupt anyway (I don't typically need to fiddle with priorities) so these types of latencies are going to happen anyway. This is a very important point. It does not matter how you design the system or whether you use an RTOS or not, the 8052 can only be doing one thing at a time. This means no matter what your timing constraints, you can only ever have one interrupt that is guaranteed to be serviced immediately (the top priority interrupt), because all other interrupts have to take into account that they may have to wait for the top priority interrupt to complete. Ian |