I'm trying to build a very basic 3.3V supply, but would like to simulate the circuit in LTSPice if possible, before I physically build the circuit. I'm using a couple of components not found in LTSpice, for example a AP5100 buck converter.

Is it at all possible to create these custom devices/symbols and simulate their behaviour, or better, do the suppliers typically supply a SPICE model for their components?


You can simulate any part for which you can get or build a model.

Making a model would involve creating a combination of resistors, capacitors, controlled sources, etc., that represent the behavior of the part as a subcircuit in your simulation. For some parts, like maybe a simple op-amp, it's reasonable to try to construct a model like this from information on a datasheet. Although of course you'll only capture the behavior that's represented on the datasheet --- you won't necessarily have correct behavior in corner conditions, in cases when the power supply is not one of the spec'ed levels in the datasheet, etc.

An easier way to get a model is if the part's vendor provides it. However in this case it doesn't appear that Diodes Inc provides a SPICE model for this part. The available SPICE models from Diodes Inc are listed here.

In fact, it's not common (except from Linear Tech) for switching regulators to have SPICE models available. The main reason is that traditional SPICE doesn't model digital switching circuits very efficiently -- LTSpice has significant improvements compared to previous SPICEs in this regard. But other vendors are unsurprisingly not enthusiastic about providing models tied to their competitor's simulation tool. Also, the availability of models for LTSpice is one of the main selling points of LT's switching regulators, so LT is understandably unenthusiastic about enabling other vendors to create LTSpice models for their parts.

So in this case, I think you'd have a lot of trouble creating a model of your circuit. It may cost you a dollar or two extra to use a comparable regulator from LT, but if simulation is important to you it's probably worth it. It's certainly cheaper than doing a re-spin of your board if the other part doesn't work, assuming you're not talking about a project where you'll eventually build 1000's of parts.

  • 1
    \$\begingroup\$ This is awesome! Just simulated a buck regulator from LT, and it works! Neat!!! \$\endgroup\$ – josef.van.niekerk Jan 15 '13 at 20:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.