In this article we are going to discuss a flyback SMPS circuit using the UC3843 PWM controller IC. Circuit is intended to convert 85V to 265V AC input into a 12V DC output. Proposed output rating is 12V at 5A which means the supply must handle around 60 watts of output power. The circuit uses high voltage MOSFET and a ferrite transformer for the flyback operation.
The UC3843 controls the MOSFET switching and also monitors the primary current for protection. One interesting thing about this design is that it does not use an optocoupler or TL431 for feedback.
Instead, the feedback is taken from auxiliary winding of the transformer.
The auxiliary winding provides the supply voltage for UC3843 and also gives a feedback signal related to the main 12V output. We will discuss the complete working of the circuit and also see the important calculations.
IMPORTANT SAFETY NOTE
This is a non isolated mains side control circuit with dangerous high voltage present on the primary side. The primary ground is not same as safe 0V output ground, never connect an ordinary grounded oscilloscope probe to the primary circuit. 220uF capacitor can remain charged to a dangerous voltage even after switching OFF the mains.
Proper isolation, discharge arrangements, fuse protection, PCB clearances and suitable test equipment are necessary. The circuit values discussed here are a design proposal and should not be treated as fully tested 60W power supply.
The transformer, startup supply, MOSFET voltage stress and feedback stability must be verified before connecting a full load.
CIRCUIT DIAGRAM

