Hello
I'm trying to study the HVPSFB example project from TI. Is there a comprehensive documentation about the PWM setup? I've found the following posts somewhat helpful, but still struggle to understand how it works:
e2e.ti.com/.../932965
e2e.ti.com/.../764058
I understand that the ISR is reconfiguring PWM1 so that the ISR is executed on both rising, and falling slope of PWM1 time base. Also, that PWM2 is in up-count mode so it will have a double frequency, and changing the AQCTLx setup in the ISR makes the right half cycles to appear, right?
Now, looking at the Figure 12 in the HVPSFB User Guide, what I don't understand is how does the Q3 pulse start right after the Q2 reset? On one of the threads it was explained that the PWM2 is synchronized to the comparator output. So, does that shift the PWM2 time base? That would explain why the PWM2 pulses start so early when compared to PWM1? But, if the PWM2 time base is shifted, then wouldn't it mess up all the ISR reconfigurations for PWM2 as they are synchronized to PWM1?
I have replicated the peak current functionality with fixed PWM time bases, but I wonder if I'm missing some crucial part of it.
It would be very helpful if the PWM time base slopes were described in the figure. And it would help if the ISR code and it's timing was described somewhere.
Best regards
Pauli
