Author Topic: SMPS based on TOP232  (Read 4431 times)

0 Members and 2 Guests are viewing this topic.

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
SMPS based on TOP232
« on: March 18, 2020, 08:06:14 pm »
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!!
 

Offline aqibi2000

  • Regular Contributor
  • *
  • Posts: 211
  • Country: gb
Re: SMPS based on TOP232
« Reply #1 on: March 18, 2020, 10:37:34 pm »
20V cap on a 17.5V line is not good practice at all.

Did you measure the peak amplitude using an oscilloscope or just going by the RMS value your multimeter is giving? Because you will have 17.5*1.41 = ~25V peak
Tinkerer’
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #2 on: March 19, 2020, 01:18:21 am »
I've measured after the rectifier diode, where is the smoothing cap.
When i remove the power, and the switching start working normally (during the main filter capacitor discharge period), that voltage remain the same.
 

Online Circlotron

  • Super Contributor
  • ***
  • Posts: 3347
  • Country: au
Re: SMPS based on TOP232
« Reply #3 on: March 19, 2020, 02:03:29 am »
Sounds like it is going into overvoltage shutdown mode when the DC input voltage is too high. The example circuit shows a 3M3 resistor from DC input to the M pin on the IC. Is that the value you have? Too low a value would make it shut down at normal DC input voltage.
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #4 on: March 19, 2020, 02:10:25 am »
i get on the "control" winding 17.5v (there is a 20v tantalum cap, so i think that is quite ok)
It's completely not OK and asks for trouble. Even if it was electrolytic, it would be marginal but tantalum caps should be derated by at least 50%, preferably 70% for better reliability. You can sort of use them at 80% of rated voltage but failure rate will be abysmal. And if there is enough current supply, wait for firecrackers.
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #5 on: March 19, 2020, 02:26:23 am »
There shouldn't be 17.5V BTW, schematic in the datasheet has 10V capacitor (page 14).
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #6 on: March 19, 2020, 07:41:19 am »
Look at figure 26, the control winding can produce 15v.
I think that 15v can be the right voltage, i not know why i get 17.5 (actually 17.2) as i have mantained the same turns of original transformer. In this case i think that is important to mantain the same turn ratio of the 2 secondary windings, but i've maintained it. I not think that 17.2 can harm the smps ic as from the schematic there is some sort of internal limiting. Maybe the cap is a bit overstressed, if all other things are ok i change the cap with a different one. But before i need to find why it's not working
« Last Edit: March 19, 2020, 07:46:55 am by masterx81 »
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #7 on: March 19, 2020, 07:43:53 am »
@Ciclotron, I'll check it, thanks!
Checked! Two 1.8m resistor in series, both ok.
« Last Edit: March 19, 2020, 08:05:08 am by masterx81 »
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #8 on: March 19, 2020, 09:42:17 am »
Just one curiosity: What can cause an incorrect wiring direction of the windings?

All other things seem ok, on the secondary side if i power the device with a separate supply i get a 150ma power consumption on the 5v line, and seem in line with the sizing of the core, on the primary side all components seem ok. So i can only think that the rewinded transformer can have some problems. But why it works well when the power supply drops? The diameter of the enameled wires was checked several times (with centesimal micrometer). Maybe i have choosen a little smaller primary wire, so at same wire lenght i have more turns, and the smps ic working at lowest duty possibile. But this ic can work  from 200vdc to 375vdc (by now i am powering it with 320vdc), so must have quite a wide range of duty available. I not think that i was able to go so much off. But i can check with scope the duty that is working.
Next thing i try to power it through a variac and see if it works well with lower voltage...

---


Variac testing done. If i start with 230vac then drop to 130vac, i get a clean 5v. If i start at 130vac, it does not neither start (as expected).
What's going on???
« Last Edit: March 19, 2020, 11:42:25 am by masterx81 »
 

Offline PKTKS

  • Super Contributor
  • ***
  • Posts: 1766
  • Country: br
Re: SMPS based on TOP232
« Reply #9 on: March 19, 2020, 10:55:55 am »
First time I see such mixture of things into a single IC.

IT LOOKS LIKE MUCH MUCH MORE A TYPICAL RCC ...
than the advertised forward...

It made me wonder what kind of typical wave you
may have on the switcher mosfet...

