Simple sample code for GPIO capture using I2S?

OSCPUDEV
Posts: 20
Joined: Fri Jun 23, 2023 7:02 pm

Simple sample code for GPIO capture using I2S?

Postby OSCPUDEV » Thu Jun 29, 2023 9:19 pm

I am looking for some sample code that will simply capture the state of a GPIO pin and build the bitstream in the DMA buffer.

I need to capture at 40MHz (25ns intervals). Everything i have seen deals with audio data, and I need to make just a very simple single channel logic analyzer with 2 buffers so that a continuous stream can be stored in PSRAM (using ping-pong buffers).

Thanks!

User avatar
ok-home
Posts: 78
Joined: Sun May 02, 2021 7:23 pm
Location: Russia Novosibirsk
Contact:

Re: Simple sample code for GPIO capture using I2S?

Postby ok-home » Tue Jul 04, 2023 3:58 pm

Hi
This is a bit different from what you want.
Parallel capture at 40 megahertz
but if you wish, you can correct it for serial as far as I understand

https://esp32.com/viewtopic.php?f=17&t=33876

OSCPUDEV
Posts: 20
Joined: Fri Jun 23, 2023 7:02 pm

Re: Simple sample code for GPIO capture using I2S?

Postby OSCPUDEV » Thu Jul 06, 2023 10:13 pm

Thanks for pointing this out!

Does this use I2S for the capture? I don't need 16 channels.. I need just 1 channel, but I do need to capture 300,000 samples and store them in PSRAM.

Who is online

Users browsing this forum: No registered users and 17 guests