hi,
kindly direct me to sample code showing putting the MCU into the lowest power mode with i2c interrupts enabled.
thanks,
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.
hi,
kindly direct me to sample code showing putting the MCU into the lowest power mode with i2c interrupts enabled.
thanks,
Hi Ephraim,
Please look through the examples in the TI Resource Explorer, which demonstrate I2C functionality and low power mode functionality in separate examples. You will be able to add low power mode functionality to the I2C examples. Also, review section 9.5 of the datasheet to see which LPMs support I2C functionality.
hi Dylan,
i looked through examples, including the i2c slave example. however, i am confused: when walking up to service the ISR, after servicing does it go back to LPM0? it appears it does, and that is not good for me. i want to stay out of LPM0 until i decide to return to the LPM0 mode. Is there a RUN mode routine?
thanks,
You are correct that after servicing the ISR, the device will return to the low power mode unless you change the setting during the ISR. I don't think it is necessary for you to switch examples to implement this, you just need to clear the LPM bits that you previously set to keep the device awake until you set them again. For example, you can just add the line: __bic_SR_register_on_exit(LPM3_bits); to your ISR to have the device remain awake from LPM3 after finishing the ISR.
**Attention** This is a public forum