DMA to GPIO for generating dshot signal
Posted: Thu Sep 07, 2017 9:05 pm
Hello everyone,
I'm new to esp32 and I can not find simple examples that could help me to generate a dshot signal using DMA to GPIO transfers.
The dshot protocol is digital protocol to comunicate with ESC used to drive quadcopter motors for example:
And some technical infos about this protocol:
https://blck.mn/2016/11/dshot-the-new-kid-on-the-block/
DMA transfers seem to be the way to go to generate this signal for 4 motors.
With my understanding of DMA to GPIO process, the idea is to use a timer that would trig 3 DMA channels to operate this scheme:
I only found some examples involving I2S transfers using DMA but I do not have any idea of how to do DMA to GPIO transfer of a bits array to GPIO registers (GPIO_OUT_W1TS_REG ?).
Any help would be apreciated because I'm lost , thanks in advance!
I'm new to esp32 and I can not find simple examples that could help me to generate a dshot signal using DMA to GPIO transfers.
The dshot protocol is digital protocol to comunicate with ESC used to drive quadcopter motors for example:
And some technical infos about this protocol:
https://blck.mn/2016/11/dshot-the-new-kid-on-the-block/
DMA transfers seem to be the way to go to generate this signal for 4 motors.
With my understanding of DMA to GPIO process, the idea is to use a timer that would trig 3 DMA channels to operate this scheme:
I only found some examples involving I2S transfers using DMA but I do not have any idea of how to do DMA to GPIO transfer of a bits array to GPIO registers (GPIO_OUT_W1TS_REG ?).
Any help would be apreciated because I'm lost , thanks in advance!