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
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.