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

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

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

ソリューションへジャンプ
1,325件の閲覧回数
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 解決策
695件の閲覧回数
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 返信
696件の閲覧回数
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 件の賞賛
返信