how fast can a GPIO change direction?

ffrige
Posts: 22
Joined: Thu Oct 15, 2020 3:44 am

how fast can a GPIO change direction?

Postby ffrige » Sat Jun 05, 2021 10:01 am

I need to read data from a Tamagawa encoder over a differential line. I am planning to use RMT to send request bits and to read the response. However, I only have one pin left in the ESP32, so I need to switch its direction from output to input between the request and the response. According to the Tamagawa specifications, the encoder starts responding 3us after it receives the request. Can the ESP32 switch the direction of a GPIO pin within that time frame? I could not find the info on the datasheet.
Thank you!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: how fast can a GPIO change direction?

Postby WiFive » Sat Jun 05, 2021 7:02 pm

Check out the 1-wire drivers on GitHub. The pin can be in input output open drain mode.

Who is online

Users browsing this forum: No registered users and 159 guests