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