ESP32 Wakeup Modes

Hi! I have a question on esp32 wakeup modes. I am using an esp32-C3 with a project which has 3 pushbuttons and a DS3231 RTC. I have it set so that if any of the buttons go low OR the RTC SQW/INT pin goes low it will wake up from deep sleep. The deep sleep modes on the esp32-C3 are different than the esp32-s3. On the C3 you can set it to wakeup when any of multiple pins go low using esp_deep_sleep_enable_gpio_wakeup(WAKEUP_PIN_BITMASK,ESP_GPIO_WAKEUP_GPIO_LOW);

However, I am now wanting to port my code to an esp32-S3. This chip has two deep sleep external wakeup modes: ext0 allows wake-up from deep sleep from a single GPIO only so that won't work.
ext1 allows wakeup from multiple gpios but allows only the following options:

  • ESP_EXT1_WAKEUP_ALL_LOW: wake up when all GPIOs go low;
  • ESP_EXT1_WAKEUP_ANY_HIGH: wake up if any of the GPIOs go high.

I could change my code so all of my gpios are active high, but what so I do about the DS3231 SQW/INT pin? I believe it is only active low. Do I just send it thought an inverter gate then to the gpio?

Fish

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.