Hi,
I'm working with a project where I'm building an spwm inverter using 8051 (at89c2051) uC IC.
Now I'm planing to add a feedback system to regulate the output voltage. My thought was using an optocoupler to read the transformer secondary voltage and compare the output of the opto with a reference voltage using uC's internal comparator. As voltage error detected by comparator, uC will controls the pwm at MOSFET (IRFZ44) gate accordingly. Now the problem is output current of the opto (el871) is not proportional to the input current. So, I'm not comfortable using this technique (or should I use it? Please let me know).
I also searched internet and found tl471 is used along with tl871 in many feedback applications. But I'm not confirmed whether it would be doing good in my case.
Thanks in advance.

I'm working with a project where I'm building an spwm inverter using 8051 (at89c2051) uC IC.
Now I'm planing to add a feedback system to regulate the output voltage. My thought was using an optocoupler to read the transformer secondary voltage and compare the output of the opto with a reference voltage using uC's internal comparator. As voltage error detected by comparator, uC will controls the pwm at MOSFET (IRFZ44) gate accordingly. Now the problem is output current of the opto (el871) is not proportional to the input current. So, I'm not comfortable using this technique (or should I use it? Please let me know).
I also searched internet and found tl471 is used along with tl871 in many feedback applications. But I'm not confirmed whether it would be doing good in my case.
Thanks in advance.

