| ??? 02/02/05 08:58 Read: times |
#86353 - On reloading default (e.g. SP) Responding to: ???'s previous message |
Oleg Sergeev said:
So, if you really need with bad things you do, then reload stack value as well! While this may help with problem #1 (interrupted subroutine call or value pushed on stack), there might still remain problems #2 (interrupted and not returned lower priority interrupt - I doubt there is a simple workaround for this except a set of flags) and #3 (unfinished routines may have their own state variables set, which may cause problems when reentering them) and maybe also #4, #5 and #6 I am not aware of at the moment. I still would like to stress that Erik has a good point. It has nothing to do with LCD, of course - he simply stated, that the ISR should only set a flag, which is periodically checked in the main program and acted upon it. 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 |



