2017-10-05 04:45 PM
The stm32l4 family had the very nice feature of programmable pull-up/pull-down on the various GPIO pins to be applied when in shutdown or standby. In standby mode, these configurations are not lost at wakeup (at least as I read the reference manual). Is it the case that these pull-ups/pull-downs continue to be applied until the pins are reconfigured ? Is there a 'moment' when the pins float ? The reference manual is far from clear on this point, but it makes a difference whether I need an external pull-down.
Geoffrey
2017-10-06 12:07 AM
Dear
Brown.Geoffrey
,quoting AN4621, chapter 2.3.1:
Pull-up and pull-down can individually be applied on each I/O during the Standby mode, allowing external devices configuration to be kept.
After you exit standby mode, device reset occurs and in this case, values of pins are set to default state, meaning you don't have undefined behavior, because you can check default pin states in reference manual for specific device. There are different configurations for different pins at startup.
Best regards,
Tilen
2017-10-06 06:15 AM
That's what I was worried about. What's the point of a pull-up or pull-down that floats the pin on exit from standby ? Another feature that is so irritatingly close to being useful.
Geoffrey
2017-10-06 06:35 AM
1. Wouldn't other low-power mode suit?
2.With a bit of work (placing GPIO init directly into startup code), you only need to bridge the time until the processor wakes up, which according to DS is around 20-40us - unless there's any significant leakage, couldn't the parasitics hold the required level long enough?
JW
2017-10-06 06:42 AM
1) No. I can't afford the 30x power.
– 8 nA Shutdown mode
- 28 nA Standby mode
– 1.0 µA Stop 2 mode
(the truth is somewhat greater under reasonable operating assumptions).
2) It's possible, but it's equally possible that this leads to intermittent and undiagnosable problems. Definitely not consistent with safe design.
2017-10-06 07:01 AM
1) can't afford the 30x power
just askin'
2) It's possible, but it's equally possible that this leads to intermittent and undiagnosable problems. Definitely not consistent with safe design.
This *can* be engineered - at the end of the day, the world is analog. Surely, any backlash hits you not me... ;)
JW