thanks for the input. but i can explain u what is the issue am facing. I have 3 interrupts
a. ADC - low priority
b. System Timer - highest Priority
c. 2 CAN RX interrupts. - medium priority
So during ADC initialization am using this below code
INTC_InstallINTCInterruptHandler(ADC0_EOC_isr,62,2);
INTC.CPR.R = 2;.
- During System Timer initialization am using this below code
INTC_InstallINTCInterruptHandler(STM0_interrupt_isr,30,15);
INTC.CPR.R = 15;
- During CAN initialization am using this below code
INTC_InstallINTCInterruptHandler(FCAN0_ReceiveInt_isr,72,9);
INTC.CPR.R = 15;
INTC_InstallINTCInterruptHandler(FCAN1_ReceiveInt_isr,92,10);
INTC.CPR.R = 15;
Now the issue is the interrupts are not working based on priority. ADC interrupt is continuously invoked and not allowing it to go to other interrupts.
So I gave INTC.CPR.R in all the initialization because from the datasheet am not clear how to use it. so can u explain me what is the relation between INTC.CPR.R and INTC.PSR[vectorNum].B.PRI register. It will be great if u share me a sample code with all these functionalities I mentioned above.
Thanks in advance. :smileyhappy: