Need to use pin PTA4 but not as NMI_b (KL15)

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

Need to use pin PTA4 but not as NMI_b (KL15)

跳至解决方案
1,251 次查看
markosiponen
Contributor III

I need to use PTA4 as an GPIO input pin on a KL15 device. The pin can also be used for NMI_b. But I don't want to use the NMI_b signal (but it is the default setting, ALT7).

What do I need to think about?

Do I just need to configure PORTA_PCR4[MUX] = 1 (ALT1) and then also clear set FTFA_FOPT[NMI_DIS] = 0?

I see that the Processor expert doesn't clear the FTFA_FOPT[NMI_DIS] bit, it only set PORTA_PCR4[MUX] = 1. But then the NMI_b would be active for a short while after reset?

标签 (1)
0 项奖励
1 解答
621 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport


Hi,

You can disable NMI interrupt function via set FTFA_FOPT bit2 [NMI_DIS] value to 0b0.

The FTFA_FOPT register will load value from Flash address 0x40D during reset.

So, it need to program Flash address 0x40D with suitable value to disable NMI interrupt function.

In processor expert project, you could set 0x40D address value to disable NMI interrupt.

More detailed info, please check below picture.

flash config of FTFA_FOPT.jpg

Wish it helps.

B.R.

Ma Hui

在原帖中查看解决方案

0 项奖励
1 回复
622 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport


Hi,

You can disable NMI interrupt function via set FTFA_FOPT bit2 [NMI_DIS] value to 0b0.

The FTFA_FOPT register will load value from Flash address 0x40D during reset.

So, it need to program Flash address 0x40D with suitable value to disable NMI interrupt function.

In processor expert project, you could set 0x40D address value to disable NMI interrupt.

More detailed info, please check below picture.

flash config of FTFA_FOPT.jpg

Wish it helps.

B.R.

Ma Hui

0 项奖励