Hi! I'm repairing an smps based on the TOP232 controller.
mouser.com/datasheet/2/328/top232-234-1512691.pdf
The schematic is almost the same as the suggested in the PDF.
I've had to change the controller, a 220ohm resistor between the 230v rectified line (i think that's for limit the current), and an opamp after the transformer. The sensitive things are safe as after the smps there was a 3.3v ldo (that is ok). Also the transformer was burnt, so i've had to rewire it, as i wasn't able to find a valid substitute. For the primary side i wasn't able to measure the number of turns, as was an unique block of molten things, but i was able to measure the total lenght of the wire, with a little approssimation, i think that is enough to make it work. On the secondary side i was able to count the turns of the 2 windings.
Now, the smps starts ok, i get on the "control" winding 17.5v (there is a 20v tantalum cap, so i think that is quite ok), but on the 5v line i have near 4.3 volts (must be 5v). The strange thing is that when i turn off the supply, when the >300v line starts to drop due to capacitor discharge, the smps start working perfectly, giving a perfect 5v output, until the voltage drops too much. On the 220ohm resistor with main line connected i have a voltage drop of near 1.3v, when the 300v line start dropping it goes to a 2.5v drop (as the logic is working it consumes more current).
What can cause the problem? The winding ration of the transformer? Maybe i can do a better thing, isolate the onboard smps and put a 5v external smps, buth would be nice to make it work....
Thanks!!