Complete UC3842 SMPS Circuit Design and Practical Schematic Guide

uc3842 smps circuit diagram

For optimal performance in flyback and forward converter topologies, use the PWM controller IC (UC384x series) in a fixed-frequency, peak-current control configuration. Begin with a 24V to 5V step-down prototype, ensuring startup voltage from an auxiliary winding–add a 0.1μF polyester capacitor across VCC and GND for noise suppression. A 1kΩ resistor on the feedback pin (Pin 2) sets the output voltage; pair it with a 10kΩ trimmer for fine adjustment.

Place a 100nF ceramic capacitor directly at the IC’s input (Vin, Pin 7) to stabilize ripple current–failure to do so risks erratic switching. The gate driver stage (Pin 6) demands a low-impedance MOSFET (e.g., IRFZ44N) with a 47Ω series resistor to limit gate charge/discharge spikes. For Over-Current Protection (OCP), insert a 0.1Ω shunt resistor in the source path of the switching transistor, scaled to trip at 5A for a 25W design.

Isolation feedback requires an optocoupler (PC817) and a precision shunt regulator (TL431). Connect the TL431’s cathode to the output via a 47kΩ resistor; its reference pin (Pin 1) ties to the optocoupler’s emitter. Maintain a 5V output with a 1kΩ resistor from the TL431’s cathode to the optocoupler’s collector. Test loop stability with a 100pF compensation capacitor on the error amp (Pin 1-2), adjusted via load-step response to avoid sub-50kHz ringing.

Input filtering must include a π-section LC network: a 1μF X7R capacitor at the front end, followed by a 10μH common-mode choke. For EMI compliance, add a snubber (10nF+100Ω in series) across the primary-side switching node–this suppresses >30MHz harmonics. Thermal shutdown is inherent in the IC, but ensure PCB traces for VCC and ground exceed 50 mil width for 1.5A transient currents.

Practical Assembly Tips for Current-Mode Control IC Layouts

uc3842 smps circuit diagram

Begin by positioning the high-current paths–input capacitors, switching FET, and flyback diode–within a 5mm radius of the controller’s power pin to minimize parasitic inductance. Use a continuous ground plane on the bottom layer, stitching vias every 3mm along the entire high-current loop to prevent voltage spikes exceeding 0.3V under full load. Keep the voltage feedback trace at least 2mm away from the switching node to avoid coupling; route it on the top layer with no vias to preserve signal integrity below 5mV ripple.

Component Selection for Stable Regulation

uc3842 smps circuit diagram

Select an output capacitor with ESR below 30mΩ to meet ripple specs of 50mVpp; low-ESR ceramics are preferable over electrolytics for frequencies above 100kHz. Pair a 1.2Ω gate resistor with the MOSFET to limit turn-on current to 1A, preventing ringing that can exceed 15V. Choose a 10kΩ timing resistor and 1nF timing capacitor to set the oscillator frequency at 100kHz ±5%, ensuring consistent switching without jitter visible on a 100MHz scope.

Pin Configuration and Key Functions of UC3842 in Switching Power Supplies

Prioritize proper heat dissipation for the 8-pin controller to prevent thermal shutdown during operation at full load. Pin 6 (Output) delivers a peak current of 1A, sufficient for driving most power MOSFETs without requiring an external driver stage–connect it directly to the gate via a 10-22Ω resistor to limit switching noise. Monitor Pin 5 (GND) trace width; ensure it carries no less than 20 mils per amp of return current to avoid ground bounce-induced regulation errors.

Pin Label Function Critical Spec
1 Comp Error amplifier output Bandwidth 1 MHz, max 6 V swing
2 FB Error amplifier inverting input Input bias current 0.5 μA, 2.5 V reference
3 CS Current sense input Threshold 1 V, disable below 50 μs delay
4 RT/CT Oscillator timing 10 kΩ/3.3 nF = 52 kHz, max 500 kHz

Isolate Pin 2 (Feedback) from high-voltage nodes using a 1 kΩ series resistor and a 100 pF bypass capacitor to suppress EMI-induced jitter; failure here causes erratic duty cycles above 85%. Pin 3 (Current Sense) must rise to 1 V before soft-start completes–shunt this pin with a Schottky diode to ground if using slope compensation to prevent dual-pulse false triggers. Keep Pin 7 (VCC) decoupling capacitor (100 nF X7R) within 2 mm of the pin to maintain startup voltage above 16 V under all load transients.

Step-by-Step Assembly of a Flyback Power Stage Using the Current-Mode Controller IC

Begin by mounting the control chip onto a perforated board or PCB, ensuring the footprint matches the 8-pin DIP or SOIC package. Verify pin spacing–0.1-inch for through-hole variants–to prevent solder bridges during reflow.

Connect the feedback winding of the transformer directly to the error amplifier input (pin 2) via a precision resistor divider. Use 1% tolerance resistors (e.g., 10kΩ and 2.2kΩ) to set the output voltage within ±0.5% regulation. Place a 1nF ceramic capacitor in parallel with the lower resistor to filter high-frequency noise without introducing phase lag.

Wire the current-sense resistor (Rs) in series with the MOSFET source to the controller’s current-sense input (pin 3). Select Rs based on peak drain current:

  • 1Ω for 1A peak (0.5V sense voltage)
  • 0.5Ω for 2A peak
  • 0.2Ω for 5A peak

