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.

TMS320F280025: HRCAL and HRPWM clock

Part Number: TMS320F280025

Hello,

In the Technical reference manual, HRCAL module and HRPWM module shown in the same figure.

1) What is HRCAL module and use of it? is it necessary to enable HRCAL clock to use HRPWM functionality?

In 2X controller PCLKCR0.HRPWM bit is given to enable clock to HRPWM. but in 15X this bit is not available instead of PCLKCR0.HRCAL bit is there. Is both bit has same functionality? pls clarify.

2) Also please let me know which clocks needs to enable to use HRPWM feature.

BR.

  • Hi Jay,

    Are you enabling each PWM module's clock independently, or enabling all PWM clocks using the TBCLKSYNC bit? From looking at our software examples, enabling the HRPWM or HRCAL bit is not necessary when using TBCLKSYNC.

    Thank you,

    Luke

  • Hi Jay, 

    My apologies, HRCAL does need to be enabled for HRPWM to function. This is enabled by default in the Device_init() function which is called by most of our software examples.

    Thank you,

    Luke

  • Hi Luke,

    Thanks for the response. I have few doubts,

    1)In the F28002X controller, there is the PCLKCR0.HRPWM bit available, while for the F28003x series, there is the PCLKCR0.HRCAL bit (with the HRPWM bit not available). Are both bits serving the same purpose, and is the name just changed for the 3x series?

    2) If both bits serve the same purpose, then for both controllers' Technical Reference Manuals (TRMs), it is mentioned that HRCAL has a separate clock. However, no separate bit is found to enable the clock for HRCAL in the F28002x series.

    3) Could you please provide a brief explanation of the function of the HRCAL module?

    Best Regards, 

  • Hi Jay,

    From looking at the TRM I don't see a mismatch between F28002x and F28003x for PCLKCR0. HRCAL is used in this register for both devices.

    Could you point out where HRCAL is missing from the F28002x TRM?

    There is not much explicit documentation of the HRCAL module in the TRM, I will see what additional information I can find to give you a better description of the module.

    Thank you,

    Luke

  • Hello Luke, 

    Yeah it would be great if you can provide some info on HRCAL module.

    For your other question, I am attaching PCLKCR0 register bit info for both 2x and 3x controller. Pls have a look. There is no additional bit is given to enable clock for HRCAL module in 2x series unlike 3x.

    BR.

  • Hi Jay,

    Are you using the latest version of the TRM? Looks like you are using a version from October 2020. Not sure where this error would've came from but this bit is named HRCAL in the latest version of the F28002x TRM.

    The HRCAL module performs the calibration logic that determines how many MEP steps are within one EPWM coarse step, which is contained within the HRMSTEP register.

    Let me know if you have any further questions.

    Thank you,

    Luke