Software SPI

alimoallem
Posts: 2
Joined: Sun Oct 01, 2023 8:57 am

Software SPI

Postby alimoallem » Sun Oct 01, 2023 9:13 am

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.

Who is online

Users browsing this forum: Baidu [Spider] and 245 guests