hi,
I want to write program of blinking led using NMI interrupt on RST/NMI pin. I kept breakpoint unmi_isr routine.
But controller is not coming into unmi_isr routine when RESET/NMI button is pressed on MSP430F5438A development kit.
Can any one help what I have to change in the code given below.
/***********************************************/
#include <msp430.h>
int main(void)
{
WDTCTL = WDTPW + WDTHOLD ; // Stop WDT
P1DIR |= 0x01; // Set P1.0 to output direction
__bis_SR_register(GIE);
SFRIFG1 &= ~0x10; // NMi IFG cleared
SFRRPCR |=0x1;
SFRIE1|=0x10; //NMIIE
P1OUT &= ~0x01; // led is off
while(1);
}
#pragma vector=UNMI_VECTOR
__interrupt void unmi_isr(void)
{
P1OUT ^= 0x01;
SFRRPCR |=0x0;
}
/*******************************************************/
regards,
y v subba rao