This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TL431: The TL431 in a feedback network

Part Number: TL431

Tool/software:

Hey,

I’m currently working on my project as an undergraduate EE student, and would like to ask a question regarding the TL431.
My project is about a FLYBACK SMPS capable of providing a wide output voltage range (5-50V), controlled by a MCU.
For output voltage feedback, I’m using the configuration of the TL431, and an optocoupler, as you can see in the attached image. 
My desire in this configuration, is to keep the voltage at the TL431 cathode, stable on 2.5V, therefore, a change in output voltage will translate to more - less current in the optocoupler - which I can sense and compensate in the MCU.
My question is, is the desired TL431 functionality I’ve mentioned possible in this case? I’ve already determined the values of all resistors. 
Please advise if there are any more adjustments I should make.
Thanks in advance.