Jump to content

Interrupts for a Newbie

Recommended Posts

  • 2 years later...


is it possible to wake up from LPM4 mode by SPI bus (to be precise - from CC110L radio)?

/just found that CC110L seems to have dedicated out pin for interrup ucontroller, so it should work throuhg GPIO interrupt/ 

Essentially, yes, you can wake an SPI slave MSP430. That is, any real SPI slave will have a /CS input, which is driven from the master. This is in most cases a software controlled interrupt GPIO line, so all is fine there.

You cannot however wake an SPI master from the SPI slave. In those cases, the SPI slave will have a separate interrupt line going out to the master.

Link to post
Share on other sites
  • 1 month later...



Just seeing this now .. the CC110L generates interrupts when it is receiving. That means your MCU can sleep or do other things. In the energia for the CC110 the interrupt (on GDO0) is set when you start the Radio. Unfortunately its not available to the user. In my code I have disabled the attachinterrupt in the original library to allow my own attachinterupt routine to take over and signal an incoming message.




Link to post
Share on other sites
  • 1 year later...

The code that is avaliable on the link: 



volatile int state = HIGH;
volatile int flag = HIGH;
int count = 0;

void setup()

  digitalWrite(GREEN_LED, state);
  attachInterrupt(PUSH2, blink, FALLING); // Interrupt is fired whenever button is pressed

void loop()
  digitalWrite(GREEN_LED, state); //LED starts ON
  if(flag) {
    flag = LOW;

void blink()
  state = !state;
  flag = HIGH;


In this code, I am trying to press the pushbutton P1_3. But it is not showing any status on Serial Monitor.


Please need a suggestion from Energia Forum..

Waiting for the response!!!!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...