KL17 - pin interrupt will not fire...

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

KL17 - pin interrupt will not fire...

ソリューションへジャンプ
656件の閲覧回数
mitch1
Contributor II

I have a strange bug in code that was once working, i've been scratching my head for about a days work of work trying to figure this out.

Anyway, I use PTA4, (can be _NMI, but I only what falling edge triggers) as a falling edge interrupt, it will be used to wake from sleep, but for debug purposes I'm just printing out if the interrupt fires. 

Set up does the following:

PORT_SetPinMux(PORTA, 4U, kPORT_MuxAsGpio);

PORT_SetPinInterruptConfig(PORTA, 4, kPORT_InterruptFallingEdge);

... I've probed the line, the signal that should trigger the irq is happening. If I configure the pin for nmi, nmi does trigger, but since the signal can stay low for extended time, it triggers way to many irq's. I've also done follow up configuring the pin as GPIO input for good measure, but that doesn't make a difference seemingly. I really need this pin to trigger on falling edge only.

Thanks for any help!

ラベル(1)
0 件の賞賛
1 解決策
651件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Have you enabled Port A interrupts in the NVIC?

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/kinetis/FRDM-KL27Z.html

元の投稿で解決策を見る

2 返答(返信)
634件の閲覧回数
mitch1
Contributor II

Thank you sir, that indeed was missing. It always is simple once you find it.

0 件の賞賛
652件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Have you enabled Port A interrupts in the NVIC?

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/kinetis/FRDM-KL27Z.html