This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049C: Dshot protocol implementation

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hello All,

I want to implement Dshot protocol receiver. I have configured eCAP Module and it's working well. To read every bit of data pulse width need a more frequent interrupt.

my controller is working 100MHz, I need to use Motor Control and CAN.

to avoid this eCAP interrupt I want to Use DMA. could you please guide me on how to implement eCAP with DMA. or is any other better option.

Please share some reference codes.

Thank you,

Regards

Rajakumar Ramu

  • Rajakumar,

    ECAP can trigger a DMA channel and you can read the pulse width without frequent CPU interrupt using DMA. So, this is possible. But, unfortunately we don't have C2000Ware example which showcases how to do that.

    However, I would urge you to try spi_ex3_loopback_dma example code mentioned in below C2000Ware path. This should show you how to configure DMA to work on SPI TX event. Once you understand this code, you should be able to adapt this code to work with ECAP.

    <C2000Ware>\driverlib\f28004x\examples\spi

    Example: spi_ex3_loopback_dma

    Regards,

    Manoj