This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Duty Cycle Control

Hi everyone,

I am using XC164CS DSP. I need to programme in such a way that duty cycle can be controlled. According to application, its a close loop current or voltage control but I didnt manage to do it in order to get the phase shift between the two legs of the converter. I need to get the phase shift by calculating duty cycle. it's a 20khz frequency of the signal

Can anyone help me on this?

Thanks,

Vivek

Parents
  • your duty cycle depends on the ratio between the value of the PWx (x=channel) register and the value of the peiod register PPx. if the input signal into the PWM peripheral is 20000 Hz, your signal width will be (20000 Hz) / ( value of period register).

Reply
  • your duty cycle depends on the ratio between the value of the PWx (x=channel) register and the value of the peiod register PPx. if the input signal into the PWM peripheral is 20000 Hz, your signal width will be (20000 Hz) / ( value of period register).

Children