Try Google " an-4137"This is (currently) throwing a 404 Error.
In this PDF show how you use TL431 + optocoupler in a SMPS feedback loop.
It works this way: when the output voltage is too low, the tl431 outputs a logic high and the led is off.
when the output voltage is too high, the comparators output is low, turning on the led, which typically controls the duty cycle thus reducing the output.
digital mode totally works here.
And I don't understand something. How can you say that TL431 + optocoupler in SMPS do not work in linear region ?As several others have already commented, the use in the posted references with a KA431 shunt regulator are not using the optoisolator in a linear mode.
And this circuit is not a constant current source. Or maybe I misunderstood something

