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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,493 Views
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?

Labels (1)
0 Kudos
Reply
1 Solution
863 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
864 Views
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 Kudos
Reply