Floating point arithmatic in interrupt routine mpc555

View: New views
3 Messages — Rating Filter:   Alert me  

Floating point arithmatic in interrupt routine mpc555

by Prathamesh Patki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   
  How can i use floating point arithmatic in interrupt routine of mpc 555?
   
  - Pat

       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games.

[Non-text portions of this message have been removed]


RE: Floating point arithmatic in interrupt routine mpc555

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in your exception handler, before making the exception recoverable
(MSR[RI]) , save all of the floating point registers (or at least all
registers you plan to use), make exception recoverable, enable floating
point, use floating point. then before exiting the exception handler,
make exception not recoverable, restore floating point registers, return
from exception.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of prathamesh patki
Sent: Thursday, October 11, 2007 8:54 AM
To: MPC500@...
Subject: [MPC500] Floating point arithmatic in interrupt routine mpc555



Hi,

How can i use floating point arithmatic in interrupt routine of mpc 555?

- Pat

.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3911/stime=1192110839/nc1=3848607/nc2=4507179/nc3=4025338>
 


[Non-text portions of this message have been removed]


Re: Floating point arithmatic in interrupt routine mpc555

by Guillaume "Pÿffffe9ron" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   
  It is necessary if you want to save FP registers into the stack. Do not forget to set MSR[FP]. This FPU enable bit is automatically cleared when an interrupt is taken.
   
  Regards,
   
  Guillaume

prathamesh patki <p_pratham@...> wrote:
          Hi,

How can i use floating point arithmatic in interrupt routine of mpc 555?

- Pat

---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.

[Non-text portions of this message have been removed]



                         

       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.

[Non-text portions of this message have been removed]