|
|
|
Beginning with this issue, the internet will be the primary method of publication for this newsletter. Why are we jumping to the web? Well, using HTML hyperlinks, we can instantly link you to associated stories in our vast Newsletter Archives or provide you with instant access to data within our on-line documentation. Youll find that the body of the newsletter is more compact, but the content will be far richer, providing you with much more information at you fingertips. If you are currently on our mailing list, we will notify you by email when the newsletter is posted. If not, drop us a line by email at info@intusoft.com, and well add you to our list. Enjoy our new format! Newsletter Subscribers: You will receive a password to the subscribers page on our web site along with a hardcopy of the newsletter. The subscribers page will provide you with access to the supplementary models and drawing files used in preparation of this newsletter. |
|
Figure 1, Calculator Menu displaying scripts
The leafs of the menu are the .scp files shown in Explorer view below (Figure 2). |
We have enhanced the ICL language for use with our SpiceNet schematic in order to make measurements, retrieve the results of those measurements, and save them in the schematics storage archive. These ICL scripts are also an integral part of our Simulation Template technology (http://www.intusoft.com/script/pages/templates.htm), used for extending IsSpice to perform a family of parametric simulations including worst case analysis. IntuScope5 uses the exact same script language to manipulate waveforms. The scripts are integrated with IntuScope5 by adopting the same Plot and Vector architecture used in IsSpice. (See http://www.intusoft.com/script/pages/plotvec.htm for a description of IsSpice Plots & Vectors.) Assuming a plot is a container for graphs that we view on the screen, each plot has one and only one default or x-axis. In IntuScope4, we allowed anything into a plot so that only the active plot has the correct x-axis. Because IntuScope5 is a bit more rigid, we can allow math between any vectors shown in a plot. When a vector is copied into a plot from another simulation, we can make a new x-axis vector that combines the 2 x-axes and interpolates all of the vectors in that plot, mapping them into the new plot space. When the user chooses a Calculator menu item, the file with a .scp extensions is read by IntuScope5 and executed. Analogous files with the same name and different extensions provide context-sensitive help and bitmaps for toolbars. How do Scripts Work?The first line of the script is a comment line whose text is shown in the status bar. You can then use special codes to make accelerator keys. For example, instead of writing a special code to find the average of a waveform, we execute the following script:
This powerful confluence of features allows you to make complex operations that can be used over and over with a single keystrokes. (Perhaps well get an award for fighting Carpel Tunnel Syndrome!) For example the Bode Plot and Gain and Phase Margin scripts in the Control Systems menu can be combined allowing you to do what if analyses to explore control system stability, a topic for the Power Supply Designers Notebook article included in this newsletter. We want to hear from you, our users, about scripts that you have made or would like us to make and add to our scripts folder. Weve posted a listing of all of the scripts available so you can try them out and let us know what we should ship with the final product. The list is located on our web site (http://www.intusoft.com/products/scope/scope8pic.htm#Priority List). The major tasks we must address before finalizing IntuScope5 as a replacement for IntuScope 4 are:
Weve outlined our plans on the web and are interested in your feedback, so let us know what you think! |
Intusoft is committed to being the best supplier of CAE tools and techniques for power electronics design. To do this, we use our tools to produce the kinds of designs that our users are making. An example of this is Magnetics Designer version 4.1.0, which provides a new sector winding capability along with improved IsSpice models. Using this new transformer design technology, we designed an off-line 80-watt, multiple secondary switched- mode power supply. While creating this design, it became evident that a large signal state-average model would be of great benefit in optimizing the power supply behavior using IsSpice interactive features. Figure 3 illustrates the ease of damping the time domain transient at turn-on by adjusting the damping resistor, R27. The average model used in this simulation ran in under one second, while a cycle-by-cycle switching solution takes over 300 seconds. Clearly, the speed of the simulation affects the quality of the design. For this example, it is unlikely that the user would have run a parametric study of the turn-on transient and would have had some difficulty constructing a laboratory test set that could repetitively switch the input power. You can see in Figure 3 that the reason for performing the simulation is to study circuit behavior, vary parameters that may be impossible to do on a breadboard, and learn about destructive operating points BEFORE blowing up the breadboard. The need for inserting a damping resistor is less than obvious and the lifetime of an oscillating power supply is likely to be shorter than the time required to correct the problem. The average model is widely used for small signal control loop stability analysis. The frequent association with small signal analysis gives the incorrect impression that average models are poor choices for large signal behavior. For development of this model, we also wanted toinclude an estimate of behavior near the Nyquist frequency because the interactive adjustment of the circuit parameters can easily lead to excess control system bandwidth. We wanted to see instability caused by excess bandwidth. |
Figure 3, Turn-on transient at the 5Volt output with -5 Amp load switching at 800uSec.
We were also looking for a good correlation with the cycle-by-cycle switching simulation. The controller is a sampled data system, with sampling at the beginning of the pulse. Figure 4 develops the equation that describes the duty ratio. |
Figure 4, Control law used to calculate Duty Ratio for a current mode controller
The switched mode controllers set the peak current in the system. To get good correlation, the peak current ripple needs to be added back into the system. The input is then scaled to control peak current. The overall block diagram of the average controller is shown in Figure 5. B5 implements the control duty ratio control law while B4 provides the peak correction. Input parameters are:
|
These parameters are set on the main projects Simulation Control Panel, Advanced Parameters tab.
|
The results are quite impressive. The simplified transient simulation ran in 55 seconds while the Average model ran in 1.5 seconds. The resulting accuracy is more than sufficient to zero-in on the best design parameter.
|
Notice
that the compensation circuitry was rearranged for the final circuit (Figure
8). Using lag-lead compensation in the forward loop causes overshoot
at turn-on. The op-amp comes out of saturation when the voltage gets to
the set point. The control voltage at the op-amp output is too large and
stays that way until the integrating capacitor can discharge. An alternate
method of compensation is to use lead-lag compensation in the feedback
loop and pure integration in the forward loop. The lead-lag compensation
causes the integrator to come out of saturation before reaching the output
voltage set point. Using lead-lag feedback compensation eliminates the
need for additional circuitry, which slows down the start-up in order
to eliminate output voltage overshoot. |
Scaling
the output filters (C17, R27) and damping the input filter (R5) relied
heavily on AC analysis using the average model. IntuScope5 provided insight
and rapid parametric evaluation using its new bode plot feature. The IntuScope5
generated bode plot is shown in Figure 9. |
Improving Convergence and Speed of PWM Switching ModelsSpeeding up the switched mode models helps get through some of the more complex analyses in a reasonable time. One of the main stumbling blocks is the need to set the maximum step in the simulator so that important features dont get passed over. The variable step algorithm used by Spice can expand the step time beyond the Nyquist limit. Sometimes a stable sub-harmonic solution is reached. This occurs in the LT1243 oscillator model. Since the oscillator waveform resets in several hundred nanoseconds, it becomes necessary to set the maximum step to 25-50nsec to get an accurate reset pulse. This causes the simulator to take more iterations than are really needed. A straightforward solution is to use a pulse source instead of simulating the oscillator. To get the correct waveforms at the IC pins, the capacitor discharge is simulated. Spice will then set breakpoints at the clock edges. Inputting the RT and CT values as parameters allows the PWM model to calculate its frequency. Gate turn-off switching occurs at the intersection of 2 analog signals, where the time step could be at the maximum if no other activity is taking place. The B element comparator doesnt create break points by itself. The time step can be set to the gate fall time or the circuit can be configured to create breakpoints near the gate switching points. An auxiliary pulse-forming network was introduced in the PWM model to reduce the time step near the gate switching time. The result is shown in Figure 10 with the 1 MegHz secondary regulator turned off. Since the work was done within the model, the user gets the benefit without hassling with the simulator. |
Figure 10, IsSpice time steps are focused by the pulse-forming network, producing small time increments at the gate switching edges.
SummaryThe complete model for Transient and Average operation is in 1243is.dwg in the LT1243new configuration. This was saved in a sub-drawing that is used in Forwardccm.dwg and 80FwdCCM.dwg. Finally, the resulting sub-circuits have been added to the Power Supply Designers libraries for all of the LT12xx family parts and are identified as Improved Performance. You can access the library updates and .dwg files on our web site in the paid maintenance support page for ICAP/4 Power, ICAP/4 Professional, Test Designer and all Power Deluxe packages. Newsletter Subscribers: You can also get the .dwg files using your private password. |
Youve been asking for tools to help with the incorporation of mechanical devices into electronic systems. In response to your requests, Intusoft is now releasing the first in a series of libraries in the area of Mechatronics. This new extension of the ICAP/4 libraries, which includes Power Designer, RF Device, and Vendor-Supplied IC Library, will be an invaluable asset for anyone using both electrical and mechanical components. The first chapter of this exciting new library offers a range of models for the development of hydraulic systems. Servicing the fields of agriculture, forestry, mining, machine tools, and mobile equipment, this library is the perfect addition for the ICAP/4 Windows user (Figure 11). Models for piston accumulators, hydraulic cylinders, valves, and losses will all be included in this first release. Spring-loaded and gas-loaded models are offered for accumulators and hydraulic cylinders. Separate models are also offered for the analysis of compressible and incompressible fluid systems. Dual-chambered cylinders as well as standard, single-chambered cylinders will be available, offering a wide degree of freedom and variability. Major and minor head losses in pipe flow are easily simulated using a variety of different models. Pressure valves also provide added versatility for ICAP/4 users. And, as with the rest of the Intusoft models, each of the new mechatronics models can be custom fitted for use with your hardware. Most standard parameters, such as size, shape, fluid, and material properties, can be modified using the ICAP/4 Windows interface. The ability to edit Spice code is not necessary to customize the library to fit your needs. However, if advanced changes or customization is needed, this feature is still available to you. Even if you are not experienced with hydraulics, you can simulate systems with ease. The on-line help included with this library was written with the electrical designer in mind. Tables including standard values of common materials are provided so you dont have to search for parameters for preliminary designs and calculations. Also, the general information guide gets you up-to-speed on all of the key differences used in mechanical simulation. The beta version of this library is now available in the paid support section of our web site for all ICAP/4 Windows, Professional, Power and Test Designer owners. And, if you download the beta version and provide us with feedback, you will receive the final library for the cost of one years maintenance. |
You asked for it, we did it! Coming soon, SpiceMod will switch from DOS to Windows. A beta version of SpiceMod will be available on the paid support web pages for those who currently own the DOS version. Here's a preview: |
We expect to add tabs for many of our generic models, including Soft Recovery Power Diodes, Tantalum and Ceramic capacitors. Let us know what you need and well put it on our list. |