Using an STM RTC_OUT line for enabling/disabling the main power MOSFET on a board, which idles in VBAT mode when not in use
Hi guys -
I am designing a motor control board around an STM32G474. Main power (for driving the voltage regulators, motor drivers, and ultimately the STM itself) will be provided by a large LiPo. Backup power (VBAT, to keep the RTC on the STM, and its external 32.7680 kHz MEMS oscillator, going when the STM is disconnected from main power) will be from an ML1220 coin cell.
I would like to shut down entirely the main power on the board for extended periods of time. I would like to use the RTC on the STM to enable/disable (using an RTC_OUT line) the main power MOSFET controller (a TI LM74700-Q1) on the board at scheduled times (or, when a restart button is pressed, or when a wakeup signal is received over the LPUART channel), and then to disable this main power MOSFET controller when the motor control board can again be turned off.
For this to work, I think I have two main questions:
- When the STM is in VBAT mode, at wake-up time, is the RTC_OUT1 line on the STM sufficiently powerful to enable an external IC (the main power MOSFET controller)? Perhaps this is a question of how much current this STM pin can source when in VBAT mode, versus the peak current that the enable pin on the external IC would require?
- When switching the STM from VBAT mode into RUN mode, and then (later) when switching the STM from RUN mode back to VBAT mode, will the RTC_OUT1 line maintain its commanded state, or will it flicker back and forth (during boot, or during a proper shutdown) until the corresponding transition is complete?
Flickering the enable pin of the main power MOSFET controller would clearly be problematical. I have seen some GPIOs on some MCUs not reliably maintain a desired state during boot, so you can imagine why I'm a bit nervous about this entire idea.
Any additional thoughts y'all might have on this general idea, or related web resources you could point me at, would of course be greatly welcomed.
Thanks in advance,
Tom
