Hello,
I am wondering if there is a way for the MSP430 to wake up from low power mode via I2C. Would I2C activity on a Versatile I/O port wake the MSP430 up, and allow it to receive the I2C data?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am wondering if there is a way for the MSP430 to wake up from low power mode via I2C. Would I2C activity on a Versatile I/O port wake the MSP430 up, and allow it to receive the I2C data?
If configured properly, an USCI module in SPi slave mode (or multi-master mode) whill cause an interrupt when its own address or the broadcast address is received. This wakes up the MSP. Even if the SPI clock isn'T running. In this ISR you can decide to wakeup the main thread too.
You can, however, route the I2C clock line to any Port1/port2 pin and trigger an interrupt on a falling edge. Thi siwll also cause an interrupt and wakeup the MSP for executing the ISR, but then you already missed the meaning of this activity in the USCI I2C module and it is too late to jump in.
If you're doing a software I2C based on GPIO pins only, well, the port interrupt (only Port1 or Port 2 have interrupt capability) will wake you and allow you to detect the start condition and address sequence properly.
So the answer is: Yes, depending on your hardware and software setup.
**Attention** This is a public forum