Disable GPIO in ULP ESP32-S2

DylanWork
Posts: 32
Joined: Wed Jun 02, 2021 4:27 am

Disable GPIO in ULP ESP32-S2

Postby DylanWork » Mon Jun 21, 2021 2:02 am

Hi all,

I am trying to essentially blink an LED in ULP with the circuit setup so that the GPIO is a current drain. This is working fine except that the off mode is still operating at ~2.1V when I'm expecting 0V.
ESP32s2 scope.jpg
ESP32s2 scope.jpg (138.93 KiB) Viewed 1239 times
This is my code using the RiscV example as a template :

Code: Select all

        for(int i = 11; i < 15; ++i) //Cycle through GPIO 11-14
        {
            example_ulp_gpio_init(i);
            example_ulp_gpio_output_enable(i);
            example_ulp_gpio_set_output_mode(i,1);
            wait(300);
            example_ulp_gpio_output_disable(i);
            example_ulp_gpio_input_disable(i);
            example_ulp_gpio_pullup_disable(i);
            example_ulp_gpio_pulldown_disable(i);
            example_ulp_gpio_deinit(i);

            wait(1000);
        }
Any ideas as to what code is needed to actually turn the GPIO off? Or will there always be leakage when operating the GPIO as a current drain?

Cheers,
Dylan

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 128 guests