Push Pull Converter Pspice Student

Therefore, current is drawn from the line during both halves of the switching time. With a single transistor working in the same way, but current is drawn half the time, that is difference between buck-boost converters and push-pull converter. So with this push-pull circuit, push–pull converters have steady input current, create less noise on. This converter produces an output voltage V that is greater in magnitude than the input voltage V g. Its conversion ratio is M(D) = 1/(1 – D). In the buck-boost converter, the switch alternately connects the inductor across the power input and output voltages. This converter inverts the polarity of the voltage, and can either increase or decrease.

  1. However, the P-FET buck circuit is simpler than the N because the N-FET buck requires some kind of way to generate a higher driver voltage to pull the N-FETs gate up to to turn it on fully. There are always trade offs. Most of the time they go with the N-FET to save money and use a cheap charge pump to boost up to get a gate driver rail.
  2. Examples of non-isolated DC-DC inverters are Buck, Boost, Buck-Boost, Cuk and SEPIC converter. In contrast, examples of isolated converters are Push-pull, Forward, Flyback, Half-Bridge and Full-Bridge converters. The main agent responsible for converting DC-DC conversion in non-isolated converter is a controlled switch.
Improved vacuum tube models for SPICE simulations

Part 1: Models and example

by Norman L. Koren

Updated March 20, 2003
On to Part 2: Listings and PSpice operation | Norman Koren Vacuum tube audio page
Finding SPICE tube model parameters
View image galleries

Search WWW Search www.normankoren.com
Table of contentsEquations for vacuum tubes | New equations | SPICE | Parameters
Finding parameters by trial-and-error | Plate curves | Output transformers
Example: original PAS preamplifier | Lessons
Part 2 | Appendix A: Listings | Appendix B: Operation with PSpice Schematics
.
Much of the material in here originally appeared in Glass Audio, Vol. 8, No. 5, 1996, p. 18.

As my principal hobby interest is now photography and I work crazy long hours at Imatest, I won't have much time to update this article or answer difficult questions.

James E. Lanier's PSPICE Triode Calculator is a promising program for finding tube model parameters. It's still under development; he plans to expand it to include tetrodes and pentodes.

LTspice can apparently be used for these models.

SPICE, an electronic circuit simulation program originally developed at the University of California at Berkeley, has found wide acceptance in the electronics and semiconductor industries. It can perform highly accurate time and frequency domain analysis of complex analog and digital circuits (including harmonic and IM distortion). Several commercial versions of SPICE run on personal computers, most notably PSpice from OrCAD. The downloadable PSspice student version (version 9.1 at last look) has limited capabilities by standards of solid-state circuit design, but it can be amazingly useful in simulating vacuum tube amplifiers, which tend to have fewer components. It was used for all examples in this article. It's hard to find on the OrCAD website. I had to go to the CadencePCB home page and click on All Downloads. Other well-known SPICE implementations include Electronics Workbench, 800-263-5552, and ICAP/4, from Intusoft, P.O Box 710 San Pedro, CA 90733-0710; 310-833-0710. Duncan Munro's list of SPICE vendors may contain some hidden treasures. WinSpice is a free Spice3F4 Port for Windows 95, 98, 2000 & NT. Very intriguing. It will simulate much larger circuits than evaluation PSpice.

SPICE contains built-in models for passive devices (resistors, capacitors, inductors, etc.) and for most active semiconductor devices (bipolar transistors, FETs, Op Amps, etc.), but none for vacuum tubes. SPICE models and can be downloaded from manufacturer's Websites.

Equations for vacuum tubes

Scott Reynolds1 and Marshall Leach2 model vacuum tubes as voltage-controlled current sources whose output current is a weighted sum of controlling element voltages raised to the three-halves power. The controlling elements are different for triodes and pentodes. (Since the suppressor grid has little effect on the transfer characteristics, pentodes are modeled as tetrodes.) The plate current equation for triodes is
IP = (EG+EP /µ)3/2/kG1 for EG+EP /µ >= 0
= 0 otherwise.
The plate current equation for pentodes is

IP = (2/kG1p)(EG+EG2 /µ)3/2 arctan(EP /kVB ) for EG+EG2 /µ >= 0
= 0 otherwise.

