Green Hills AdaMulti for MPC5554

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Green Hills AdaMulti for MPC5554

1,759件の閲覧回数
jagannathamb
Contributor I

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

ラベル(1)
0 件の賞賛
返信
1 返信

1,471件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信