I officially declare this project to be a failure. Assembled the board, and meanwhile the f*king regulator decided to deliver 24V to the whole 5V bus rail, so I had to replace many of the ICs.
Second try, managed to compensate IC4 successfully using a 10nF capacitor in the feedback loop (a 3,3nF one would do, although marginally). However, when loaded, I was having interferences caused by the DC-DC pre-regulator, causing the output voltage to drift a few 10s of mV. Even soldering a 10uF capacitor in parallel with C16 and replacing R15 with a 22K resistor wouldn't solve the issue. Disconnecting the Vret line to the DC-DC made the issue go away. Meanwhile disconnected the 24V line feeding the regulator and pfff. Again!
So, there are some frailties:
- The DC-DC pre-regulator idea must go away;
- The INA180A1 can surge the 5V line if the supply is disconnected, taking the regulator with it. Then, when the regulator is powered, it fries itself and everything on the 5V line;
- The CC must go away, all of it, despite the fact that it works. A simple SC protection should work.
The good news:
- Apparently, a single 47uF capacitor at the output is enough to stabilize the supply, provided that IC4B is compensated using a 3,3nF to 10nF capacitor;
- The temperature limiting works great.
Learned the lesson. Project ditched. Thread closed!
Kind regards, Samuel Lourenço