EMA Resources

Blog

Home > EMA Resources > Blog > Transformer SPICE Model: Explained

Transformer SPICE Model: Explained

Modeling designs helps engineers verify whether their circuit will function as intended. Modeling programs simulate circuit behavior under different conditions and in accordance with the design requirements, allowing engineers to better plan and build circuits.

Typically, to model components, generic models are used, which produce inaccurate and unrealistic simulations based on ideal conditions. This can cause functionality issues to go undetected until far later in the design process. To confidently simulate a component, create a transformer SPICE model using specifications from a manufacturer’s datasheet.

What is a Transformer?

A transformer is a passive electrical device that transfers electric energy from one circuit to another. Changes in electric current flowing through the primary coil, induce current in another coil called the secondary. Transformers are most commonly used to either increase (step up) or reduce (step down) the voltage.

What is Needed to Model a Transformer?

To create the required transformer for simulation, two items must be defined:

  • Type:
    • Which type of transformer is required: two-winding, custom tap, center tap, flyback, forward, or forward with reset winding?
  • Transformer Specifications:
    • What are the specifications of the transformer: winding inductance, winding resistance, etc.?

Once this information is obtained, these values must be incorporated into the SPICE simulation model which can be achieved by manually creating or editing a text file. Keep in mind if the transformer created does not produce the intended outcome and a decision is made to change components, values will need to be edited manually. This manual process to produce an accurate transformer model is time consuming and increases the likelihood of errors; however, the PSpice Modeling App provides a fast, easily configurable, and fully integrated method to create a transformer SPICE model for simulation.

Creating a Transformer SPICE Model with PSpice

The transformer modeling application quickly creates a transformer SPICE model in various configurations with a wizard-based approach:

  • Two-Winding: Generates a model for a simple two-winding transformer.
  • Custom Tap: Generates a model for a custom tap transformer.
  • Center Tap: Generates a model for a center tap transformer.
  • Flyback: Generates a model for a single-ended, flyback converter transformer.
  • Forward: Generates a model for a single-ended, forward converter transformer.
  • Forward with Reset Winding: Generates a model for a single-ended forward converter transformer with auxiliary reset winding.

Based on the transformer configuration, the modeling application will define the required parameters. To create a transformer SPICE model, users can easily input the transformer characteristics, defined by manufacturers, directly into predefined parameters. Every transformer requires the following:

7qFmkF404nMi1o3ebRp7wH NGN88Sg2EZXRGLN0zqljS3MlkPZAvJgkT6EDMOycP0AxatA7 1eBRszq3h4HqRXHIy1UQm8X0 011i6AON6E7ZVF6ppgcXj7rhD05i1FrqYeryBYJYC8
Datasheet Parameters for Transformer SPICE Model Creation

  • Model Name: Specify a name for the model.
  • Primary Winding Inductance: Specify the primary winding inductance or magnetizing inductance to determine the flux that will link the cores.
  • Primary Winding Resistance: Specify the resistance of the primary winding.
  • Secondary Winding Resistance: Specify the resistance of the secondary winding.
  • Turn Ratio: Specify the turn ratio. This is the ratio of the number of turns for the secondary winding (N2) by the number of turns for the primary winding (N1).
  • Leakage Inductance:  Specify the leakage inductance or the energy stored in the non-magnetic regions between windings. This is a result of imperfect flux coupling.

Some transformers have unique requirements. The PSpice Modeling App takes away the guesswork with pre-defined templates customized for each transformer type to quickly create transformer SPICE models.

Center Tap Transformer

For a center tap transformer, easily select the tap for which the parameters are defined:

Q9YlA4wO7EGTOBmK9aVYNM6Vy8oG3RrrsxRAA6rvOllTtOhUNIFWq AvYjBIfOOrxjmEFxrEk5SIS Ur8XPdU4hRyUSLsx pesF8ElWe3m2WrNRjI1yxaG5 F9z0Ze8991 lfLSoKeo
Center Tap Transformer SPICE Model Configuration

  1. Only the primary winding
  2. Only the secondary winding
  3. Both windings

Custom Tap Transformer

Create transformer SPICE Models with the PSpice Modeling Application
Custom Tap Transformer SPICE Model Creation in PSpice

For a custom tap transformer, easily assign parameters to the primary or secondary windings and define the tap percentage.

  • Tap Percentage:

The tap percentage specifies where the tap is required to achieve the desired turns ratio. When Primary % is selected, the tap percentage is specified for the primary winding. When Secondary % is selected, the tap percentage is specified for the secondary winding.

Forward Transformer with Reset Winding

Create a transformer spice model in PSpice with the PSpice modeling application
Forward Transformer SPICE Model Creation with Reset Winding in PSpice

For a forward transformer with reset winding, an additional parameter is required:

  • Reset Winding Turn Ratio:

The reset winding turn ratio is the ratio of the reset turns to the primary winding.

Using the inputted information above, the PSpice Modeling App generates a schematic symbol and automatically associates the newly created transformer SPICE model without leaving the OrCAD Capture environment. The PSpice Modeling App also automatically manages the simulation profile configuration, eliminating any library set up for simulation. To try this yourself, be sure to download the Free Trial of OrCAD. Check back for additional SPICE model how-tos and get step-by-step instructions to create Transformer SPICE models in PSpice here.

LinkedIn
Email

Table of Contents

Get Content Like This Delivered Directly to Your Inbox

Related Resources

EMA Design Automation