Add a 100pF capacitor across Rs to dampen ringing at switch-off, reducing false triggering. Keep traces shorter than 10mm to minimize parasitic inductance.

Transformer and Switching Element Setup

Wind the flyback transformer on an EE20 or EFD20 core with an air gap of 0.2–0.5mm for 24V/2A output applications. Primary inductance should target 50–200µH; secondary turns ratio follows Vout/Vin × 1.2 for 20% headroom. Use 0.5mm diameter magnet wire for currents above 1A.

Attach the MOSFET drain to the primary winding, ensuring the heatsink is thermally coupled if case temperature exceeds 60°C. A TO-220 package with Rds(on) ≤ 0.5Ω at 10V gate drive suffices for outputs up to 60W. Gate drive traces should be ≤ 20mm long, with a 10Ω series resistor to curb overshoot.

Output and Protection Components

Rectify the secondary with a Schottky diode (e.g., SB560) for outputs below 30V, or a ultrafast recovery diode (UF4007) for higher voltages. Place a 10µF/50V low-ESR capacitor (X5R or X7R) within 10mm of the diode to minimize voltage droop. Add a 0.1µF X2Y capacitor across the output terminals to suppress EMI.

Implement overcurrent protection by tying the controller’s overvoltage pin (pin 1) to the feedback network via a 1N4148 diode. A 22kΩ resistor from pin 1 to ground sets the maximum duty cycle to ~80%. For soft-start, place a 10µF capacitor between the soft-start pin (pin 8) and ground, achieving a 20ms ramp time.

Critical Design Calculations for Transformer and Feedback Components

Begin by determining the primary inductance (Lp) using the formula:

Lp = (Vin × D) / (fsw × ΔI),

where Vin is the minimum input voltage, D is the maximum duty cycle (typically 0.45–0.5 for flyback topologies), fsw is the switching frequency, and ΔI is the permitted ripple current (20–40% of peak primary current). For a 100 kHz converter with Vin = 12V, D = 0.45, and ΔI = 0.3A, Lp calculates to approximately 180 µH. Select core material with high permeability (e.g., Ferrite 3C90) to minimize core losses at this frequency.

The turns ratio (N) between primary and secondary windings directly influences output voltage regulation. Use:

N = Vout / (Vin × D),

assuming negligible diode forward voltage. For Vout = 5V, Vin = 12V, and D = 0.45, N ≈ 0.93. Round to the nearest practical fraction (e.g., 1:1.1) and verify via prototyping–even slight deviations degrade cross-regulation in multi-output designs. Account for leakage inductance by adding 1–2% margin to winding turns or using bifilar winding techniques.

Feedback loop compensation demands precise calculation of the error amplifier’s gain-bandwidth product (GBW). Derive the required mid-band gain (Gm) from:

Gm = (Vout × 2π × fco) / (Vref × Rload),

where fco is the desired crossover frequency (typically 1/10th of fsw), Vref is the reference voltage (2.5V for standard controllers), and Rload is the minimum load resistance. For fco = 10 kHz, Vout = 5V, and Rload = 1Ω, Gm ≈ 125 (42 dB). Implement a Type 2 compensator with a zero at 1/10th of fco and a pole at 5× fco to ensure 45° phase margin.

Output capacitor selection must balance ESR, capacitance, and RMS current ratings. Calculate minimum capacitance (Cmin) using:

Cmin = ΔI / (8 × fsw × ΔVout),

where ΔVout is the permitted output ripple (e.g., 50 mV). For ΔI = 0.3A and fsw = 100 kHz, Cmin = 7.5 µF–round up to 22 µF with X7R dielectric to tolerate temperature drift. Verify ESR with ESR ≤ ΔVout / ΔIpeak; exceeding this causes voltage spikes during transient load steps. Multiply Cmin by 2–3× for multi-output designs to suppress cross-coupling effects.

Snubber components across the switching node mitigate ringing from parasitic inductance. Determine snubber capacitance (Csn) via:

Csn = Lleak × (Ipeak)² / ((ΔV)² × 2),

where Lleak is leakage inductance (measure via LCR meter or estimate as 1% of Lp), Ipeak is primary peak current, and ΔV is the acceptable voltage spike (e.g., 30V). For Lleak = 1.8 µH and Ipeak = 1.5A, Csn ≈ 1.5 nF–use a 2.2 nF C0G capacitor. Pair with a resistor (Rsn) sized for critical damping: Rsn = 2 × √(Lleak / Csn), yielding ~1.8 kΩ. Add a 1N4148 diode in series to prevent reverse recovery losses.

Thermal management of the power stage hinges on accurate loss estimation. Core losses in the transformer scale with flux density (Bmax) and frequency–refer to manufacturer’s datasheets (e.g., Magnetics Inc. PQ cores) and interpolate for Bmax ≤ 0.2T to avoid saturation. Copper losses dominate at high currents; use:

Pcu = I² × Rdc × (1 + 0.004 × (T – 20)),

where Rdc is the winding resistance at 20°C and T is the operating temperature. For a 1.2A primary current and 0.2Ω Rdc at 80°C, Pcu ≈ 0.35W–ensure copper fill factor ≥30% and PCB heatsinks ≥2 oz/ft². Validate with thermal imaging; hotspots exceeding 100°C mandate core material adjustment or derating.