Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Thank you so much, NurseBob! It works as it should now, and I can see the switch bounce you are talking about. But it is interrupting like it should. I was thinking of BIT3 as an input and apparently this was wrong, but I don't understand that logic. To me, pressing the button is an input that causes the interrupt. Why is that not the case? Thanks again!!
  2. I just started playing with the MSP430 with the G2553 chip and am having problems with interrupts. I have the following code just for testing and sometimes pressing the button works and sometimes it doesn't. I thought maybe I had a bad board and replaced it but I still have the same problem. I am beginning to think I am just doing something wrong in the debugging or something. But, here is my code: #include <msp430g2553.h> #define LED1 BIT0 int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; //Set DCO to 1Mhz DCOCTL = CAL
  • Create New...