This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I use the HRPWM of the piccolo F28069 to generate a phase shift between the pwm channels for a full bridge converter. (I introduce a phase delay in high resolution between channel 2A + 3A and 4A +5A). Now I need to change the duty cycle of all channels in high resolution, too.
I wonder if this is possible and what’s the correct setting for the CTLMODE bit?
Is there any other solution feasible? Eventually by using the CMPBHR register (see Fig. 4-4 of HRPWM). Unfortunately I cannot find further information about this topic. Now I use the CMPA register in COUNT_UPDONW mode to generate the duty cycle which is symmetric around the PRD-event.
Thanks for any information…
Hi Berlin,
You can get both hi-res duty control and hi-res phase control by setting CTLMODE to duty control (CMPAHR) and also enabling hi-res period control (HRPE = 1). Make sure you select 'both edge control' for EDGEMODE. You will also need to follow the configuration procedure (sequence) described for high resolution period control.
Hrishi
Hi Hirishi,
thanks for your answer! But did you really try this? Because this is exactly what I did. But as soon as I set CTLMODE to duty control (CMPAHR) the value in TBPHSHR is ignored and the phase shift is only generated by the value in the TBPHS without high resolution.
Kind regards - Berlin
Hi Berlin,
Yes I have done this in the past. You can have hi-res phase shift, hi-res duty and hi-res frequency all at the same time. However, to achieve this you will need to add some more software resulting in software overhead every time you change the frequency and/or the phase shift. This gets a bit difficult to manage with higher switching frequencies.
What is the highest switching frequency you are working with?
As a side note we are planning on releasing an example to show how to achieve this on our newer devices (F2837x, F2807x). This should be available in a few months.
Hrishi
Hi!
I am having the same problem.
I can control both HR period and duty, but the hrphase is ignored, it only takes the value of the TBPHS register.
The frequency that I am using is 1MHz.
Any solution to this thread?
Thanks!