OP amp as comparator.

Ian0

Joined Aug 7, 2020
13,317
I'll check out the datasheet.
And there is no analysis there, so no happiness here. The internal block diagram which you did not originally post shows that the FB pin has a 20K pullup to approximately +5VDC which comes from the internal Vcc generator. It also connects to a high impedance input on the Skip Cycle Comparator. As I understand what I have read, the controller will begin skipping cycles when the pin is pulled below 1.1 volts. In addition pulling the FB pin to GND would require only 250 uA, so I am left to conclude that the magnitude of the current out of the opto is entirely relevant. How this all works seems to depend on the values of the components on the output side specifically the resistor and the zener diode. I must still be missing something although I believe you can make this part work, I don't see how you can accommodate a wide range of CTR values. If you know what the range is ahead of time maybe you can work with it.
Consider the feedback as voltage driven. When the voltage on the output exceeds the sum of the opto LED's forward voltage drop and the zener voltage, the increase in current through the opto is quite abrupt. Figure 4 of https://docs.broadcom.com/doc/AV02-0265EN shows it as almost vertical. At that point the series resistor will have the most effect on the current.
The CTR of the 817 varies from 50% to 600%, and it's probably only half that value at 250uA, so it can take anywhere from 80uA to 1mA to get the input of the FB pin to its operating point.
With a series resistor of 100ohm, it only takes 0.1V to increase the current from 80uA to 1mA.
So if you're switched-mode is nominally a 12V output, you would get 0.1V less output if you had an enthusiastic opto than if you had a duffer; but you would already have a 5% variation due to the zener voltage tolerance, and that's +/- 0.6V so 0.1V variation due to the opto isn't so bad.

Now if you had a TL431, which has getting on for 60dB of open loop gain, then it will only take 100uV change at its control pin to swing the output current from 80uA to 1mA to get 250uA out of the opto, whatever its CTR, so allowing for a approx 5:1 voltage divider to get 12V to 2.5V for the TL431, it should be accurate within 500uV regardless of the CTR.

I just found this, and it's well worth a read:
https://www.onsemi.com/pub/Collateral/TND381-D.PDF
 
Last edited:

Papabravo

Joined Feb 24, 2006
22,116
The technique has been around so long that the analysis tends to be in the older application notes. In newer devices' datasheets it seems to be "taken as read".
Here's a few useful ones that I found
https://static5.arrow.com/pdfs/2004/0424/semi_ap/cs/fsc/application note/an-4103.pdf
https://www.infineon.com/dgdl/Infin...N.pdf?fileId=5546d46266f85d6301670783808317e8
There's three levels of accuracy in SMPS design: the lowest just uses the auxiliary winding, which (sort of) tracks the output winding. Above that is the zener and opto, and finally the TL431 if you need real accuracy.
The NCP1200 datasheet https://www.onsemi.com/pub/Collateral/NCP1200-D.PDF shows how it can be used both with and without an opto.
Thanks. I will take a look.
the NCP 1200 datasheet has what I was looking for thanks.
As I'm, looking at all of this I get a sense of déjà vu from the diagrams and realize that I have not yet made it to section 3.7 of Basso, where this is laid out in great graphic detail. Timing is everything. Thanks guys.
 
Last edited:
Top