SPC5674F IRQ FLAG CLEAR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPC5674F IRQ FLAG CLEAR

731 Views
mikailaltintas
Contributor III

Hi,

I am using SPC5674F. In IRQ ISR I clear interrupt flag as 

SIU.EISR.B.EIF10 = 1; //Clear Interrupt Flag.

After this line   SIU.EISR.B.EIF11 and SIU.EISR.B.EIF12 flags cleared without my action. Same event occur if I use 

SIU.EISR.B.EIF11 = 1; 

After this line   SIU.EISR.B.EIF10 and SIU.EISR.B.EIF12 flags cleared without my action. So after these lines I cannot get in if(SIU.EISR.B.EIF12) code. 

For these examples I am sure that before SIU.EISR.B.EIF10 = 1; line SIU.EISR.B.EIF12 is equal to 1.

What will be problem. 

I will clear all flags at the end of the function. At that situation it works well. But I want to learn problem.

Labels (1)
Tags (1)
2 Replies

601 Views
martin_kovar
NXP Employee
NXP Employee

Hello Mikail,

if you want to clear only one flag, you cannot use bit access (Instantiation (.B)).

I am attaching you document, which describes this topic in detail. Please read chapter 3

Regards,

Martin

601 Views
mikailaltintas
Contributor III

Hi Martin,

Thank you for informations.