What is (minimum) power consumption when using TAMP input ?
I am developing a low-power application and need to add a button-input. As the MCU (STM32WLE5) is in sleep (STOP2) most of the time (waking up by RTC every 30 seconds), the button press needs to trigger an interrupt which also wakes up the MCU.
FYI, my current board consumption in sleep is 1.4 uA
I cannot add a standard GPIO input, because the current consumption of the schmitt-triggers is too high, so I tried to use the TAMP input, as this seems to allow for low-power applications. The button simply switches PB3 (Tamp input 3) to GND.
I am able to get an interrupt from the button which wakes up the MCU from STOP2. However, the current consumption of the MCU in STOP2 still increased from 1.4 uA to 45uA
Here is my tamper pin setup :
sTamper.Tamper = RTC_TAMPER_3;
sTamper.Trigger = RTC_TAMPERTRIGGER_FALLINGEDGE;
sTamper.NoErase = RTC_TAMPER_ERASE_BACKUP_DISABLE;
sTamper.MaskFlag = RTC_TAMPERMASK_FLAG_DISABLE;
sTamper.Filter = RTC_TAMPERFILTER_DISABLE;
sTamper.SamplingFrequency = RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024;
sTamper.PrechargeDuration = RTC_TAMPERPRECHARGEDURATION_1RTCCLK;
sTamper.TamperPullUp = RTC_TAMPER_PULLUP_ENABLE;
sTamper.TimeStampOnTamperDetection = RTC_TIMESTAMPONTAMPERDETECTION_DISABLE;Is this the lowest power consumption with this feature enabled, or could I do better ?
