??? 02/01/05 21:31 Read: times |
#86317 - If you know exactly what you do... Responding to: ???'s previous message |
You can replace the return address, but if your main program makes calls to subroutines (placing return address to the stack) and/or makes pushes to the stack, there is nothing which would empty these from the stack so the stack will grow until it overflows. Even worse, if this is a higher priority interrupt and interrupts a lower priority ISR, the latter will never finish and no lower priority interrupt will ever occur. So under very well controlled circumstances this practice is possible, but a very risky business. I would strongly discourage to do so. You have been given a far better alternative by Erik. Jan Waclawek |
Topic | Author | Date |
Hanging Up My 8051? | 01/01/70 00:00 | |
an ISR returns to where it happened | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
Re:hanging up my 8051. | 01/01/70 00:00 | |
no such assumption | 01/01/70 00:00 | |
2 things | 01/01/70 00:00 | |
experience is not everything! | 01/01/70 00:00 | |
somebody like you!![]() | 01/01/70 00:00 | |
If you know exactly what you do... | 01/01/70 00:00 | |
he is going to do it | 01/01/70 00:00 | |
The rare case | 01/01/70 00:00 | |
bad things | 01/01/70 00:00 | |
On reloading default (e.g. SP) | 01/01/70 00:00 | |
Thanks Oleg | 01/01/70 00:00 |