(2)
where IP is plate current, EG is control grid voltage, EP is plate voltage, EG2 is screen grid voltage (all voltages with respect to the cathode), µ is the amplification factor, and kG1 is a factor used to fit the equation to data. The pentode equation differs from the triode equation in that the screen grid replaces the plate as a controlling element, and an arctangent term (from Scott Reynolds' model) is added to model a response curve 'knee' whose location is proportional to kVB. Equations (1) and (2) are forms of the Langmuir-Childs law, which can be derived from fundamental physics.3 Plate curves for a 12AX7 triode with µ = 93 (below the specified value but a good overall fit to equation (1)) are illustrated below in Figure 1.

The screen grid current equation for pentodes is

IG2 = (EG+EG2 /µ)3/2/kG2 for EG+EG2 /µ >= 0
= 0 otherwise.

where IG2 is the screen grid current and kG2 is a constant similar in function to kG1.


Figure 1. 12AX7 plate curve from the old model.

The difficulty with equations (1) and (2) is that they assume that the grid has perfect control over the plate current, i.e., that there is no leakage current. The real world is, alas, not so kind, and these equations give a poor estimate of plate current for large positive plate voltage and large negative grid voltage,5 region (A) in Figure 1, above. Compare this with region (A) in Figure 2, below, which is derived from the new model but matches published curves4 extremely well.

The modeling error would not be serious if tubes did not operate in the region of greatest error. Unfortunately they do, as illustrated in Figure 1 by a typical load line for a 12AX7 with a 350V plate supply and a 150kW plate resistor. The load line crosses region (A), and operation may extend into this region for large signals. This problem is exacerbated in class AB push-pull amplifiers, where the operation of each tube traverses the region of worst error as it moves from conduction to cutoff and back. An accurate estimate of distortion in push-pull amplifiers is impossible without an improved model.

New equations

The new equations for tube characteristics are phenomenological equations, that is, equations that model the behavior of physical phenomena using a reasonable number of parameters, but are not derived from fundamental physics. They have been designed so that plate current IP > 0 whenever plate voltage EP > 0 (for triodes) or screen grid voltage EG2 > 0 (for pentodes). Both equations take advantage of the fact that log(1+exp(x)) approaches x when x >> 1 and 0 when x << 1.

The new plate current equation for triodes is

E1 = (EP /kP) log(1 + exp(kP(1/µ + EG /sqrt(kVB + EP2))))
IP = (E1X/kG1)(1 + sgn(E1))

Student
(4)
The signum function, sgn(x) = 1 for x >= 0; sgn(x) = -1 for x < 0, is used to prevent current flow when E1 < 0. The new plate current equation for pentodes is similar to that of triodes:

E1 = (EG2 /kP) log(1 + exp(kP (1/µ+EG /EG2)))
IP = (E1X/kG1)(1 + sgn(E1)) arctan(EP /kVB)

Equation (4) reduces to equation (1) when EP2 >> kVB and kP (1/µ + EG /EP ) >> 1. Similarly, equation (5) reduces to equation (2) when kP (1/µ + EG /Push Pull Converter Pspice StudentEG2 ) >> 1. We continue to use equation (3) for pentode screen grid current for three reasons: 1. Screen current is not as critical to the tube performance as plate current. 2. Good data on screen current is scarce. 3. The model should be kept as simple as possible for use with evaluation version of PSpice.


Figure 2. 12AX7 plate curve from the new model.

SPICE language and PSpice

The SPICE language is an industry standard for describing electronic circuits (called netlists) and instructions for modeling them. PSpice is a commercial implementation of SPICE that features convenient schematics entry through a graphic interface. PSpice actually consists of three separate programs: Schematics for data entry, PSpice for running the SPICE simulation, and Probe for displaying the results.

If you plan to modify or add tube models you'll need to know a bit about the SPICE language. Appendix A has listings of several SPICE files. The first line of a SPICE file contains a title. Data on this line is ignored. The last line consists of the .END statement. Netlist data lines have the general format,

PART node_1 node_2 {additional nodes if applicable} value(s) ; optional comments
Comments may appear on lines that start with an asterisk (*) or on data lines following a semicolon (;). Continuation lines begin with a plus sign (+), except for equations, where the portion to the right of the equal sign (enclosed in braces {...}) is restricted to one line. This limitation can present problems with long equations. To get around it, E1 in Equations (4) and (5) has been modeled as a voltage-controlled voltage source that controls IP, which is a voltage-controlled current source. This makes two relatively short equations out of one long one.

I strongly recommend the excellent textbook by Paul W. Tuinenga,10 'SPICE, A Guide to Circuit Simulation & Analysis using PSpice.' It contains detailed descriptions SPICE commands and models, including how to perform frequency-domain analysis (.AC), time-domain analysis (.TRAN) and Fourier analysis (.FOUR), which produces a detailed harmonic distortion analysis. In the PSpice Schematics program these instructions are generated by clicking on Analysis, Setup..., then working with the appropriate boxes.

To perform a SPICE simulation with the MicroSim evaluation package, run the Schematics program, then click on File, Open... to open a Schematics data file using the usual Windows navigation techniques. (You can also create a new schematic.) We'll call it filename.SCH in this example. You may edit and save it if you wish. To perform the PSpice simulation, click on Analysis, Simulate. This creates two SPICE language files: filename.CIR containing simulation instructions and filename.NET containing the netlist. These files are then read into the PSpice simulator, which writes text results (voltages, currents, etc.) to filename.OUT and graphics data to filename.DAT for display with Probe, which is run automatically if you have the .PROBE statement in the data file. Probe displays time and/or frequency-domain plots of voltages at selected nodes or currents through selected components. The format of the display is quite versatile. If V(n) is the voltage at node n, VDB(n) is the voltage in dB and VP(n) is the phase. Current display is similarly flexible.

To use the Schematics program I had to create symbols for tubes: a difficult task you can avoid by downloading the models and following the instructions in Appendix B for loading the symbol and SPICE model libraries into PSpice.

Student

Parameters

Table 1 gives parameters for some familiar tubes. These parameters are used in the tube model library listed in Appendix A3. The first six are equivalent to µ, X, kG1, kG2, kP, and kVB in equations (3)-(5).
Push pull converter pspice student download
TUBEMUEXKG1KG2KPKVBCCGCPGCCPRGI
6DJ8281.33303203002.3P2.1P0.7P2k
6L6CG8.71.3514604500481214P0.85P12P1k
12AX71001.410606003002.3P2.4P0.9P2k
12AU721.51.31180843002.3P2.2P1.0P2k
65507.91.358904800602414P0.85P12P1k
KT888.81.357304200 321614P0.85P12P1k

Table 1. Spice parameters for some popular tube models

Most parameters in Table 1 can be determined from published graphs and tables. Small-signal triode data was obtained from Tom Mitchell's book.4 EL34 data came from the Audiomatica Sofia web page. Other sources were the Parts Connection catalog (1-800-769-0747), which has a large collection of reprints, old copies of the Sylvania and RCA tube manuals, and the pages of Glass Audio. The best places to find tube data on the Web are Duncan's Amp Pages and Frank's Electron tube Pages. Published values for inter-electrode capacitance always give better high frequency response than experiment. I measured the capacitance of a tube socket with two inch leads, and found it to be around 0.7pF for adjacent pins and 0.5pF for others. I added these capacitances to the published values. Even so, simulated frequency response may be somewhat optimistic. Tubes of different origin (e.g., Chinese, Russian, and old British 12AX7s) can differ markedly in their inter-electrode capacitances. This may explain some of the sonic differences. Of course, real circuits have stray capacitance, and you must specify it if you want to include it in SPICE simulations.

Finding parameters by trial and error

The trial and error procedure for finding tube parmaters is tedious. My Matlab program for determing them is now available on Finding SPICE tube model parameters. Two other people have reletant work.
  • Teodoro Marinucci has written an optimization program in Excel. His website covering tube theory and modeling is mirrored on two URL's, http://web.tiscali.it/teodorom/ and http://digilander.iol.it/teodorom/. Alas, they're in Italian. I don't think his program is online yet, but it's very appealing because almost everybody has Excel. You can encourage him by sending him an e-mail. You can get a crude but readable translation by searching for 'Valvole e Matematica' in http://www.google.com, then clicking on [Translate this page] next to his article. Amazing.
  • Mithat F. Konar's article Vacuum Tube Parameter Identification Using Computer Methods describes a technique that uses the Matlab Optimization Toolbox.

The parameters in Table 1 can be found by a methodical trial and error procedure. To use this procedure, the programs in Appendix A1 through A3 must be employed. Listings A1 and A2 produce plate characteristic curves for triodes and pentodes, respectively. Listing A3 is a portion of the tube library referenced by the .LIB statement in listings A1 and A2. Tubes are modeled as subcircuits, starting with .SUBCKT and ending with .ENDS. .SUBCKT is followed by the model name and then the element node names. We have chosen the order the element nodes to be plate, control grid, cathode, and (in pentodes) screen grid.

To find the parameter values for a new tube, it is best to start with values for a similar existing tube, except for amplification factor MU (µ), which is generally close to the manufacturer's specification. MU is (minus) the change of plate voltage for a given change of grid voltage at constant plate current. This is illustrated by line segment BC in Figure 2, which is a good choice for determining MU because it is located in a region of tube operation far from region (A), where effective MU is reduced. In this case, plate voltage increases by 100V when grid voltage is decreased by 1V while plate current remains constant at 1.9 mA, resulting in MU = 100.

To determine EX and KG1 (X and kG1), run the appropriate plate curve program (Appendix A1 or A2), and observe plate current I(VP) using Probe. Adjust EX and KG1 so that curves for relatively low negative grid voltages (e.g., Vg = 0 or -0.5 for the 12AX7 in Figure 2) match experimental data. Typical values of EX range from 1.3 to 1.4. Line curvature increases with EX. The textbook value of 3/2 for EX is appropriate for equations (1) and (2), where it gives a reasonable average representation of tube operation, but is not really accurate in all regions. KG1 is inversely proportional to plate current for given grid and plate voltages. It usually requires several runs to get a really good match for EX and KG1. MU may need to be adjusted slightly in the process.

For pentodes, the best estimates of MU, EX, and KG1 are obtained from triode-mode curves, i.e., curves taken with the screen grid connected to the plate. Such curves were available for the pentodes listed in Table 1. It is very gratifying to see how parameters obtained from the triode curves (Figure 4) result in excellent fits to pentode and ultra-linear curves (Figures 3 and 5). In running the pentode plate curve program (Appendix A2), operating mode can be set by adjusting parameter TRIMODE (0 for pentode, 40 for ultra-linear (UL), and 100 for triode). VG2NOM (quiescent screen voltage) must also be set appropriately.

KG2 is inversely proportional to pentode screen grid current (I(VG2) in Appendix A2) for given control and screen grid voltages. Curves for pentode screen grid current are rarely published, but screen grid current is usually included in tables of typical tube operation. It is adequate to match a point or two from these tables. KG2 does not need to be estimated with great accuracy to obtain good results in SPICE simulations.

KP (kP) dominates the behavior of the new model in region (A), which is characterized by large negative grid voltage, large plate voltage, and low plate current. Plate current is inversely proportional to KP in this region. Determining KP for a given tube is done entirely by trial-and-error. Triode-mode curves must be used to obtain an accurate estimate of KP for pentodes because published pentode curves tend to have insufficient resolution in region (A).

Push Pull Converter Pspice Students

KVB (kVB) relates to the 'knee' of the characteristic curves, and is defined differently in the triode and pentode equations. For pentodes, the knee is proportional to KVB, and is most visible in the pentode-mode curves (Figure 3 for the 6550). Equation (5) does not give an accurate estimate of the knee for all levels of grid voltage, EG . Fortunately, this is not a serious limitation because load lines for practical designs pass close to the knee for EG = 0. (Otherwise there would be a serious impedance mismatch.) The location of the knee for EG = 0 was used to determine KVB in Table 1. For triodes, the knee is proportional to the square root of KVB, and is only apparent when the tube is operated with positive grid voltage. Triode curves for positive grid voltage are published infrequently, for example, the 12AU7 in the Sylvania tube manual.

Figure 3. Circuit for obtaining triode characteristic curves.
RGI is the grid-to-cathode resistance that controls grid current when EG > 0. (No grid current flows during normal operation, when EG < 0.) The numbers in Table 1 are rough estimates based on measurements of similar tubes in old texts.3 Good up-to-date data is very scarce, and would be most welcome. Grid current flows in class AB2 push-pull amplifiers, but doesn't need to be modeled precisely because it does not contribute to the output signal. It should, however, be modeled well enough to determine if the driver tubes can supply the necessary current. Grid current presents a special problem in capacitively-coupled circuits: Since it only flows in one direction, it charges the coupling capacitor, driving the tube closer to cutoff. This effect does not appear in SPICE small signal analysis or in transient (.TRAN) solutions for a single cycle of the input waveform: Many cycles are required. This effect can be very audibly jarring.

Plate curves

Figure 4. Circuit for obtaining triode characteristic curves.
Plate curves (plate current as a function of plate voltage for a set of grid voltages) may be obtained by running one of four files in the tube models file, which can be downloaded by shift-clicking on Tubemods.zip. Schematics for Triotest.sch and Pent_P.sch are shown on the right.
  1. Triotest.sch Figs. 2, 3. Triode curves.
  2. Pent_P.sch Figs. 4, 5. Pentode curves in pentode mode (screen grid at a fixed voltage). VG2NOM should be set to the fixed screen voltage used in the data sheet. EVALUE E2 attribute EXPR is set to V(%IN+, %IN-)*1+V(1P)*0 (could be simply V(%IN+, %IN-) ).
  3. Pent_TR Fig. 6. Pentode curves in triode mode (screen grid connected to plate). VG2NOM is not used. EVALUE E2 attribute EXPR should be set to V(%IN+, %IN-)*.0+V(1P)*1 (or simply V(1P) ) .
  4. Pent_UL.sch Fig. 7. Pentode curves in Ultra-Linear (UL) mode (screen grid on 40% output transformer tap). VG2NOM should be set to the quiescent plate voltage. EVALUE E2 attribute EXPR should be set to V(%IN+, %IN-)*.4+V(1P)*.6 . Ultra-Linear mode is a compromise between pentode and triode mode that shares some of the best attributes of both: much lower output impedance than pentode mode and much greater power output than triode mode.
Control files and netlists for these files, as well as a earlier versions written in SPICE language, are shown in Appendices A1 and A2. Additional instructions on using these files are near the end of Part 2. Pentode, triode, and UL mode plots for the GE 6550A are shown below. The 6550A data sheet is available from Frank's electron tube pages. It's gratifying to see the excellent agreement with data in all three modes.


Figure 5. 6550A Pentode mode plate curves.


Figure 6. 6550A Pentode, Triode mode plate curves.


Figure 7. 6550A Pentode, Ultra-Linear (UL) mode plate curves.

Output transformers

Output transformers have traditionally been surrounded by an aura of mystery, and hard data has been hard to find. Plitron Manufacturing Inc. (601 Magnetic Drive #8, Toronto, Ontario, Canada M3J3J2, 416-667-9914) has improved this situation in a new line of toroidal output transformers that have an unusually complete set of specifications.9 They have also published an excellent book, 'Transformers and Tubes in Power Amplifiers', by Menno Vanderveen, that describes these specs in detail.

Toroidal transformers have much lower leakage flux than traditional 'EI' transformers (so-named after their core geometry). This results in an extremely large bandwidth. Their only drawback is that their extremely low magnetic circuit reluctance makes it necessary to balance the dc current in the two haves of the primary winding extra care. Table 2 gives parameters for the PAT-4006-CFB output transformer relevant to SPICE simulation. The PAT-4006-CFB is a semi-custom version of the 100W PAT-4006, available on special order, designed for four 6550 or similar tubes in push-pull-parallel. It has a 2 kohm primary winding and two center-tapped secondary windings: a 5 ohm winding for the speaker and a 20 ohm winding for feedback.

PARAMETERSYMBOLVALUE
Total primary inductanceLP392.5H
Primary leakage inductanceLSP0.972mH
Quality factor = LP / LSPQ403600
Ultra-linear tap40%
Turns ratioNP/NS20
Effective primary capacitanceCIP342pF
Total primary resistanceRIP56 ohms
Total secondary resistanceRIS0.1 ohms

Table 2. Parameters of the Plitron PAT-4006-CFB output transformer

To develop the SPICE model (Appendix A3), the center-tapped primary winding with ultra-linear taps is divided into four mutually-coupled segments that have {0.3, 0.2, 0.2, 0.3} of the total number of windings. The inductance of each segment is proportional to the square of the number of windings: {.09LP, .04LP, .04LP, .09LP} = {35.325H, 15.7H, 15.7H, 35.325H}. The ratio of primary to secondary inductance is (NP/ NS)2. The transformer's coefficient of mutual coupling, KALL, is entered into the SPICE data file:

KALL = sqrt(1-1/Q) ~= 1-1/(2Q) (The approximation holds for large Q.)

The primary leakage inductance, LSP, should not be entered into the SPICE model. Its effects are calculated from KALL

Push Pull Converter Pspice Student Download

. Similarly, the total primary inductance, LP, is not entered. The effective primary capacitance,

Push Pull Converter Pspice Student

CIP, is inserted between the end terminals of the primary winding. The SPICE model of the PAT-4006-CFB in Appendix A3 matches Plitron's published data very closely. Primary and secondary resistances have been omitted for the sake of simplicity (to avoid bumping into the limits of the PSpice evaluation package) and because they have very little effect on performance: They are only about 2.5% of their corresponding impedances. They can be easily added if required.

Example: The original PAS preamplifier


Figure 8. Original PAS-3 line amplifier schematic diagram.


Figure 9. Original PAS-3 line amplifier frequency response at first gain stage plate (3P)
and output (LINE_OUT). Generated by Probe.

The frequency reponse at the output meets the 20-20,000 Hz ±1dB specification with no problem, but there is a huge 0.5 Hz peak at the first gain stage plate. Altough this peak is well outside the range of hearing it caused definite audible problems, especially on records, where the rotational frequency at 33.3 RPM is-- you guessed it-- almost exactly 0.5 Hz. It was a sort of grindy sound-- perhaps an intermodulation distortion component. A redesign, discussed in Feedback and Fidelity and SPICE and the art of preamplifier design, fixed it beautifully. Listings and excerpts from the output files are in Appendix A4 in part 2.

Output files PASorgTC.cir and PASorgTC.net were generated by schematics. Output file PASorgTC.out was generated by PSpice. Many of the lines in PASorgTC.cir are generated from Schematics by clicking on Analysis, Setup..., then working with the appropriate boxes. .LIB is followed by the name of the library file that contains subcircuits referenced in the program. .PROBE instructs the program to generate data for the PROBE program, which displays graphs of time and/or frequency domain signals at each node. .ac calls for an ac (frequency-domain) analysis, i.e., a frequency sweep with 20 points per decade from 0.01 Hz to 1 MHz. If present, .TRAN calls for a transient (time-domain) analysis, which is required if a Fourier analysis is to be performed.

Appendix A4C shows some of the results of running PSpice, including the dc voltages at each node, the currents drawn by the two voltage sources, and the total power consumption. The first tube is labelled TU3 because TU1 and TU2 were in the phono preamplifier. For example, the plates of TU3 and TU4 are at 168 and 196 volts-- about where they should be (a little over half the supply voltage). A Fourier analysis can be performed for time domain simulations.

Lessons

Audio myths die hard, but several wither under the bright light of SPICE simulation. Feedback loops, which generate plenty of controversy in audio circles, are well-suited for SPICE analysis. We can only touch on them here- I discuss them in detail in Feedback and Fidelity.

Let A be the open-loop (non-feedback) gain of an amplifier. Let B be the fraction of the output voltage that the feedback circuit subtracts from the input. The closed-loop gain (with feedback) of the amplifier is

G = A/(1+AB)

(7)
T = AB is called loop gain. A 180 degree phase shift in open-loop gain A at any frequency where T > 1 will cause oscillation. An RC network has a maximum phase shift of 90 degrees at frequencies well beyond its corner frequency (1/2pRC).

For a feedback loop to be stable, rolloff at both low and high frequencies must be dominated by a single RC network (known to the mathematically literate as a pole on the complex plane) at frequencies where T > 1. Instabilities (near-oscillation situations) appear as peaks or irregularities in the frequency response curve. Such instabilities are shockingly common, even in very expensive high-end amplifiers. In Stereophile equipment reviews, they appear as supersonic peaks of up to 3dB between 50 and 150kHz in frequency response curves measured with 8 ohm resistive loads.6 In a particularly amusing case, an $18,990 amplifier with such a peak received a mixed review, drawing an angry long-winded response explaining how every detail of the setup (down to the power cord) had to be perfect for these incredible amplifiers to sound decent. Ridiculous! (It was a Jadis; I didn't want to mention the brand when I first published this article.)

Response peaks are indicative of poor phase margin- the amount of additional phase shift that can be tolerated before oscillation begins. Since reactive loads tend to increase phase shift, poor phase margin can make an amplifier particularly sensitive to cables and loudspeakers. (Of course, some audiophiles might regard sensitivity to speaker cables as a virtue!) Phase margin should be a standard specification in audio amplifiers: It is one of those seldom-mentioned factors that affect sonic quality. One of the reasons for the current popularity of triode amplifiers without feedback may be that they have no phase margin problem.

Some instability is inevitable when feedback is applied to tube amplifiers with output transformers because the high frequency rolloff of transformers is dominated by a complex pole pair. This necessitates some form of compensation, i.e., an RC network that rolls off response at frequencies lower than the transformer cutoff. The most common technique is to place a capacitor in parallel with the global feedback resistor. Beware of this technique: It works in the near-audio range, but SPICE shows that it can cause response irregularities at extremely high frequencies (as well as inserting RF interference from speaker cables into the amplifier input).

A better approach to compensating feedback loops to add a capacitor between the grid and plate of the tube to which the feedback returns (usually the input tube). The RC network formed by this capacitor and the input grid-stop resistor (a 2k to 10k resistor which should be added if not present) then becomes the dominant frequency-limiting network. The effective capacitance in this RC network is the sum of this capacitor and the tube inter-element capacitance multiplied by the gain of the stage (which is reduced by feedback). This is known as the Miller effect. The proper capacitor value (a few picofarads) must be determined by trial-and-error: The calculations are not simple. This is where SPICE really shines. You can try a new capacitor value and examine its effects in about a minute.

Tube response extends well beyond 1MHz. The .AC sweep in SPICE makes it easy to observe extremes of frequency: I routinely test 0.01Hz to 100MHz. To determine the correct compensation capacitor, observe the signals at the amplifier output and the plate of the input (feedback return) stage at frequencies up to 100MHz. Do this without and with capacitors across the load, which always degrade stability. (Instabilities are visible as high frequency peaks.) Increasing the compensation capacitor rolls off high frequencies but increases stability. If your circuit and output transformer are well-designed, you should be able choose a value for the compensation capacitor that extends your amplifier's frequency response well-beyond the limits of audibility (20kHz) while maintaining stability with the largest shunt capacitance likely to arise from cables and speakers. If you plan to use electrostatic speakers, you will probably need extra compensation capacitance. The final value must be determined experimentally, but it should be close (within 30%) to the SPICE-determined value.

Few of us have signal generators that go down to 0.5Hz, but SPICE shows up a resonance at that frequency in the line stage of the venerable PAS7 (40 dB or more at the input stage plate), which can be quite serious because 0.5 Hz is close to the frequency of record warps. SPICE makes it easy to observe the response at intermediate gain stages as well as the output.

Using SPICE to investigate circuits has been nothing short of a revelation for me. I've been able to try out and rapidly debug new designs that I wouldn't have otherwise risked, and I've answered many nagging questions. I hear a strong correlation between SPICE results (in areas such as stability and RF susceptibility) and subjective sound quality. I fiund SPICE to be far more beneficial than 'floobie dust' (extremely expensive premium components alleged to produce magical results).


Part 2: Listings and PSpice operation | Norman Koren Vacuum tube audio page
Finding SPICE tube model parameters
.
This page created
December 8, 2003
Images and text copyright (C) 2000-2012 by Norman Koren. Norman Koren lives in Boulder, Colorado. Since 2003 most of his time has been devoted to the development of Imatest. He has been involved with photography since 1964. Designing vacuum tube audio amplifiers was his passion between about 1990 to 1998.
Engineers are familiar with the term Switched Mode Power Supply or SMPS. Once it is understood that what SMPS actually is, its countless applications can be easily imagined.
An SMPS is used for converting the electronic power supply efficiently. It is used to supply power to sensitive devices that require stable power supply with high efficiency. Any SMPS has some storage components which store electrical energy to supply to the load device and some switching components which turn on and off at high frequencies charging and discharging the storage components.
The power is supplied to the load device by discharge of the storage component when the switching component is in non-conduction state. The use of switching regulators makes the SMPS different from the linear regulators. The SMPS can be AC to DC, DC to DC, AC to AC or DC to AC supply. In this series on designing SMPS, AC to DC and DC to DC SMPS are dealt.
The switching regulators (like transistors) in SMPS continuously switches between their ON and OFF state. So they spend very less time in high dissipation state which reduces power dissipation of the system. In Linear regulators, all the power is dissipated in the form of heat which reduces the overall efficiency of the system. Due to use of switching components working at high frequency, SMPS can be made to deliver high efficiency up to 95%. SMPS can be used in place of any linear regulator when high efficiency and a small size, light weight power supply is required.
In this series, SMPS are designed by using different topologies. For designing SMPS (AC to DC type) they can be categorized as follow –
Fig. 2: Image showing Different Types of SMPS
First the SMPS can be broadly categorized in two categories –
2. Isolated SMPS
In Non–isolated SMPS the input and output share the same ground or it can be said that there is an electrical connection between the input and output. But in Isolated SMPS the input and output are isolated from each other by a transformer which gives safety from any electric shock by the input power supply (AC).
In Non-Isolated SMPS, the basic topologies of SMPS can be categorized on the basis of Input-Output Voltage as follows –
1.Boost Converter – In this SMPS, the output voltage is always greater than Input voltage.
2.Buck Converter– In this SMPS, the output voltage always less than Input voltage
3.Buck-Boost Converter– In this SMPS, the output voltage can be greater or less than the Input voltage
In Isolated SMPS, there are two topologies of SMPS which are designed in this series. They are as follows –
4. Push-pull Converter
5. Flyback Converter
Now the above mentioned topologies can be further divided into different types as follows –

1. Boost Converter or Buck Converter

In this series of SMPS, a Boost converter and Buck Converter is designed by four ways –
I. Open Loop Boost/Buck Converter- In this Boost Converter, there is no any error detection circuit or any feedback circuit. So the output voltage of this Boost Converter will be unregulated.
II. Closed Loop Boost/Buck Converter – In this Boost Converter there will be an error detection circuit or feedback circuit. This feedback circuit helps in regulating the output voltage.
III.Open Loop Boost/Buck Converter with Adjustable Output –This Boost Converter will have a variable output voltage but without any error detection circuit or feedback circuit. So the output voltage of this Boost Converter will be variable but unregulated.
IV. Closed Loop Boost/Buck Converter with Adjustable Output- This Boost Converter will have a variable output voltage and a feedback circuit. So the output voltage of this Boost Converter will be variable and regulated.

2. Buck-BoostConverter

There will be two types of Buck-Boost Converters designed in this series –
I. Open Loop Inverting Buck – Boost Converter- In an Inverting Buck-Boost converter, the output voltage can be greater and less that the input voltage. The polarity of the output is opposite to the input voltage that’s why it is called Inverting Buck-Boost converter.
II. Open Loop Inverting Buck – Boost Converter with Adjustable Output
In this Buck-Boost Converter, the output voltage can be varied from the lower voltage (voltage less than input voltage) to the higher voltage level (voltage greater than input voltage).

3. Flyback converter

The Flyback converter is just like a Buck-Boost Converter, the only difference is that in Buck-Boost Converter it uses a single winding of inductor, in the Flyback converter the inductor splits into two windings which form a transformer. This gives the isolation to the output from input. In this series, a Flyback converter is designed which will step down the input voltage and give low voltage at the output.

4. Push–pull converter

An Open Loop Push-Pull converter will be designed which will be a DC to DC SMPS. This converter uses the transformer for converting one DC voltage to another level. A transformer provides the isolation between input and the output. This converter can provide either high voltage or low voltage at the output as compared to input. The number of turns of transformer and duty cycle will decide whether high voltage or low voltage is delivered at the output.
In this series, a Push-Pull converter will be designed which will step up the input voltage and give high voltage at the output
Now let us understand some basic terminologies which will be used in the designing of the SMPS –
On the basis of output current of SMPS, it can have two modes of operation –
1. Continuous Mode

1. Continuous Mode-

Usually in SMPS circuit there is an inductor at the input which decides the input current. In continuous mode, the current in the inductor is continuous in the entire cycle of the switching period. So a regulated voltage is obtained at the output in continuous mode. In continuous mode, there is some critical value of output current below which the inductor current is zero for a part of switching cycle then the system is said to be in discontinuous mode. So for the operation of continuous mode, the output is always greater than or equivalent to the critical current value.
Below is the waveform which shows the inductor current in continuous mode.
Fig. 3: Graph showing Current Variation in Continuous Conduction Mode of SMPS

2. Discontinuous mode-

In this mode, the current in the inductor is pulsating and it becomes zero for a part of switching time. The current in inductor starts with zero and reaches to peak current then again it returns to zero after completion of one switching cycle. So in this mode, the output voltage is not regulated. So, discontinuous mode needs an error detection block which regulates the output voltage.
Below is the waveform which shows the inductor current in discontinuous mode –
Fig. 4: Graph showing Current Variation in Discontinuous Conduction Mode of SMPS
In this series, each circuit will be designed in both CCM and DCM Modes and there will be the standard eqautions of CCM/DCM used for calcuting the components values.
An SMPS has several advantages over Linear Regulators. Some of the main advantages which leverage SMPS over any linear regulator are as follows –

Small size –

Any SMPS has switching components which work on high frequency. This reduces the size of components required in the circuit design of the SMPS.

Push Pull Converter Pspice Student Login

• Low cost-

Because small size components are used to make the SMPS circuit, so assembling the circuit is less costly.

• High efficiency up to 95%-

Due to the use of switching regulators, the efficiency of SMPS is usually very high. An SMPS can have output efficiency up to 95%. That means, around 95% of the input power can be delivered to the output load.

• Isolation between input and output-

By using a transformer in place of inductor, the SMPS can provide good isolation. By providing the isolation between the input and output, the output load can be saved from any electrical shock or voltage fluctuation from the input supply.
The use of SMPS is not just limited to computers. They are used with most of the sensitive devices that essentially require stable and efficient power supply. They are used as low loss current source to drive LEDs and LED circuits. They are used in self-powered devices. They are also used as an interface between battery and components in CPU or notebooks where voltage demand is lower or higher than the battery voltage.
So in this series, the following SMPS circuits will be designed –
1. Boost Converters –

Push Pull Converter Pspice Student Version

b) Closed Loop Boost Converter
c) Open Loop Boost Converter with Adjustable Output
d) Closed Loop Boost Converter with Adjustable Output
2. Buck Converters –
b) Closed Loop Buck Converter
c) Open Loop Buck Converter with Adjustable Output
d) Closed Loop Buck Converter with Adjustable Output
3. Buck-Boost Converters
b) Open Loop Inverting Buck – Boost Converter with Adjustable Output
4. Flyback Converter
5. Push-Pull Converter