Page 1 of 1
ESP32 GPIO Input Hysteresis (Schmitt Trigger)?
Posted: Mon Dec 28, 2020 7:11 am
by ycroosh
Hello,
I can't find any info on whether or not ESP32-WROOM-32E has Schmitt triggers on GPIO inputs and what (if any) the hysteresis is.
Any info would be appreciated.
Thank you
Yuriy
Re: ESP32 GPIO Input Hysteresis (Schmitt Trigger)?
Posted: Tue Dec 29, 2020 1:33 am
by ESP_Sprite
They do not.
Re: ESP32 GPIO Input Hysteresis (Schmitt Trigger)?
Posted: Tue Dec 29, 2020 10:29 pm
by PeterR
You should really describe your original problem along with question.
No schmitt but a software latch, counter, RMT might work just as well (depending on you're actual problem).
Re: ESP32 GPIO Input Hysteresis (Schmitt Trigger)?
Posted: Wed Dec 30, 2020 7:07 pm
by ycroosh
PeterR,
I need to read four to six external sensors that communicate using a two-wire protocol (somewhat similar to SPI). The sensort provide 32 clock pulses on the "Clock" line, and the data is read on the falling edge. The refresh rate is about 20-100 Hz per sensor (20Hz when they are idle, 100Hz when the values are changing rapidly), and clock frequency is about 25KHz. I don't have any control over the sensors, so they can send their data a any random time.
Thank you
Yuriy
Re: ESP32 GPIO Input Hysteresis (Schmitt Trigger)?
Posted: Thu Dec 31, 2020 11:32 pm
by PeterR
Not tried TWI on ESP before.
SPI should do it. You can figure the mode. Some edge cases on hard wiring CS to figure but doable.
Trouble is you have 4-6 asynchronous sources & you do not have 6 SPI devices on the ESP.
25MHz is also probably too fast if you use the ESP GPIO mux (use non native SPI pins).
Tricky problem. I would look (maybe) at port extenders (with FIFOs) and hook one or two to the ESP, like a SPI 4:1 multiplexor.
Whats the data source?
If UPC cost (rather than NRE) really is your thing then you might be able to reach 4 or so devices using ESP alone e.g. a combination of SPI and RMT etc. The 25MHz will be interesting though because of the GPIO mux clock delay limitations.
Obviously you need hardware support at 25Mhz.
Gut reaction is that you need external circuits.