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.

CCS/LAUNCHXL-F28027: CCS/LAUNCHXL-F28027

Part Number: LAUNCHXL-F28027

Tool/software: Code Composer Studio

I want to configure 4epwms and timer0. Timer 0 is of frequency 1kHz and the epwms are of frequency 10kHz. I have synchronized the 4 epwms. I also want to synchronize the timer0 along with them. hw do I synchronize them? 

  • Ashwin,
    Thanks for reaching out to the C2000 E2E. I don't think there is a way to get them completely synchronized. With the PWMs, there is a built in SYNC signal for this very purpose. The CPU timers, however are local to the CPU itself, so there is no common link.

    The main problem is that there is no way to simultaneously write to both the CPU Timer start and the PWM start at the same time. They will always be 1 cycle apart.

    However, given the relatively low frequencies we are talking about(1kHz and 10kHz) compared to the CPU clock of 60MHz(16.67ns), it may not matter for your system? Given enough time the error would accumulate, but if you are resetting every 10kHz(100us) that should stop there.

    Let me know if I'm missing something, there may be another way to accomplish what you are trying to do w/o the CPU Timer and just the PWM module.

    Best,
    Matthew