HOW THE INPUT SECTION WORKS
The AC input is first applied through a 5 ohm NTC resistor and a 1 amp fuse. The NTC resistor helps to reduce the initial charging surge when 220uF high voltage capacitor is charging then.
MOV is connected across AC input for protection against high voltage surges, dB207 bridge rectifier converts incoming AC into DC. 220uF 450V capacitor filters the rectified DC and provides the main DC supply for flyback transformer.
Now the approximate DC voltage after rectification can be calculated by multiplying the AC voltage by 1. 414, for example, at 85V AC, DC voltage will be around 120V, at 220V AC, the DC voltage will be around 311V. At 265V AC, the DC voltage will be around 375V, these are peak voltage calculations.
Now the actual DC bus will fall below these values because of rectifier losses and ripple produced by load. 220uF capacitor must have sufficient ripple current rating and should be a good quality 450V type.
HOW THE UC3843 STARTS
The UC3843 cannot start straight away from the auxiliary winding because initially the transformer is not switching and therefore auxiliary winding has no output.
For this reason, the circuit uses two 68k resistors connected in series from rectified high voltage DC line.
So now these resistors provide a small starting current to 22uF capacitor connected at pin 7. When the voltage in pin 7 reaches approximately 8 then, 4V, the UC3843 starts working. The IC now begins generating PWM pulses from pin 6 and drives the MOSFET.
The transformer starts transferring energy to secondary winding.
In the same time, the 10 turn auxiliary winding starts producing its voltage.
This voltage is rectified through the UF4007 diode and supplies pin 7 of the UC3843. After this the auxiliary winding should take over supply of the IC, the UC3843 has a startup voltage of approximately 8, 4V and shutdown voltage of approximately 7. 6V. Therefore the auxiliary voltage must remain comfortably above shutdown level during normal operation.
If auxiliary voltage falls below this level, then IC will stop switching. The startup resistors will then charge the capacitor again and IC may repeatedly start and stop.
One important point here is that two 68k resistors must provide enough current in minimum 85V AC input. Feedback divider and the MOSFET gate charging current also consume current from auxiliary supply after startup.
Therefore the startup setup must be checked practically in minimum input voltage. Calculated startup current alone does not prove that the IC will start reliably.
The 22uF capacitor provides main VCC filtering.
A 100nF ceramic capacitor should also be connected straight away between pin 7 and pin 5, very close to IC.
Use suitable voltage rated electrolytic capacitor in pin 7. The 50V rating gives more voltage margin but it does not replace need for proper VCC protection.
HOW THE AUXILIARY WINDING FEEDBACK WORKS
This circuit does not use an optocoupler for feedback, instead, it uses 10 turn auxiliary winding of the flyback transformer.
The transformer has an 8 turn secondary winding for main 12V output and a 10 turn auxiliary winding for the UC3843 supply and feedback. Since both windings are magnetically coupled, the auxiliary winding voltage changes along with main secondary voltage.
When the main output voltage rises, then the auxiliary voltage normally rises too. When the main output voltage falls, then auxiliary voltage also falls.
UF4007 diode rectifies the auxiliary winding voltage and charges the 22uF capacitor connected to pin 7. same auxiliary voltage is sampled through an 18k resistor and lower resistor network connected to pin 2. The lower network consists of a 2, 2k fixed resistor and a 4, 7k adjustable preset.
Pin 2 is VFB input of UC3843, internal error amplifier has an approximately 2, 5V reference.
The working is as follows, when the 12V output rises then the auxiliary voltage also rises, the voltage at pin 2 rises through the feedback divider.
When pin 2 rises above the required 2 then, 5V feedback level, error amplifier reduces the voltage at the COMP section, pWM duty cycle becomes lower. Now the MOSFET ON time reduces and less energy is transferred to transformer, the output voltage then starts coming down.
In the opposite condition, when the output voltage falls, then the auxiliary voltage also falls. Pin 2 voltage becomes lower, error amplifier allows the PWM duty cycle to increase.
The MOSFET transfers more energy to the transformer and output voltage starts rising again. This continuous action is expected to maintain the output around the required 12V level.
But, this is indirect feedback because the actual 12V output is not being measured straight away. Auxiliary winding voltage can change slightly due to transformer coupling, winding resistance, diode drop and load variations.
So the actual output regulation must be checked under different input and load conditions.
WHY THE 4.7K RESISTOR IS ADJUSTABLE
The 4, 7k resistor is made adjustable because it controls the feedback divider ratio, the 2. 2k fixed resistor is connected in series with this preset.
Therefore even if preset is adjusted to its minimum resistance, then the lower resistance cannot become zero.
By changing this resistance, we can change the auxiliary voltage at which pin 2 reaches approximately 2. 5V. If the lower resistance is increased, then pin 2 receives a higher voltage for the same auxiliary voltage.
Therefore the feedback loop starts reducing the PWM in lower auxiliary voltage.
If lower resistance is reduced, then a higher auxiliary voltage is needed to reach the same 2. 5V at pin 2, this adjustment can be used for initial output voltage calibration.
But remember that actual relationship between auxiliary voltage and the 12V output depends on the transformer and operating conditions.
Therefore preset should be adjusted while measuring the actual 12V output.
For the final setting, the output must be checked at minimum and maximum input voltage and also at different load currents. Auxiliary feedback setup should not be expected to provide same precision as a direct TL431 and optocoupler feedback system.
HOW THE PIN 1 COMPENSATION NETWORK WORKS
Pin 1 is the COMP pin of the UC3843. This pin is connected with internal error amplifier and controls the PWM operation.
Now the 150k resistor and 100pF capacitor shown in circuit form part of compensation network. This network helps control the response of the feedback loop and reduces unwanted fast variations.
The exact compensation values depend on the transformer inductance, output capacitor, load and the complete converter response. Therefore these values must be checked during practical testing, presence of a compensation network alone does not guarantee stable operation.
THE OSCILLATOR SECTION
Now the oscillator section is connected to pin 4 of the UC3843, pin 8 provides a regulated 5V reference voltage.
A timing resistor is connected between pin 8 and pin 4, while the timing capacitor is connected from pin 4 to ground.
According to the Texas Instruments datasheet, the recommended timing resistor range is 5k to 100k and recommended timing capacitor range is 1nF to 100nF.
TI also provides a 100kHz switching frequency design example for its flyback application. Therefore for this revised circuit, we will use approximately 100kHz as target switching frequency instead of the earlier 17kHz or 36. 6kHz values, for this purpose, we can use: RT = 17. 2k CT = 1000pF (1nF) The calculated oscillator frequency will be approximately 100kHz.
Since UC3843 is UC3843 controller and not a UC3844, its MOSFET switching frequency is equal to its oscillator frequency.
So MOSFET will also switch at approximately 100kHz. The timing capacitor should be placed very close to pin 4 and its ground connection should be kept short. 100nF ceramic bypass capacitor at pin 8 is also important for keeping the internal 5V reference stable.
MOSFET GATE DRIVE SECTION
Pin 6 of the UC3843 provides the PWM output.
This output is connected to the MOSFET gate through a 22 ohm resistor.
The 22 ohm resistor controls the gate charging and discharging current and helps reduce unwanted ringing. 10k resistor is connected between gate and source of the MOSFET. This resistor keeps the MOSFET OFF when the gate drive is absent then.
MOSFET used in the circuit is a 650V high voltage type such as STF7N65 or FQPF7N65, subject to checking its actual current rating, gate charge thermal performance and switching characteristics.
MOSFET must withstand the rectified DC bus voltage plus reflected transformer voltage and drain leakage spike.
At 265V AC input, DC bus can already reach around 375V, therefore drain voltage can become much higher than 375V during switching, a proper drain clamp and snubber setup is necessary.
CURRENT LIMITING SECTION
- 27 ohm resistor connected in MOSFET source is used for primary current sensing.
When the MOSFET conducts, then its primary current flows through this resistor, this produces a voltage proportional to primary current, voltage is applied to pin 3 of the UC3843 through 1k resistor. The 1nF capacitor helps filter unwanted switching noise and spikes, internal current sense comparator monitors this voltage.
When the current sense voltage reaches approximately 1V, then UC3843 terminates the present switching pulse.
This provides cycle by cycle primary current limiting.
So now the actual peak current can be slightly different due to propagation delay, resistor tolerance and current sensing spikes.
The 0, 27 ohm resistor should have suitable pulse and power handling capability.
DRAIN SPIKE SUPPRESSION SECTION
When the MOSFET suddenly switches OFF, then transformer leakage inductance can produce a high voltage spike in the MOSFET drain.
This spike can damage the MOSFET if it is not controlled then, the circuit uses 680pF capacitor, 2.7k resistor and 1N4937 diode in the drain suppression setup. These components is intended to control the unwanted drain voltage spikes, but, the actual snubber values cannot be confirmed only from circuit diagram.
The drain waveform must be checked using a properly isolated differential probe or suitable high voltage measurement setup.
Voltage must remain safely below the MOSFET rating under maximum input and maximum load conditions.
Do not remove the snubber components without checking the drain waveform.
OUTPUT SECTION
The transformer secondary has 8 turns using 1mm wire, the secondary voltage is rectified through MBR20100 Schottky diode, 220uF capacitor connected in the output filters rectified voltage and produces DC.
Now the required output is 12V, the output current target is 5A, therefore expected output power is 60 watts. Now the auxiliary winding has 10 turns using 0.3mm wire.
This winding provides operating voltage for UC3843 and also supplies the feedback signal. Since the auxiliary winding has more turns than the secondary winding, its voltage will normally be higher than the 12V output.
But the actual voltage cannot be calculated accurately from the turns ratio alone because diode drops, winding resistance and transformer coupling also affect it. The feedback preset is therefore used for initial calibration.
TRANSFORMER DESIGN NOTE
Transformer is most important part of this flyback supply.
Now the diagram shows 60 turn primary, an 8 turn secondary and a 10 turn auxiliary winding. But these winding details alone are not enough to establish safe 60W transformer.
The core material, core size, air gap, primary inductance, maximum flux density primary RMS current and winding insulation must also be properly calculated.
The transformer must be designed for complete input range and the selected switching frequency. 100kHz switching frequency also changes the transformer core and switching loss requirements compared with earlier 17kHz design.
Therefore the original transformer winding setup should not just be assumed to deliver 60W at 100kHz without redesign and verification.
The primary and secondary windings must have proper insulation and isolation distances suitable for mains powered equipment.
FINAL WORKING SEQUENCE
When AC input is switched ON, then bridge rectifier converts it into high voltage DC. So now the 220uF capacitor filters the DC, two 68k resistors provide initial charging current to the UC3843 VCC capacitor, when pin 7 reaches approximately 8 then. 4V, the UC3843 starts oscillating, the timing network produces the PWM frequency, pin 6 drives the MOSFET through the 22 ohm resistor.
MOSFET switches transformer primary and transfers energy to the secondary, the secondary winding produces 12V output through the MBR20100 rectifier, at the same time auxiliary winding produces voltage needed to power UC3843. The auxiliary voltage is also fed through feedback divider to pin 2.
UC3843 continuously compares this feedback voltage with its internal reference and changes the PWM duty cycle according to the output condition.
In this way, the circuit is intended to maintain output near 12V.
But, final output regulation, stability and 5A load capability must be established through actual testing.
CALCULATIONS
- Rectified DC voltage calculations
The approximate peak DC voltage after bridge rectification is:
DC voltage = AC voltage x 1.414
At minimum input of 85V AC:
85 x 1.414 = 120.2V DC
At normal input of 220V AC:
220 x 1.414 = 311.1V DC
At maximum input of 265V AC:
265 x 1.414 = 374.7V DC
Therefore, the maximum DC bus voltage is approximately 375V before considering mains surges and other transient conditions.
- Output power calculation
Required output voltage = 12V
Required output current = 5A
Output power = Voltage x Current
Output power = 12 x 5
Output power = 60 watts
Therefore, the transformer and all secondary components must be designed for at least 60W output, with suitable additional design margin.
- Startup resistor calculation
Two 68k resistors are connected in series.
Total resistance:
68k + 68k = 136k
At 265V AC, the rectified DC voltage is approximately 375V.
Assuming pin 7 is at 8.4V:
Startup current = (375 - 8.4) / 136000
Startup current = approximately 2.70mA
Power in each 68k resistor:
P = I x I x R
P = 0.00270 x 0.00270 x 68000
P = approximately 0.50W
Therefore, each resistor should have at least a 1W rating, with suitable voltage rating and physical spacing.
At 85V AC:
Rectified DC = approximately 120V
Startup current = (120 - 8.4) / 136000
Startup current = approximately 0.82mA
This is a marginal starting current because the feedback divider also consumes current and the UC3843 requires its own startup current.
Therefore, the startup arrangement must be checked at 85V AC. The two 68k resistors may need to be changed after measuring the actual startup performance.
- Oscillator frequency calculation
For the UC3843, TI gives the approximate oscillator frequency equation as:
Frequency = 1.72 / (RT x CT)
For the revised design:
RT = 17.2k = 17200 ohms
CT = 1000pF = 0.000000001F
Frequency = 1.72 / (17200 x 0.000000001)
Frequency = 1.72 / 0.0000172
Frequency = 100000Hz
Frequency = 100kHz
Therefore, the calculated oscillator frequency is approximately 100kHz.
Since UC3843 switching frequency is equal to oscillator frequency:
MOSFET switching frequency = approximately 100kHz.
These timing values are within the RT and CT ranges specified by TI.
- Primary current limiting calculation
The current sensing resistor is:
Rs = 0.27 ohm
The UC3843 current sense threshold is approximately 1V.
Peak primary current = 1 / Rs
Peak primary current = 1 / 0.27
Peak primary current = approximately 3.70A
This is the theoretical peak current limit.
The actual current limit should be checked because switching spikes and propagation delay can affect the final value.
- Feedback divider calculation
The feedback divider has:
Upper resistor = 18k
Lower resistance = 2.2k fixed + adjustable 4.7k preset.
The UC3843 error amplifier reference is approximately 2.5V.
The feedback equation is:
VFB = Vaux x Rlower / (18k + Rlower)
For the feedback voltage to reach 2.5V:
Vaux = 2.5 x (18k + Rlower) / Rlower
If the lower resistance is 2.2k:
Vaux = 2.5 x (18k + 2.2k) / 2.2k
Vaux = approximately 22.95V
If the total lower resistance is 2.9k:
Vaux = 2.5 x (18k + 2.9k) / 2.9k
Vaux = approximately 18V
If the total lower resistance is 3.6k:
Vaux = 2.5 x (18k + 3.6k) / 3.6k
Vaux = approximately 15V
If the total lower resistance is 4.7k:
Vaux = 2.5 x (18k + 4.7k) / 4.7k
Vaux = approximately 12.1V
If the total lower resistance is 6.9k:
Vaux = 2.5 x (18k + 6.9k) / 6.9k
Vaux = approximately 9V
The last value is not suitable for normal UC3843 operation because the recommended VCC operating voltage starts at 12V.
So the preset should be adjusted according to the actual auxiliary voltage and the required feedback point, while keeping pin 7 within its recommended operating range.
- Auxiliary winding voltage calculation
The main secondary winding has 8 turns.
The auxiliary winding has 10 turns.
Therefore, the turns ratio is:
10 / 8 = 1.25
This means the auxiliary winding has 1.25 times the turns of the secondary winding.
However, the actual rectified auxiliary voltage will also depend on the diode drops, winding losses and coupling between the windings.
So this turns ratio gives only an approximate relationship and cannot be used alone to guarantee the exact auxiliary voltage.
- VCC protection calculation and note
The UC3843 datasheet specifies an internal VCC clamp of approximately 34V typical.
However the absolute maximum VCC rating for a low-impedance source is 30V.
Therefore we should not depend on the internal clamp for normal voltage protection.
The auxiliary supply must be designed so that pin 7 remains within the recommended operating range under normal and abnormal conditions.
An external protection arrangement must be selected after measuring the maximum auxiliary voltage and checking the available current.
The 22uF capacitor should have a suitable voltage rating with sufficient margin.
FINAL NOTE
The above calculations explain the main working points of the UC3843 flyback circuit.
The oscillator has been selected for approximately 100kHz operation, following the frequency used in the Texas Instruments flyback application example.
However, the transformer inductance, core design, startup reliability, feedback stability and drain voltage must still be verified before the circuit can be considered a working 12V 5A supply.
The most important thing is to test the circuit carefully at minimum and maximum AC input and at different output loads before using it for continuous operation.
For the complete IC specifications and oscillator details, refer to the official Texas Instruments UC3843 datasheet:
https://www.ti.com/lit/ds/symlink/uc3843.pdf
Questions & Answers
Switching frequency should be in the range of 36kHz instead of 17kHz. CT isn’t 10nF, CT used here is 4700pF.
Thanks for your feedback. I have updated the article accordingly.
I want to make 36v 60w Flyback SMPS using uc3843,EE28 transformer core can you help me with this
I think you can achieve it using the above circuit, by modifying the secondary number of turns to 24. And also make sure to adjust the 4.7k feedback preset appropriately.
Hola gracias por toda la información que nos comparte aquí, Quería preguntarle que si el foco de protección del circuito se conecta normalmente en el lugar del fusible?
Hey, yes, removing the mains AC fuse and connecting an incandescent light bulb (usually 60W–100W) across the empty fuse terminals is the standard way to do the initial testing, in order to protect the MOSFET/transformer from a possible catastrophic situation…