Part Number: TM4C129DNCPDT
Hi Team,
Posting on behalf of our customer.
I will share this E2E post to our customer so he can reply when needed.
As per our application requirement, we need to generate an NMI interrupt handler on the TM4C129DNCPDT device. According to the datasheet, the NMI interrupt is generated only when a valid VIH level is asserted on the NMI pin.
In our application, the default state of the NMI pin is HIGH (3.3 V). When a switch is turned OFF, the supply to the NMI pin is removed and the pin goes LOW (0 V). At this point, the NMI interrupt should be generated.

Inside the NMI interrupt handler, we need to transmit 5byte over UART and also toggle or set another GPIO pin as an indication.
Could you please clarify:
-
Is it possible to generate an NMI interrupt on a falling edge (transition from HIGH to LOW) on the NMI pin?
-
If not, what is the recommended way to detect loss of voltage on the NMI pin and still use the NMI functionality?
-
How can the NMI interrupt handler be properly initialized and implemented in Code Composer Studio (CCS) using C?
Any guidance or example code would be greatly appreciated.
Regards,
Danilo