??? 08/13/10 05:17 Read: times |
#177971 - Call a routine from an interrupt Responding to: ???'s previous message |
Maarten Brock said: Agreed, you can call any routine from an interrupt if it is called from that interrupt only. For instance, a response is required from a slave when the master asks it. Call the routine from the serial interrupt only.
You CANNOT call ANY routine from an interrupt. You must ensure that the routine is reentrant or that it is called from that interrupt only. All this can be avoided if the code is inserted in the ISR and you did not need a function to prove your point. Calling a function that is not using the same bank will at best give a setback in performance if not fail. I don't know what an assembler page is. So I have no idea what you mean here. Regards Johan Smit |
Topic | Author | Date |
Writing to SBUF in Serial Routine | 01/01/70 00:00 | |
Sure... | 01/01/70 00:00 | |
yes, but | 01/01/70 00:00 | |
TX inside serialint | 01/01/70 00:00 | |
Pardon?? | 01/01/70 00:00 | |
Pardon accepted | 01/01/70 00:00 | |
Still a Missing Part of Scheme | 01/01/70 00:00 | |
Pardon | 01/01/70 00:00 | |
Will that work in 'C' ? | 01/01/70 00:00 | |
Assembler if you want | 01/01/70 00:00 | |
Why send_char? | 01/01/70 00:00 | |
Why send_char | 01/01/70 00:00 | |
You missed the point | 01/01/70 00:00 | |
Call a routine from an interrupt | 01/01/70 00:00 | |
Still misunderstanding | 01/01/70 00:00 | |
misunderstandings![]() | 01/01/70 00:00 | |
what happened to the OP? | 01/01/70 00:00 |