cancel
Showing results for 
Search instead for 
Did you mean: 

interrupt register

stm322
Associate II
Posted on November 26, 2008 at 12:10

interrupt register

3 REPLIES 3
stm322
Associate II
Posted on May 17, 2011 at 12:54

Hello,

I was wondering if there is a way to know which interrupt is enabled or not.

For example, I enable a few interrupt such as USART1, CAN_RX, ... using the NVIC_Init from the ST library. After that, I would like something returning a mask of interrupt enabled or not. I haven't seen a ST library function having this possibility.

I was thinking of reading the register, but I haven't found the address of this register in any document. By debugging the library I saw that the register modified is at the address 0xE000E000. But this one is in a reserved section refering to the memory map in document RM0008.

Does anybody have an idea or know how to check all interrupt enabled?

Thanks in advance.

giles
Associate II
Posted on May 17, 2011 at 12:54

I've not tried this but i'd read the interrupt set enable registers - see the Cortex M3 Technical Reference:8.2.2

stm322
Associate II
Posted on May 17, 2011 at 12:54

Thank you Giles.

I can read the register at the address 0xE000E100. It gives me back properly which interrupt is enabled.