MPC5777C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5777C

876 Views
PENGHAN
Contributor II

 

Hello ,I want to use MPC5777C chip No. 10 interrupt (decrement counter interrupt) to send CAN messages regularly. The debugging tool I use is S32DS. I have written the CAN sending related code, but I don’t know how to initialize the 10th interrupt. How to embed the sending function into the related initialization code to trigger the CAN sending function. Is there a DEMO for reference? Thank you.

Respect

0 Kudos
3 Replies

859 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

i am not aware there is demo for decrementer/IVOR10 usage in S32DS.
I can share one example for MPC5674F in CodeWarrior. Maybe it can be helpful.

Anyway, why don't you simply use e.g. PIT interrupt?

BR, Petr

0 Kudos

854 Views
PENGHAN
Contributor II

Hello,The chip I use is mpc5777C, the IDE is S32DS2.1, and the program is added in the attachment. When I debug the Decrementer interrupt (interrupt number 10), the program will run away.
Proceed as follows:
First initialize the HID0 register, TSR, TCR register;
Then initialize IVPR and IVOR10;
Finally, the program will jump to IVOR10_Handler;
Please help me solve how the program jumps to interrupt No. 10 and executes related functions.

Can you help me to see it? 

I don't know  PIT interrupt, I will see it later.

 

0 Kudos

814 Views
PetrS
NXP TechSupport
NXP TechSupport
0 Kudos