Other Parts Discussed in Thread: PMP20873
Hi,
Implementing Totem pole PFC using the PMP20873 reference design (UCD3138 controller). Since the sensed current sinusoidal (not rectified as in traditional PFC). Facing problem in writing code for reference current generation.
Referred this article https://www.ti.com/lit/an/slyt718/slyt718.pdf?ts=1625152269540 and got some help in understanding the logic of sinusoidal reference current .
But not able to generate the negative half error which is: Error = Feedback – Current Reference (4) (from above article)
So need help regarding how to generate Error = Feedback – Current Reference in UCD3138.
Please provide a sample code just for sinusoidal reference current and error generation. That would be helpful.
Thanks and regards
Ishtiyaque Ahmad