KL81 tamper event cannot generate interrupt

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

KL81 tamper event cannot generate interrupt

684 Views
daweiy
Contributor I

Hi,

I have a hardware which has a tamper circuit loop. After I set up tamper pins, I trigger tamper event by switch on/off a physical switcher. When tamper event occurred, I can see DTF bit and tamper pin's TPF bit are both set.  I also set DTIE bit in IER register to enable interrupt when DTF sets. But tamper service routine,Tamper_IRQHandler, is not called. 

In the KL81 reference manual, it says "The DryIce Interrupt is asserted whenever a status flag and the corresponding interrupt enable bit are both set.". Obviously, it is not happening in my case. 

Can anyone give me any clues on this issue?

Thanks!

Dawei

0 Kudos
Reply
1 Reply

580 Views
daweiy
Contributor I

I didn't enable the interrupt in NVIC module. After I added these code, interrupt works.

NVIC_SetPriority(Tamper_IRQn, 0); 
NVIC_EnableIRQ(Tamper_IRQn);

0 Kudos
Reply