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.

TMS320F28P650DK: generation of PWM waveforms in parallel CLB tiles

Part Number: TMS320F28P650DK

Tool/software:

Hello all,

I was hoping someone can help me trying to synchronise counters across multiple CLB tiles.

Each of my CLB tiles (1 to 4) have 2 counters and 2 FSM's generating a PWM waveform according to the counter match1 and match2 timings. These get routed to GPIO's via the CLB OUTPUTXBAR.

The goal is to generate 8 parallel waveforms within the 4 CLB tiles.

There are 2 inputs to each tile:

  • Memory Mapped GPREG BIT (For changing the counter match1 and match2 via the HLC)
  • EPWM1A

I am using the external ePWM together with an FSM to permanently enable the counters in each of the tiles simultaneously and thus synchronise the CLB generated PWM's.

However all the generated PWM's are slightly shifted so the counters must be starting at slightly different times.

Is there a better approach to ensure the counters in multiple clb tiles start simultaneously?

Many thanks,

Fabio

  • Hi Fabio,

    How much are the PWM outputs shifted by in nanoseconds? If it's a very small difference then this might be due to the propagation delay of the CLB Output X-BARs. Are you using synchronizing the CLB Input(EPWM1A signal)?

    Thank you,

    Luke