When compensating switch mode power supplies we usually use IC that incorporates error amplifiers, but sometimes there are ICs that come up without internal error amplifiers and so we can either use TL431 or an external OP AMP for compensation.
My question is when TL431 is recommended over an OP AMP ?
As far as I know OP AMP are more flexible than TL431 for designing a compensation loop and this is due to the incorporated pole of TL431, but beside this drawback, TL431 is widely used specially in flyback topology.