KL81 tamper event cannot generate interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KL81 tamper event cannot generate interrupt

540件の閲覧回数
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 返信

436件の閲覧回数
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 件の賞賛