-->
Page 5 of 5

Re: I2S for generating waveforms for ledpixel devices

PostPosted: Thu Sep 03, 2020 1:22 pm
by eriksl
According to the sparse documentation, DMA indeed uses the FIFO but I actually doubt it.

SLC is simply one another of those things Espressif refuses to give information about, without really a cause.

Re: I2S for generating waveforms for ledpixel devices

PostPosted: Fri Oct 08, 2021 7:04 pm
by ckrusch
Is there a place we can download or view your working code? I've been struggling to get the I2S TX interrupt operational.

I have a project where I'd like to multiplex the i2s output but need to use the FIFO and I2S interrupts in order to enable different output buffers at the correct time

Re: I2S for generating waveforms for ledpixel devices

PostPosted: Mon Oct 11, 2021 11:28 am
by eriksl
This may help ;)

https://github.com/eriksl/esp8266-unive ... i2s.c#L154

Problem with I2S interrupts is that they're shared with the SPI interface (not HSPI, so it's the SPI interface that's used for flash access). Luckily it's only the SPI "slave" interrupts and they're normally not used, although they appear to fire once, when you enable them, so make sure you have set up a proper handler before enabling them.