ESP32 Low Level Register Access

WardMas
Posts: 14
Joined: Fri Jun 19, 2020 9:09 am

ESP32 Low Level Register Access

Postby WardMas » Thu Oct 15, 2020 7:38 am

Hello friends,
I want to read and write values directly to GPIO PIN Register to check if a GPIO pin has been configured correctly.
Another question is that I want to know if it is possible to connect an GPIO pin configured as output open drain to a 5V pull-up resistor/
Thank you.
You can always visit my Youtube channel for hardware tutorials
https://www.youtube.com/channel/UC5zdou ... subscriber

ESP_Sprite
Posts: 4011
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Low Level Register Access

Postby ESP_Sprite » Fri Oct 16, 2020 1:25 am

On the 2nd question: The official line is that the pins of the ESP32 are not 5V compatible. (Unofficially, if you use it for an one-off project and keep the currents low, chances are very high it'll work anyway, though. Just don't complain to us if it happens to breaks eventually.)

WardMas
Posts: 14
Joined: Fri Jun 19, 2020 9:09 am

Re: ESP32 Low Level Register Access

Postby WardMas » Fri Oct 16, 2020 1:10 pm

Hi, thank you for your reply. Currently I have set the the GPIO pin as open drain and connected it to 5V with 3k6 resistor and the pin voltage now is 4.1V which is acceptable for me. I want to know if ESP IDF supports direct low level register accessing like STM32 HAL library
You can always visit my Youtube channel for hardware tutorials
https://www.youtube.com/channel/UC5zdou ... subscriber

Who is online

Users browsing this forum: phillipdimond and 45 guests