So considering it more RCC it may have the resonator
capacitor mismatched since you rewired the primary coil

RCC things must be matched to proper resonance..
otherwise they go haywire

long guess
Paul

p.s/: actually I remember some time ago from these folks TOP221
being somewhere advertised as innovative  "QuasiResonant"  thing...
may be some published slides presentation of that...  google for it
« Last Edit: March 19, 2020, 11:02:08 am by PKTKS »
 

Online Circlotron

  • Super Contributor
  • ***
  • Posts: 3347
  • Country: au
Re: SMPS based on TOP232
« Reply #10 on: March 19, 2020, 11:24:27 am »
@Ciclotron, I'll check it, thanks!
Checked! Two 1.8m resistor in series, both ok.
Maybe add a bit more?...
Seriously though, maybe the controller is just out of spec and a bit more resistance might do the trick. At least it's easy and cheap to try. Just divide the max rated voltage by the max voltage it actually runs at and multiply the resistance value by that figure. Example... max rated = 400V, actual max = 275V so (400/275) x 3.6 meg = 5.236 meg.
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #11 on: March 19, 2020, 11:58:54 am »
@PKTKS
I've seen a similar thing in a active pfc smps of an lcd tv, but had a big polyester cap that was resonating with the transformer (and was an hell to repair!). In this circuit the only capacitor that i have on the primary side is the c5 on the pdf ref. page 16 figure 26, and seem part of an rc filter. The other caps are smoothing caps on vcc and after the rectifier diode.

I've also edited the previous post with the result of playing with the variac...

@Ciclotron uhm, that multifunction pin is something strange (a lot of functions for a single pin!), eventually i can try to put it to source and disable all the protections, to see if it works.


PS: I have the DIP package, so i not have the FREQUENCY pin
« Last Edit: March 19, 2020, 12:02:01 pm by masterx81 »
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #12 on: March 19, 2020, 12:08:01 pm »
If i well understand, the Multifunction pin now is set in UV, OV, and DCmax limits, as per figure 14. Maybe at full voltage i'm hitting DCmax limit as i have LESS turns on primary side as the original transformer?
 

Offline PKTKS

  • Super Contributor
  • ***
  • Posts: 1766
  • Country: br
Re: SMPS based on TOP232
« Reply #13 on: March 19, 2020, 02:07:51 pm »
@PKTKS
I've seen a similar thing in a active pfc smps of an lcd tv, but had a big polyester cap that was resonating with the transformer (and was an hell to repair!). In this circuit the only capacitor that i have on the primary side is the c5 on the pdf ref. page 16 figure 26, and seem part of an rc filter. The other caps are smoothing caps on vcc and after the rectifier diode.

I've also edited the previous post with the result of playing with the variac...

@Ciclotron uhm, that multifunction pin is something strange (a lot of functions for a single pin!), eventually i can try to put it to source and disable all the protections, to see if it works.


PS: I have the DIP package, so i not have the FREQUENCY pin

Yes I am also puzzled with so many "functions" on a single pin
they sacrifice a clean design for that..  WTF?

47u is too much for frequency compensation...
as far as I can guess..  by position I would guess
but that value is far too much.

Anyway it sure have internal things for
frequency compensation and stuff.

Guessing the inductance value is out of
previous calculation would justify a lot of things
playing a bit those unique components capable
of tweaking the steady state would be my shot.

Paul
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #14 on: March 19, 2020, 02:10:32 pm »
Are you sure some winding isn't connected backwards?
Quote
What can cause an incorrect wiring direction of the windings?
You said primary winding was completely toast. So I wouldn't be surprised you did it  wrong.
« Last Edit: March 19, 2020, 02:12:21 pm by wraper »
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #15 on: March 19, 2020, 02:49:09 pm »
Are you sure some winding isn't connected backwards?
Quote
What can cause an incorrect wiring direction of the windings?
You said primary winding was completely toast. So I wouldn't be surprised you did it  wrong.
No, i'm not sure. That's why i was asking. But as the signals are rectified right after the transformer, it can cause problems? How i can know how was wired?
I think that the typical application circuit is correct, but the dot marking has always puzzled me. If i remember well when i've wired it i've used always the same direction for primary and secondaries. I think i can confirm stimulating it with the function generator
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #16 on: March 19, 2020, 02:55:07 pm »

