Hi All,
I see in the datasheet that we can change the priority of interrupt.
Can anyone share some information on how to set the priority of an interrupt? any sample code.
I want to increase it to high priority.
Thanks.
learnom
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
I see in the datasheet that we can change the priority of interrupt.
Can anyone share some information on how to set the priority of an interrupt? any sample code.
I want to increase it to high priority.
Thanks.
learnom
Hello learnom,
There is a set of (96) registers INTCPS_ILRm that are used to set the priority of the interrupts in OMAP35x devices:
this is done by configuring the INTCPS_ILRm[7:2]PRIORITY bit field. Setting this bit field to 0x0 gives the interrupt the highest priority; setting it to 0x3F gives the lowest priority.
You can check Section 10.4.1.3 Priority Sorting in OMAP35x TRM (http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf) for more information.
Regarding sample code (if any) I suggest you post in the dedicated OMAP35x Processors Forum (http://e2e.ti.com/support/dsp/omap_applications_processors/f/447.aspx).
Best Regards,
Yordan
Thanks Yordan.
I added the code to modify the priority of the interrupt by setting INTCPS_ILRm.
I am just wondering, If the pin is configured as GPIO, can i still change the priority of it? As i dont see a difference, and the input pin is configured as GPIO. Any suggestions please?
Regards,
learnom
Hello,
You should be able to change priority of a pin when it is configured as GPIO.
Have you tried setting the corresponding MPU_INTC.INTCPS_THRESHOLD[7:0] PRIORITYTHRESHOLD bit field (for guidance see Section 10.4.1.2.2 Priority Masking of the OMAP35x TRM). According to TRM: To enable faster processing of high-priority interrupts, a programmable priority masking threshold is provided (the MPU_INTC.INTCPS_THRESHOLD[7:0] PRIORITYTHRESHOLD field).
Best Regards,
Yordan