Hello all
can someone help me to understand what is happening during the ESP32 start?
lets talk about the IO33
i wrote a simple code to set IO33 to output pin and set high level after start. but on the osciloscope I can see this: picture in attachment
I do not understand why the pin goes to 2V for 8ms and then is set to 3.3V
can anyone help me to understand what is happening here ?
or am I doing something in wrong way ?
code sinippet
void app_main(void)
{
ESP_LOGI(TAG, "startujem");
///////
gpio_reset_pin(33);
gpio_set_direction(33, GPIO_MODE_OUTPUT);
gpio_set_level(33, 1);
ESP_LOGI(TAG, "nastavena uroven 33 ");
BR
Roman
ESP32 - IO33 - levels - 2V
-
- Posts: 9
- Joined: Tue Nov 17, 2020 12:19 am
ESP32 - IO33 - levels - 2V
- Attachments
-
- 1710255478660.jpg (3.74 MiB) Viewed 2330 times
Re: ESP32 - IO33 - levels - 2V
My guess is that the pin is initialized to Hi-Z (floating) at power-on-reset. Then it takes some time for the CPU to start running your code and set the level high.
You could try adding an external pull-up resistor to 3.3V so it goes high when the pin is hi-Z / floating.
You could try adding an external pull-up resistor to 3.3V so it goes high when the pin is hi-Z / floating.
Re: ESP32 - IO33 - levels - 2V
I have seen this behavior as well. I think phatpaul's explanation and suggested method of handling the pin are correct. I've used the pull-up successfully.
Who is online
Users browsing this forum: No registered users and 86 guests