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.

TMS320F2800137: Is there any example code for DSHOT receiver?

Part Number: TMS320F2800137

Tool/software:

Hi expert,

My customer's application is Drone.

The communication interface with host ic is DSHOT.

Is there any example code for DSHOT receiver? If no, can it be done with eCap or other suggestion?

BR,

frank

  • Hi Frank,

    I cannot say for sure if eCAP can be used as a DSHOT receiver. But I can give you a short summary of the eCAP features that may be useful if you're considering to use eCAP in this use case scenario.

    eCAP can be used to capture any digital waveforms. Up to four edges can be captured to characterize the waveforms either grabbing a time difference between edges, or a cumulative count of the timestamp each edge has occurred on.

    You can capture patterns like high/low/high/low and characterize the pulse width between each high/low edge for example. Here is a quick summary of additional features.

    1. Features of the eCAP module like time-stamping external events, measuring signal periods/frequencies, decoding duty cycle encoded signals, generating PWM outputs, etc.
    2. Details on the capture mode operation - event qualification, edge polarity selection, continuous/one-shot capture sequences, time-stamping modes (absolute, delta), interrupt generation, etc.
    3. Details on the auxiliary PWM (APWM) mode to generate single PWM outputs using the eCAP module.
    4. Application examples illustrating use cases like measuring periods, frequencies, duty cycles using the capture mode.

    Best,

    Ryan Ma

  • Ryan,

    Dshot would send 16bit data with 600khz(600k baud rate)

    so, 4 edges are not enough. Can I put the capture data to dma and capture 16bit data?

    Can CLB capture 16bit data?

    BR,

    Frank

  • Hi Frank,

    Yes you can use DMA to transfer the captured data.

    CLB can capture 16 bit data.

    Best,

    Ryan Ma

  • Ryan,

    please show me the example how to capture the 16b data by using eCap+DMA and clb.

    Br,

    Frank

  • Hi Frank,

    Unfortunately I do not have a specific example using eCAP + DMA + CLB.

    But we have examples of each peripheral that should get you to a good starting point on how to incorporate these three together. DMA should be easy to configure since it can be triggered on a ECAP DMA EVT. 

    This device does not have DMA. Are you planning to migrate to another device with DMA + CLB?

  • Ryan,

    The lowest cost should be F280025C.

    To receive DShot, eCAP + DMA already can do, right?

    CLB is just another way, right?

    Or I need to use eCAP+DMA+CLB to receive DShot 16bit data?

    BR,

    frank

  • Hi Frank,

    Yes you could use eCAP + DMA.

    CLB is just another flexibility option.

    Best,

    Ryan Ma