spirilis 1,265 Posted June 26, 2013 Share Posted June 26, 2013 Really? So how do I program something with 3 or 4 buttons? P1 and P2 are 8-bit wide ports, so you have 16 usable interruptable pins. Quote Link to post Share on other sites
canibalimao 2 Posted June 27, 2013 Share Posted June 27, 2013 Oh I'm so stupid... I misunderstood everithing. I thought that P1 and P2 were "P1.1 and P1.2" Thank you booth for the explanation Quote Link to post Share on other sites
vitalis 0 Posted September 5, 2015 Share Posted September 5, 2015 Hi, 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/ Quote Link to post Share on other sites
roadrunner84 466 Posted September 7, 2015 Share Posted September 7, 2015 Hi, 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. Quote Link to post Share on other sites
abecedarian 330 Posted September 7, 2015 Share Posted September 7, 2015 I don't think the CC110l is itself capable of waking the host MCU, though, since it's a simple transceiver. Quote Link to post Share on other sites
CorB 64 Posted October 30, 2015 Share Posted October 30, 2015 Hi, 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. regards Cor Quote Link to post Share on other sites
Va0094 0 Posted May 18, 2017 Share Posted May 18, 2017 The code that is avaliable on the link: Quote file:///D:/Softwares/energia-0101E0012/reference/AttachInterrupt.html volatile int state = HIGH; volatile int flag = HIGH; int count = 0; void setup() { Serial.begin(9600); pinMode(GREEN_LED, OUTPUT); 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) { count++; Serial.println(count); 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!!!! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.