Page 1 of 1

Software SPI

Posted: Sun Oct 01, 2023 9:13 am
by alimoallem
Hi folks.
In my case, I should use SPI peripherals for some devices separately. As the number of SPI peripherals is limited, I want to implement software SPI with GPIO, Timer (if needed), DMA, etc.
Truly I couldn't find any good solution. I implemented It with GPIO but the Software SPI frequency is approximately under 1Mb/s and I need more.
I'm wondering if it's possible to use PWM generator for that. I also find https://docs.espressif.com/projects/esp ... cb_event_t and https://docs.espressif.com/projects/esp ... hlight=pwm, but LEDC does not give me the interrupt to handle it and MCPWM is a little complicated.
Does anybody know how can i use it? And about DMA, Can I use that in my purpose?
Thanks who help.