2021-03-11 03:13 AM
Hi all,
It is possible to wake up a STM32F3 series MCU, in stand by mode, from a tamper pin?
2021-03-11 03:57 AM
RM0316. chapter 7.3.5:
Mode exit:
WKUP pin rising edge, RTC alarm event's rising edge, external Reset in
NRST pin, IWDG Reset.
I/O states in Standby mode
In Standby mode, all I/O pins are high impedance except:
· Reset pad (still available)
· TAMPER pin if configured for tamper or calibration out
· WKUP pin, if enabled
2021-03-11 04:13 AM
Yes, but in the same chapter, it says:
--------------------------------------------------------------------
Standby mode Description
Mode entry
WFI (Wait for Interrupt) or WFE (Wait for Event) while:
– Set SLEEPDEEP in ARM® Cortex®-M4 System Control register
– Set PDDS bit in Power Control register (PWR_CR)
– Clear WUF bit in Power Control/Status register (PWR_CSR)
Mode exit WKUP pin rising edge, RTC alarm event’s rising edge, external Reset in
NRST pin, IWDG Reset.
--------------------------------------------------------------------
It dont talk about tamper pins, only wakeup pins.
2021-03-11 04:35 AM
So use wakeup pin as tamper.
2021-03-11 04:48 AM
I did it, and its work well. But the wakeup pin is only rising edge active, and I need a falling edge (yes, I can use a NOT gate, but if is there a way to use tamper...)