Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: Strange Interrupt/Reset problem.

$
0
0
Hello, I have the MSP-EXP430FR2311 board. While experimenting with interrupts, I came across a strange problem: setting the interrupt to trigger on a falling edge causes the chip to hang when the debugger exits. The program runs fine until I exit the debugger in Code Composer Studio. To demonstrate the problem, I added these three lines of code to the "BlinkLED" example (right before the infinite loop): GPIO_selectInterruptEdge(GPIO_PORT_P1, GPIO_PIN6, GPIO_HIGH_TO_LOW_TRANSITION); //Interrupt on rising edge __enable_interrupt(); // enable all interrupts GPIO_enableInterrupt(GPIO_PORT_P1, GPIO_PIN6); //Interrupt on P1.1 When the interrupt is set to trigger on the rising edge (GPIO_LOW_TO_HIGH_TRANSITION), the problem goes away, and the chip resets as expected when the debugger exits. I'm completely out of ideas on this one. Anyone know what could be going on? Thanks, Will

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>