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-F28379D: What is the difference between HSPCLKDIV and CLKDIV ?

Part Number: LAUNCHXL-F28379D

Tool/software: Code Composer Studio

Hello,

I was reading about EPWM module of LAUNCHXL-F28379D and i wondered what's the difference between HSPCLKDIV and CLKDIV, can't we just use CLKDIV to divide the EPWMCLK !?

Can you explain!,

TBCLK= EPWMCLK/(HSPCLKDIV * CLKDIV)

thanks,

  • Hi Younes,

    If you read the bit description you'll see that you can use either or both to divide down the clock.  You also get the reason, which is that older C2000 devices had a global HSPCLK that fed the precursor module to the ePWM.

    On this device we still have a global (at least per CPU) LSPCLK (but not HSPCLK) that is used for some of the communications peripherals.