cancel
Showing results for 
Search instead for 
Did you mean: 

SPIRIT1 interrupt status register bits

Gergo Santha
Associate II
Posted on March 28, 2018 at 13:58

Hi!

My SPIRIT1 code is not working properly and I found confusing the description of the INTERRUPT_MASK and INTERRUPT_STATUS registers in the SPIRIT1 datasheet (rev 10, Oct 2016). In the registers description both MASK[3:0] and STATUS[3:0] registers refer to Table 36. For me that means setting bit 6 in MASK[0] register is flagged in bit 6 of STATUS[0] register.

However, in the Spirit1 library provided by ST, in the SPIRIT_Regs.h file, the relation is reversed, MASK[0] is reflected in STATUS[3].  Which one is true?

I also have a strange problem, when reading the 4 IRQ_STATUS register content. I initially thought that if I set a bit in MASK (and the others are all zeroes) then in the STATUS register only that bit will flag if the event occurs. However when I read the STATUS registers I get other bits set indicating that other events are also occured. Is that a normal behaviour?

Thank you!

#spirit1
0 REPLIES 0