logo elektroda
logo elektroda
X
logo elektroda

Does a low state pin disable power to the RTC module in the EPS32?

TvWidget 453 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20082643
    TvWidget
    Level 38  
    Does the low state of the EN pin internally disable the power supply to the RTC module in the EPS32 ?
  • ADVERTISEMENT
  • #2 20082891
    khoam
    Level 42  
    Yes, when the state on EN (CHIP_PU) is low, the internal low voltage regulator 1V1 which also powers the RTC domain is switched off. When the high state on CHIP_PU is restored, an ESP reset is performed.
  • ADVERTISEMENT
  • #3 20082908
    TvWidget
    Level 38  
    Is it possible to somehow preserve the time between resets triggered by the low state of the EN pin ?
  • #4 20082915
    khoam
    Level 42  
    Generally, this should not allow low states on the EN - it should be pulled up to the power supply. Data can be stored in flash memory (NVS).
  • #5 20082939
    TvWidget
    Level 38  
    On the device I have a hardware watchdog connected to the EN pin. If for some reason it triggers then I lose the timing information completely. I wonder if I should go along with this. Frequent NVS memory writes are unlikely to be a good solution
  • ADVERTISEMENT
  • #6 20082945
    khoam
    Level 42  
    Depending on the flash memory used in the ESP32, this could be between 100,000 and 1 million writes.
  • #7 20083206
    TvWidget
    Level 38  
    One more solution came to my mind but probably too risky.
    I am using an ESP32-V3-02 with an internal PSRAM. The memory is powered from the ESP pin. It is, admittedly, labelled "Output power supply". However, I think this is a regular IO pin. It is externally accessible. So potentially VDD could be connected to it. In this situation, a low state on EN will not disable the PSRAM power supply and the data in memory will remain
  • ADVERTISEMENT
  • #8 20083929
    khoam
    Level 42  
    The PSRAM is powered internally from the VDD_SDIO domain, as is the flash. The VDD_SDIO regulator is also switched off when a low state is applied to EN.

    Does a low state pin disable power to the RTC module in the EPS32? .

    Connecting an external 3V3 to VDD_SDIO will automatically disable the internal VDD_SDIO controller. Sleep functions will then cease to function properly.

Topic summary

When the EN (CHIP_PU) pin of the ESP32 is set to a low state, it disables the internal low voltage regulator that powers the RTC module, resulting in a loss of timekeeping. To preserve time between resets, users can store data in flash memory (NVS), although frequent writes may not be ideal due to limited write cycles (100,000 to 1 million). Some users consider alternative solutions, such as connecting external power to the PSRAM, but this risks disabling sleep functions and may not maintain data integrity during power loss.
Summary generated by the language model.
ADVERTISEMENT