555 ISRs in ThreadX

"shanz9903" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
I am using Multi 4.07 and ThreadX.  I am struggling to implement the
profiling feature in Multi which should help me to determine how long
each function is taking to execute.

I have noticed unexpected behaviour on the srr0 register which I
thought was meant to hold the location of the next instruction
following the return from the ISR (rfi).  ThreadX handles all the
context saving and advises against using the __interrupt keyword or
(#pragma interrupt).  

When I step through my ISR, the srr0 register just acts like the
Program Counter (PC).  It is almost as if the 555 is unaware that I am
inside an ISR!  Why might this be?  

My program successfully returns from the ISR so I suspect that ThreadX
relies on the Link Register (instead of srr0) that it saves onto the
Interrupt Stack Frame at the beginning of the ISR.

Any help would be appreciated.




-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.