Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the use of the `interrupt` keyword while declaring an ISR? Is it mandatory to declare all the ISR`s using this keyword?

0
Posted

What is the use of the `interrupt` keyword while declaring an ISR? Is it mandatory to declare all the ISR`s using this keyword?

0

ISA: C6000; All CCS: ‘Interrupt’ keyword is not mandatory for declaring an ISR. The user can still branch to an ISR without declaring a function using this keyword. Specifying this keyword would declare the ISR as a Maskable interrupt function, which means that the interrupt could be disabled using software instruction. For such ISR`s, there is no need to include the assembly instruction `B IRP` in the interrupt vector table. Whereas for the functions, which were not declared using an ‘interrupt’ keyword, the user has to explicitly use the `B IRP` instruction at the end of the assembly routine in the interrupt vector table.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123