Tool/software:
Hi experts,
Please confirm the following points from this thread.
You cannot use CMPAHR and CMBHR for single EPMW output like EPMWA on Type-4 ePWM. CMPAHR is assigned for EPWMA, and EPWMB is assigned for CMBPHR. Setting CMPAHR and CMPBHR to be equal give same effect as setting and clearing solely on CMPAHR.
Q: Am I correct in understanding the following two points?
- The above condition applies only when "Frequency Hi-Res" and "Compare Match Hi-Res" are used in combination.
- In the case of "Compare Match Hi-Res", the values of CMPAHR and CMPBHR can be reflected in EPWMA.
"Frequency Hi-Res" refers to setting "HRPCTL.bit.HRPE=1" and using TBPHSHR.
"Compare Match Hi-Res" refers to using CMPAHR/CMPBHR.
My customer has a concern when using "Frequency Hi-Res" and "Compare Match Hi-Res" in combination to output a PWM waveform from EPWMA, which led to the above question.
- If the TBPHSHR register is set to 0 and different values are entered into the CMPA/CMPB and CMPAHR/CMPBHR registers... no jitter occurs at the rising or falling edges of the pulse.
- If the HRPE bit of the HRPCTL register is set to 0, an arbitrary value is set into the TBPHSHR register, and different values are entered into the CMPA/CMPB and CMPAHR/CMPBHR registers... no jitter occurs at the rising or falling edges of the pulse.
- Set AQCTLA.bit.ZRO to AQ_SET (or AQ_CLEAR), CMPBHR=0... jitter occurs on the CMPB side at the rising and falling edges.
- Set AQCTLA.bit.CBU to AQ_SET (or AQ_CLEAR), CMPBHR=0, and an arbitrary value (other than TBCNT=0-3 and TBPRD-TBPRD-3) is entered into CMPB... jitter occurs.
→ Why does jitter occur? - Set arbitrary values to CMPA and CMPHR... no jitter occurs on the CMPA side.
4. If you enter arbitrary values into CMPA and CMPB and set CMPAHR and CMPBHR to 0, no jitter occurs on the CMPB side.
→They believe that this is not
Please let us know if there is any information missing or if you have any questions.
Best regards,
O.H