unusual voltages at GPIO6 to GPIO 11 Pins

naitik
Posts: 19
Joined: Thu Apr 22, 2021 2:04 pm

unusual voltages at GPIO6 to GPIO 11 Pins

Postby naitik » Thu Jun 24, 2021 8:29 am

we are using esp32 wroom 32d. when we measure voltages while running the firmware using oscilloscope between GPIO6 to GPIO11 We get Voltages that ranges between 4.2v ~ -1.17v .
However when we flash empty project with simple while loop voltages between those GPIOs stays around 3.44~3.12v. the board is powered by PC. and its unclear how ESP32 is Outputting around 4 volt max between those GPIO when voltage across 3v3-GND always stays around 3.59~3.04v. I know that GPIO6-GPIO11 is used for interfacing Flash but is it common to get this much voltage at those pins?
here is voltage values with and empty project(Left hand side) running and Firmware is running (Right Hand side)
Attachments
Annotation 2021-06-24 145435.png
Annotation 2021-06-24 145435.png (12.75 KiB) Viewed 4508 times

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

Re: unusual voltages at GPIO6 to GPIO 11 Pins

Postby ESP_Sprite » Thu Jun 24, 2021 10:11 am

How are you measuring this? Given the fact that the ESP32 is trying to measure this, there will be AC'ish waveforms on these pins. If you throw an instrument expecting DC at this, you'll get weirdness.

naitik
Posts: 19
Joined: Thu Apr 22, 2021 2:04 pm

Re: unusual voltages at GPIO6 to GPIO 11 Pins

Postby naitik » Thu Jun 24, 2021 12:43 pm

I am measuring this with Oscilloscope. and yes i am aware of this pins carries the AC'ish waveform. but since this is Digital 3v3 LVCMOS Standard Line I expected to see the switching value between 0v-3.3v but in reality the it goes upto 4.14v max as it is seen in picture below. The development board is powered up by PC. so is this normal ?
Attachments
20210624_111407.jpg
20210624_111407.jpg (3.08 MiB) Viewed 4478 times

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

Re: unusual voltages at GPIO6 to GPIO 11 Pins

Postby ESP_Sprite » Fri Jun 25, 2021 1:39 am

What does the signal look like when zoomed in? And what is your measuring setup, as in, how do you connect the probes?

naitik
Posts: 19
Joined: Thu Apr 22, 2021 2:04 pm

Re: unusual voltages at GPIO6 to GPIO 11 Pins

Postby naitik » Fri Jun 25, 2021 2:21 pm

After changing the code yesterday, the behaviour of the out is altered so max voltage is bit different but its still more than 3.3v. the way I measure is to set the GND to the MCU GND pin and place the probe right on the pin where I want to measure.
and here is zoomed in waveform :
Attachments
Photo 2021-06-25 11.06.50.jpg
Photo 2021-06-25 11.06.50.jpg (2.94 MiB) Viewed 4409 times

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

Re: unusual voltages at GPIO6 to GPIO 11 Pins

Postby ESP_Sprite » Sat Jun 26, 2021 4:56 am

That still looks like an artifact of your measuring method; in this case I think it's a sin(x)/x interpolation artifact; you can see that as the waveform starts to dip below GND *before* it goes up. (Ref e.g. here)

Edit: Your signal looks like 30KHz and your sample rate is 50Ksps. Not only are SPI pulses way faster than that, you're also almost guaranteed to get sin(x)/x artfacts with the sample rate and (measured) waveform frequency so close.

Who is online

Users browsing this forum: No registered users and 60 guests