I am using Green Hills AdaMulti for s/w development targeted to MPC5554. My application needs one 10 msec interrupt. Upon each interrupt it needs to execute some procedure ( which is computation intensive) and after finishing it has to wait for the interrupt.
I used the FIT Interrupt for 10 msec interrupt generation.
2. In FIT ISR i called the myprocedure().
But it runs for some time and stops.
My Code Structure looks like this.
procedure Adamain
begin
loop
I/O Reading Procedures.
end loop
end
and In FIT ISR
FITISR()
{
Serivice the Interrupt
executive(); // this is a my application which is compute intesive.
}
can anyone help me out.
Jagan
Hi,
there's code example in AN2865 for the FIT:
http://www.freescale.com/files/32bit/doc/app_note/AN2865.pdf
MPC5500 and MPC5600 Simple Cookbook Code
The FIT exception handler should store all volatile registers (given by EABI standard) to stack and reloaded them at the end of handler. Take a look at file:
AN2865SW.zip\AN2865SW_rev4\555x-CW\FIT\src\handlers.s
and
AN2865SW.zip\AN2865SW_rev4\555x-CW\FIT\src\main.c
Lukas