Other Parts Discussed in Thread: TMS320F28027
hi,
I am trying to use TMS320F28027 for an application where i need to do frequency control and phase shift control at the same time.This means that i want to change the TBPRD and TBPHS register in every cycle.i followed few examples shown in the datasheet.I used EPWM2 to generate a SYNCOUT signal at CTR=0.This signal was used to as SYNCIN for EPWM3. TBPRD is same for both EPWM2 and EPWM3 and is updated every cycle at CTR=0. EPWM3 is phase shifted from EPWM2.
Following are my observations:
1)when i tried to change both TBPRD and TBPHS. I observed that EPWM2 works properly by showing proper duty cycle while EPWM3 at some instances shows a low for several cycles on EPWM3A and a high on EPWM3B even when both EPWM2 and EPWM3 have same duty cycles and switching frequency
2)when i change TBPRD but keep TBPHS constant,i see the same problem
3)when i keep both TBPRD and TBPHS constant,i see a proper phase shift between EPWM2 and 3 and no instances where EPWM3A goes low for several cycles which means every thing works properly.
Can you suggest where am i going wrong?or what extra i can do to avoid this problem?Can this chip be used to do change frequency and phase both at the same time?
Thanks
Misha