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.

TMS320F28069: is it necessary to make TBCLKSYNC=1 before doing HRCAP_Cal()

Part Number: TMS320F28069

I am using HRCAP Type 0 for 2803x and 2806x.

When I give input to the HRCAP Pin externally through the function generator then it detects the signal correctly

If I give a signal through the ePWM block and then connect the pin from ePWM externally to the HRCAP pin, Calibration never happens (status =0 always ) unless I do TBCLKSYNC=1 before calling the HRCAP calibration function.
I can observe the same in example_2806xHRCAP_HRPWM if I manually set PCLKCR0 to 0x5719 ( TBCLKSYNC=0) after line 262 (HRPWM_Config() which makes TBCLKSYNC=1 ), then calibration doesn't happen with status as 0 always.

so my doubt is, is it necessary to make TBCLKSYNC=1 before doing HRCAP_Cal(),  if we are using ePWM to generate the waveform?