Yes I am also puzzled with so many "functions" on a single pin
they sacrifice a clean design for that..  WTF?

47u is too much for frequency compensation...
as far as I can guess..  by position I would guess
but that value is far too much.

Anyway it sure have internal things for
frequency compensation and stuff.

Guessing the inductance value is out of
previous calculation would justify a lot of things
playing a bit those unique components capable
of tweaking the steady state would be my shot.

Paul
My cap is 47uF too... strange that a "tuned" component have the same value of the reccomended schematic.
The resistor is low value, can explain why the cap is so big
« Last Edit: March 19, 2020, 02:56:48 pm by masterx81 »
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #17 on: March 19, 2020, 03:10:50 pm »
But as the signals are rectified right after the transformer, it can cause problems?
It's rectified in one direction only. It's not like you have nice symmetric sine on the output, so it does matter a lot in which direction windings are connected in regards to each other.
Quote
How i can know how was wired?
Open the datasheet and there you can see direction (dot) of each winding. Or try connecting primary winding backwards and see what happens.
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #18 on: March 19, 2020, 03:36:31 pm »
As i can understand the dot is the polarity, but how i can know how correlate it with wiring direction?
Let me understand, the polarity is important because on the primary side there isn't a push pull transistor configuration, but only a pull down to gnd, so we have only "power" on one half of the wave. That's why we have only a one diode rectifier on the output. But if it's badly wired, i think that i get almost any current from the secondaries.
I am wrong?
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #19 on: March 19, 2020, 05:34:25 pm »
Consider dot as start of the winding considering all of them are wound in the same direction.
https://en.wikipedia.org/wiki/Flyback_converter
The most important part:
Quote
When the switch is closed (top of Fig. 2), the primary of the transformer is directly connected to the input voltage source. The primary current and magnetic flux in the transformer increases, storing energy in the transformer. The voltage induced in the secondary winding is negative, so the diode is reverse-biased (i.e., blocked). The output capacitor supplies energy to the output load.

When the switch is opened (bottom of Fig. 2), the primary current and magnetic flux drops. The secondary voltage is positive, forward-biasing the diode, allowing current to flow from the transformer. The energy from the transformer core recharges the capacitor and supplies the load.
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #20 on: March 19, 2020, 06:32:55 pm »
Ok, got it..but if the windings of the transformer are wrong, the diode on the secondary side never goes in conduction, as the flyback has no positive part. So no voltage on the secondary. Instead i have voltage on both secondaries, and when it work it can source 150ma of current. It's impossible if the polarity of the windings is wrong. And as told, i'm quite sure to have wound them all in the same direction.
In any case, thanks, because i've (maybe) understood the difference from a normal transformer and a flyback smps transformer  :-+
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #21 on: March 19, 2020, 06:37:38 pm »
Ok, got it..but if the windings of the transformer are wrong, the diode on the secondary side never goes in conduction, as the flyback has no positive part.
Totally wrong assumption. Doesn't it look familiar? https://en.wikipedia.org/wiki/Forward_converter
« Last Edit: March 19, 2020, 06:39:39 pm by wraper »
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #22 on: March 19, 2020, 07:00:57 pm »
Ok. Now i think that i've not understood so well  |O
So, actually is not working by flyback, the core doesn't store energy but passes energy to the secondaries (like a normal transformer?). But how it can generate a negative part so strong to source 150ma of load? And if the negative part is so strong, why not recover it?
I've repaired smps, but actually never knew the magic inside the core of the transformer  :palm:
 

Online wraper

  • Supporter
  • ****
  • Posts: 17822
  • Country: lv
Re: SMPS based on TOP232
« Reply #23 on: March 19, 2020, 07:09:29 pm »
It works but half-arsed if it was not designed properly as forward converter. Which correlates with your case.
 

Offline masterx81Topic starter

  • Frequent Contributor
  • **
  • Posts: 503
  • Country: it
Re: SMPS based on TOP232
« Reply #24 on: March 19, 2020, 07:15:20 pm »
As now that the core is already glued, can i test it with a waveform generator and checking with a scope it's output?
But why on the top232 datasheet the secondaries are polarized inverted from the primary?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf