Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi.,
I am working on TMS320F28379D controller using Code Composer Studio 12.3 IDE. I already worked on a ePWM (Pwm1 A,B Pwm2 A,B & Pwm3 A,B)for 6 channels and they are working fine. I am using updown counter mode, 100MHZ epwm clock frequency and 200 kHz output pwm frequency. In my code there was mentioned like PWM1 act as master and other 2 are slaves using some sync settings. Now i want to add a HRPWM feature in that 6 channels. using example code, i modified my code and tested but it was not working. In ePWM generally we put period value in HBPRD register and we can change duty by changing CMPA register value. but slightly i confused with HBPRDHR and CMPAHR register as what value i want to load. Also i dont want to use auto-conversion feature using SFO library. Due to adding HRPWM feature, anything i want to modify in ePWM registers? Is phase need to be enable? what are the configuration must need to do? kindly suggest.