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.

TMS320F28075 HRPWM period mode

Other Parts Discussed in Thread: TMS320F28075

Hi Champ,

My customer is using TMS320F28075 HRPWM master with period mode.

In this case, they see the some jitter on PWM output when they set ZRO or PRD to AQCTLA/B. And they does not see the jitter when they set CAU/CAD to AQCTLA/B.

The user should not set ZRO or PRD to AQCTLA/B to avoid to generate the jitter on PWM output?

If additional condition or setting to avoid the jitter, could you please let me know it?

Regards,

Furuya

  • Sorry, I found Figure 14-10. Up-Down Count Duty Cycle Range Limitation Example (HRPCTL[HRPE]=1) in TRM, and I understood user should avoid the action at ZRO and PRD.

    Let me ask about the following NOTE in TRM 14.2.4.4.1 High-Resolution Period Configuration.

    NOTE:
    When high-resolution period mode is enabled, an EPWMxSYNC pulse will introduce +/- 1 - 2 cycle jitter to the PWM (+/- 1 cycle in up-count mode and +/- 2 cycle in up-down count mode). For this reason, TBCTL[SYNCOSEL] should not be set to 1 (CTR = 0 is EPWMxSYNCO source) or 2 (CTR = CMPB is EPWMxSYNCO source). Otherwise, the jitter will occur on every PWM cycle with the synchronization pulse.

    In my understanding, only the slave PWM module has some jitter caused by EPWMxSYNC singal, so the master PWM module has no jitter because the master PWM module does not have SYNC signal from anywhere. Is that correct?

    Regards,
    Furuya
  • Hi Furuya,

    Your understanding is correct. The SYNC related jitter is to the slave receiving the SYNC.
    There is no impact on the Master generating the sync pulse.

    -Bharathi

  • Hi Bharathi,

    Let me ask again. Now customer see the jitter on PWM pulse when they use the attached code.

    8461.hrpwm_updown_count_sfo_v8.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    /********************************************************************************
    * FILE: hrpwm_updown_count_sfo_v8.c
    *
    * TITLE: F2807x Device HRPWM SFO V8 High-Resolution Dead Band
    * (up-down count) example
    *
    * ASSUMPTIONS:
    *
    * This program requires the F2807x header files, including the
    * following files required for this example:
    * SFO_V8.h and SFO_v8_fpu_lib_build_c28.lib
    *
    * Monitor ePWM1 & ePWM2 A/B pins on an oscilloscope
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Now HRLOAD and HRLOADB is set as HR_CTR_ZERO.  At this time, the jitter is generated on PWM pulse. When HRLOAD and HRLOADB is set as HR_CTR_PRD also, the jitter is there.

    And, if HRLOAD and HRLOADB is changed to HR_CTR_ZERO_PRD from HR_CTR_ZERO or HR_CTR_PRD, the jitter go away from PWM pulse.

    PWM module is configured as Master, so SYNC pulse timing is not related to cause the jitter.

    Could you let me know the reason why the jitter is generated when I set  HRLOAD and HRLOADB is set as HR_CTR_ZERO or HR_CTR_PRD?

    Now I'm referring 14.2.4.4.1 High-Resolution Period Configuration in TRM. This sample is also setting HRCNFG[HRLOAD] = 2 (load on either CTR = 0 or CTR = PRD).

    Is there any reason we should set HRCNFG[HRLOAD] = 2?

    Regards,

    Furuya

  • Furuya,

    This is expected behavior - for HR Period control mode of operation HRLOAD should always be configured to 
    HRCNFG[HRLOAD] = 2 (load on either CTR = 0 or CTR = PRD)

    -Bharathi.

  • Bharathi,

    Thank you for your reply. Could you explain the reason why HRLOAD should always be configured to 2?

    I understand this is the rule at HR period control mode, but I want to understand the reason from the technical point of view.

    Regards,

    Furuya

  • Hi Bharathi,

    Can I have an answer to above question?

    Regards,
    Furuya
  • Primary reason is that, in this mode there are 2 updates needed in 1 PWM cycle - on Zero and PRD.

    -Bharathi.