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.

TMS320F280039C: Using CLB function to generate a quadrature signal

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Hi team,

Here's an issue from the customer may need your help:

Issue: using the CLB function to input a single PWM signal, output two orthogonal PWM signals, and the output quadrature signal frequency is adjustable.

The customer would like to know if the above functionality can be implemented, if so, how to do?

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    Would you want the output signals to match the frequency of the input signal? If so, I believe this is possible to implement with the CLB. You could use some combination of the counter and FSM blocks to add a delay to the input signal and output this signal to a GPIO through the CLB Output XBAR.

    Regards,

    Peter

  • Hi Peter,

    Thanks for your support.

    Yes, customer want to use the CLB to implement the divided output of the servo drive. Referenced C2000Ware_4_01_00_00 routines for CLB, but not sure how to handle delays.

    Thanks and regards,

    Cherry

  • Hi Cherry,

    The delays can be achieved by using a counter and setting a match value so that upon the ePWM switching, the counter counts up to the match value and toggles the orthogonal output when the match value is reached. You can use an FSM to maintain the correct output (high or low) for the orthogonal quadrature output. To enable this implementation to be dynamic, you will most likely need to use an eCAP to derive the necessary waveform details such as frequency and period, and feed that data into the match parameter of the counter module periodically. I believe there is a CLB example coming out soon showcasing the CLB emulating this capture functionality. I hope this helps, it would also be helpful to provide a diagram of the desired functionality

    Regards,

    Peter