Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/16/03 15:51
Read: times


 
#48504 - RE: What's SP?
Responding to: ???'s previous message
Hi Stanley,

Why would you want an interrupt service routine to return to someplace besides where it came from? All the system state pushed onto the stack at the start of the ISR is for where you came from, and as Erik suggests, won't help someplace else.

If you want to pop off the old return address off the stack, and push on a new address before your reti, I suppose you could do that. Good luck getting it work work reliably.

Much better to do as suggested, set a flag, return to main loop, branch on flag.

Dennis

List of 14 messages in thread
TopicAuthorDate
What's SP?            01/01/70 00:00      
   RE: What's SP?            01/01/70 00:00      
   RE: What's SP?            01/01/70 00:00      
      RE: What's SP?            01/01/70 00:00      
         RE: What's SP?            01/01/70 00:00      
            RE: What's SP?            01/01/70 00:00      
               RE: What's SP?            01/01/70 00:00      
         RE: What\'s SP?            01/01/70 00:00      
            RE: What\'s SP?            01/01/70 00:00      
   RE: What's SP?            01/01/70 00:00      
      RE: What's SP?            01/01/70 00:00      
         RE: What's SP?            01/01/70 00:00      
         RE: What's SP?            01/01/70 00:00      

Back to Subject List