2013-02-15 11:48 AM
I use my STM32F0 to communicate with an SPI slave device, which is powered by the 3V bus on the STM32F0.
My problem is that when I reset the STM32F0, the bus power is not interrupted, which leaves the SPI device in an unrecoverable state. I need to drop power to the device momentarily in order to re-initialize it.Is there a way to forcibly disable the 3V power of the STM32F0 momentarily? If not, can you suggest an alternative solution? I tried powering the device from an I/O pin but it behaved erratically- it looked like the I/O pin was only outputting 500 mV.2013-02-15 12:37 PM
That the 3V is the input power rail, it would be hard to control. Some external regulators have an enable pin.
The internal regulators can be switched off in STANDBY mode. External synchronous parts should have a reset, and you should have a POR circuit to reset them. Some POR solutions include a button or watchdog type reset. Are you sure you can't clock this SPI device out of it's odd state, or inquire with the vendor? Gate the supply to the SPI part?2013-02-15 03:08 PM
Thanks for the help! I ended up powering the device off of one of the GPIO pins, which I know is generally taboo, but it only draws a few dozen uA, so it hasn't been a problem yet.