Hi everyone I recently started messing around with electronics, i wanted to design a power supply using the lm2576t-5. I built one of the example circuits in the datasheet but the Vout was not 5V, it was approximately Vin-4v. So i decided to change a component, i swapped out the 1000uF 65V Cout cap for a 100uF and sure enough I got my Vout to stay at 5V. So my first question is why was this the case? In terms of power dissipation how is this calculated? in the datasheet there is a formula for Pd, when i use it with my values it gives Pd of 0.38Watts. Pd = (20V*0.009A)+0.25*0.4A*2V However when i touch the heatsink it is very hot while I'm supplying 20V input and outputting 5V with load pulling 0.4A.