Thanks Microcontroller. Came back to delete the post after figuring that out but you beat me.
I was wondering why the dac output rate was less than the 16kHz sample rate.
Thanks again.
Search found 67 matches
- Fri Jul 19, 2024 6:56 pm
- Forum: General Discussion
- Topic: Is DAC output from i2s faster than writing to dma tx buffer ?
- Replies: 3
- Views: 835
- Fri Jul 19, 2024 4:11 pm
- Forum: General Discussion
- Topic: Is DAC output from i2s faster than writing to dma tx buffer ?
- Replies: 3
- Views: 835
Is DAC output from i2s faster than writing to dma tx buffer ?
Using esp-idf 4.4.7 In this code I am expecting to get buffer overflow events but I am not. It appears that continously writing to the dma tx buffer is slower than the dma_tx_buffer outputing data to the DAC. One task is printing out i2s events as they happen. The other task continously writes 2048 ...
- Thu Jul 18, 2024 1:04 pm
- Forum: ESP-IDF
- Topic: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
- Replies: 4
- Views: 1386
Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
No, it's v4.4. Specifically, the code appears to be there since v4.4.3. Your right. I am using platformio, which doesn't include source of the esp-idf version that it works with. I was looking at v 4.4.2 of the idf which I used to look at source. The esp-idf version that platformio uses is actually...
- Thu Jul 18, 2024 12:20 am
- Forum: ESP-IDF
- Topic: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
- Replies: 4
- Views: 1386
Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
The IDF driver abstracts the GDMA support of the hardware away to provide a unified application interface across the different SoC. See e.g. https://github.com/espressif/esp-idf/blob/a9d0f22193acdf47a5a4db36832ae7068818962b/components/driver/i2s.c#L467 which is in the #else branch of the #if SOC_GD...
- Wed Jul 17, 2024 1:40 am
- Forum: General Discussion
- Topic: Q: I2S receiving buffer size
- Replies: 6
- Views: 5510
Re: Q: I2S receiving buffer size
The documentation states that recv_buffer_size > dma_buf_count * dma_buffer_size. That puzzles me a bit. A receive buffer size that spans all DMA buffers would mean that i2s_read() would only return when all DMA buffers are filled. Shouldn't the receive buffer size be just the size of one DMA buffe...
- Wed Jul 17, 2024 1:33 am
- Forum: ESP-IDF
- Topic: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
- Replies: 4
- Views: 1386
#if SOC_GDMA_SUPPORTED is false but getting events from GDMA function
Hello. I am using esp-idf 4.x.x. My program is using i2s peripheral. I am getting the "i2s_event_tx_q_ovf" event but to get that event the gdma would have to be activated. As far as I know, that functionality is not implemented in the esp32 and the function that sends that event is grayed out when I...
- Tue Jul 16, 2024 11:29 pm
- Forum: General Discussion
- Topic: Q: I2S receiving buffer size
- Replies: 6
- Views: 5510
Re: Q: I2S receiving buffer size
I think the logic is that in a situation of extreme CPU pressure, it is 'cheaper' to read out all DMA buffers at the same time rather than to have separate calls to i2s_channel_read(). In the event of a very busy CPU, you'd want to empty all DMA buffers anyway, so you have more space to 'fill up' w...
- Sun Jul 14, 2024 1:44 am
- Forum: General Discussion
- Topic: Using I2S events
- Replies: 0
- Views: 885
Using I2S events
Hopefully a simple question here. I am writing an audio file to I2S TX buffer which drives the DAC output. The audio file is being sent succesfully as expected. I set up an queue to to notify me when any I2S events occur. I am writing 4092 bytes to the I2S TX buffer which is also 4092 bytes in lengt...
- Wed Jun 12, 2024 12:49 am
- Forum: ESP32 Arduino
- Topic: Arduino support for ESP32C6
- Replies: 10
- Views: 2440
Re: Arduino support for ESP32C6
Platformio supports esp-idf. To me the biggest problem it would be 3rd party libraries that you would lose.
- Mon Jun 10, 2024 1:47 pm
- Forum: ESP32 Arduino
- Topic: 12v variable analog output to esp32 s3 boards.
- Replies: 3
- Views: 801
Re: 12v variable analog output to esp32 s3 boards.
You will have to get familiar with the esp32 inputs types and what voltage levels they can accept. You will also need to change each signal from your bike before connecting to the esp32 board. That means you will have to breadboard or design a custom board just to "condition" each signal that you b...