KL81 tamper event cannot generate interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KL81 tamper event cannot generate interrupt

674 次查看
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 项奖励
回复
1 回复

570 次查看
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 项奖励
回复