2019-02-06 01:42 AM
Hi, I wanna use the lowest power mode possible for my stm32l432kc. I want MCU to wakeup on accelerometer motion (which is possible since the accel generate interrupt on motion). I've read in MCU appnopte AN4621(page 13) that i2c is detected only in stop mode and that it generate a wakeup on i2c address detection (if I understand it correctly). But as I explained this is not what I want. I wonder if I can use shutdown or standby?
Solved! Go to Solution.
2019-02-07 03:26 AM
It depends on the accelerometer model and your schematics. Can it remain powered on and working while the MCU is in standby/shutdown mode? Does it send its wakeup event as a simple IO rising/falling edge which can be simply connected to MCU's WakeUp pin, or does it use the I2C as you think? I don't think it uses I2C to send an event (I've never seen an accelerometer which is I2C master rather than slave).
2019-02-06 01:52 AM
Hello Maryam,
For further information about the STM32L4 power mode you can refer to this training online session :
https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32l4-online-training.html
Best Regards,
Mohamed Aymen.
2019-02-07 02:44 AM
@Community member can you please advise?
2019-02-07 03:06 AM
If your accelerometer can generate an IO event then use the WKUP pin to catch the event and wake up from the standby/shutdown mode.
Read the reference manual (RM0394), sections 5.3.9 (Standby mode) and 5.3.10 (Shutdown mode).
2019-02-07 03:09 AM
So you think that the accelerometer would be able to detect motion while the MCU is in shutdown/standby mode and wakeup the MCU? Because as I mentioned in the post and what I could understand is that the accel won't be able to work unless the MCU is at least in the stop2 mode.
2019-02-07 03:26 AM
It depends on the accelerometer model and your schematics. Can it remain powered on and working while the MCU is in standby/shutdown mode? Does it send its wakeup event as a simple IO rising/falling edge which can be simply connected to MCU's WakeUp pin, or does it use the I2C as you think? I don't think it uses I2C to send an event (I've never seen an accelerometer which is I2C master rather than slave).