This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to enable NMI Pin in Tiva TM4C123GH and configure the ISR?

Other Parts Discussed in Thread: TM4C123GH6PM

Hi All,

Can anybody please help me on configuring the NMI pin in the TM4C123GH6PM pin PD7. Also i couldn't see any API functions in the software driver library for NMI and linking ISR for NMI interrupt. If i configure the GPIO pin as NMI pin and enable the GPIO interrupt on the sam pin, will that GPIO pin be treated as a NMI interrupt?

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);

HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY; 

HWREG(GPIO_PORTD_BASE + GPIO_O_CR) |= 0x80;

HWREG(GPIO_PORTD_BASE+ GPIO_O_AFSEL)|=0x80;

GPIO_PORTD_PCTL_R|=0x80000000;

HWREG(GPIO_PORTD_BASE+ GPIO_O_DEN)|=0x80;

HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = 0;

Also can i use the below API for configuring the PD7 pin as NMI pin? I hope that will do.

GPIOPinConfigure(GPIO_PD7_NMI);

One more thing, Does  GPIOIntTypeSet(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_FALLING_EDGE ); can help to create a NMI on the falling edge on PD7 pin?

Thanks and Regards

Dilgush