Build an Op Amp SPICE Model from Its Datasheet – Part 4

MasteringElectronicsDesign.com:Build an Op Amp SPICE Model from Its Datasheet – Part 1, Part 2, and Part 3 of this article show how to create a behavioral model of an operational amplifier based on the following parameters found in the datasheet: Input and output resistance, input capacitance, DC gain, offset voltage and gain bandwidth product. As an example I chose Analog Devices’ ADA4004 and built its behavioral model step by step. Figure 1 shows the model as we left off at the end of part 3.

ADA4004 macro model with two polesExpand this figure

Figure 1

Let’s continue building this model with some more parameters.

Read more

Build an Op Amp SPICE Model from Its Datasheet – Part 3

MasteringElectronicsDesign.com:Build an Op Amp SPICE Model from Its Datasheet – Part 1 and Part 2 show you how to build an Op Amp SPICE model based on the manufacturer’s datasheet. We talked about modeling the offset voltage, the input resistance and capacitance both common-mode and differential, the output resistance and the frequency domain behavior.

In Part 2, we left off at the open-loop bode plot. We saw that it resembles the datasheet. However, our op amp example, ADA4004 from Analog Devices, shows an extra pole after 1 MHz. Indeed, the phase starts dropping after 1 MHz and becomes 45 degrees at 17 MHz. Therefore, we need another pole in our model at 17 MHz.

Introducing the Second Pole

The pole can be introduced using the same technique we used in Part 2. We will use an RC Norton source. Since the DC open-loop gain is already set by the first pole, we only need to make sure that the choice of current and resistor does not affect the DC gain. This second pole influence has to be only at high frequencies. At low frequencies its gain should be 1, so that the overall open-loop gain remains 500000.

Read more

Build an Op Amp SPICE Model from Its Datasheet – Part 2

Part 1 of this article (http://MasteringElectronicsDesign.com/buildi-an-op-amp-spice-model-from-its-datasheet/) shows how to create a behavioral model of an operational amplifier based on the following parameters found in the datasheet: Input and output resistance, input capacitance, DC gain, and offset voltage. As an example I chose Analog Devices’ ADA4004. Let’s continue building this model to simulate the Gain Bandwidth Product.

Gain Bandwidth Product

The Gain Bandwidth Product, describes the op amp behavior with frequency. Op amps have a dominant pole, inserted by manufacturers on purpose, so that the op amp is stable at any gain down to zero dB. See this article for more details: MasteringElectronicsDesign.com:An Op Amp Gain Bandwidth Product. In that article I showed that ADA4004 has a cutoff frequency at 24 Hz. This frequency is not identified in the datasheet, but can be easily calculated from the open-loop minimum gain of 500000 and the gain bandwidth product of 12 MHz.

Starting with the cut-off frequency, the open loop gain versus frequency plot has a drop of 20dB for every decade of frequency. To simulate this we need to introduce this pole in our SPICE model. Question is, how?

Read more

Build an Op Amp SPICE Model from Its Datasheet – Part 1

Why do you need to build your own Op Amp model? Most Op Amp manufacturers have SPICE models for their components and make them available for free. Then why should you know how to build one? Well, not everything has a model and that is why, sometimes, you have to build your own. Also, it may be necessary to study a circuit to see what happens if you change the Op Amp slew rate or bandwidth, offset, and so on. Sometimes the manufacturer own model does not work, as a user found out and posted a question in this forum. I told him that the model has a bug and advised him to build his own.

No matter the reason, building your own model is fun and rewarding and can only add to your overall understanding on how an Op Amp works. One note of caution. The model described here is a behavioral model. This means that the model will mimic the op amp functionality, but will not have any transistor or any other semiconductor SPICE models.

Read more

Show Buttons
Hide Buttons
'