AM2612: AM2612 / EPWM8 / Abnormal Waveform.

Part Number: AM2612
Other Parts Discussed in Thread: SYSCONFIG

Champs:

My cust reported this abnormal EPWM8 observed.

Please check the attached sysconfig, Cust code, and the waveform Cust measured.

Thanks.

BR Rio

Cust_Code_Of_EPWM8.txt

L5_motor_control_sysconfig.txt  <== please rename the file ext name as .sysconfig. 

****************

I would like to configure EPWM8 to output a 10 MHz signal (50% High / 50% Low duty cycle). The SysConfig file is attached, and the generated configuration code is pasted at the bottom.

However, when measuring the physical waveform, while it normally outputs 10 MHz, two types of abnormal waveforms occur intermittently (as shown in the images below).

Could you please help check with TI RD if any setting is incorrect or if additional configuration is required? Thank you.
 
image.png
 
  • plz check if this patch helps or not.

    QUICK REFERENCE - 5 CHANGES REQUIRED:
    ======================================

    CHANGE 1 - Lines 334-335 (Zero HRPWM Compare Values):
    FROM: HRPWM_setHiResCounterCompareValue(HRPWM_COUNTER_COMPARE_A, 5);
    HRPWM_setHiResCounterCompareValue(HRPWM_COUNTER_COMPARE_B, 1);
    TO: HRPWM_setHiResCounterCompareValue(HRPWM_COUNTER_COMPARE_A, 0);
    HRPWM_setHiResCounterCompareValue(HRPWM_COUNTER_COMPARE_B, 0);


    CHANGE 2 - Line 338 (Disable Period Control):
    FROM: HRPWM_enablePeriodControl(CONFIG_EPWM8_BASE_ADDR);
    TO: HRPWM_disablePeriodControl(CONFIG_EPWM8_BASE_ADDR);


    CHANGE 3 - Line 339 (Set TBPRDHR to Zero):
    FROM: HRPWM_setHiResTimeBasePeriod(CONFIG_EPWM8_BASE_ADDR, 11);
    TO: HRPWM_setHiResTimeBasePeriod(CONFIG_EPWM8_BASE_ADDR, 0);


    CHANGE 4 - Lines 332-333 (Disable MEP on BOTH Channels):
    FROM: HRPWM_setMEPEdgeSelect(CONFIG_EPWM8_BASE_ADDR, HRPWM_CHANNEL_A,
    HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE);
    HRPWM_setMEPEdgeSelect(CONFIG_EPWM8_BASE_ADDR, HRPWM_CHANNEL_B,
    HRPWM_MEP_CTRL_DISABLE);
    TO: HRPWM_setMEPEdgeSelect(CONFIG_EPWM8_BASE_ADDR, HRPWM_CHANNEL_A,
    HRPWM_MEP_CTRL_DISABLE);
    HRPWM_setMEPEdgeSelect(CONFIG_EPWM8_BASE_ADDR, HRPWM_CHANNEL_B,
    HRPWM_MEP_CTRL_DISABLE);


    CHANGE 5 - Line 12 (Fix Counter Mode After Sync):
    FROM: EPWM_setCountModeAfterSync(CONFIG_EPWM8_BASE_ADDR, EPWM_COUNT_MODE_DOWN_AFTER_SYNC);
    TO: EPWM_setCountModeAfterSync(CONFIG_EPWM8_BASE_ADDR, EPWM_COUNT_MODE_UP_AFTER_SYNC);


    PATCH RATIONALE:
    ================
    ✓ From Option 1: Disable period control (removes fractional period instability)
    ✓ From Option 2: Zero all HRPWM compare values (removes edge jitter)
    ✓ From Option 2: Disable MEP on BOTH channels (ensures perfect symmetry)
    ✓ Zero TBPRDHR (removes period fractional component)
    ✓ HRPWM module remains enabled for future duty cycle adjustments via CMPAHR/CMPBHR
    ✓ Guarantees stable, symmetric 10MHz output with zero swing

  • Thank you for your attention to TI products. We are verifying your issue, please wait for our reply.