| ??? 08/15/03 08:35 Read: times |
#52638 - Can I solve this? |
Dear all,
I have a question..... "At what position (ie., sp value) the return address is pushed when timer ISR is called (the code is compiled using SDCC)?" Description: I am working on a project where i need to change the order of execution between two different routines. I am using "c language with sdcc cross compiler". the switching of one routine to another happens in the ISR of timer 0. I have declared the isr as... void timer_isr(void) interrupt 1 using 1 { ..... ..... } when timer 0 overflows, the control exits from routine 1 and comes to isr. here i have to change the control of execution to routine 2. I know the address of routine 2. If i load this address instead of "return address pushed on the stack when timer ISR is called", i can switch to routine 2. The SDCC document on ISR tells that the entire Register bank 0, ACC, PSW, DPTR and return address after ISR exits. I have received the SP value from paulmon board to hyper terminal, but i couldn't get the address. Can anyone help me? thanks & regards veera |
| Topic | Author | Date |
| Can I solve this? | 01/01/70 00:00 | |
| RE: same old story | 01/01/70 00:00 | |
| RE: Can I solve this? | 01/01/70 00:00 | |
| RE: Can I solve this? | 01/01/70 00:00 | |
RE: Can I solve this? | 01/01/70 00:00 |



