eCircuit  Center 
EE Design Series - DVM 1

About SPICE | SPICE Basics | Running SPICE | CIRCUIT COLLECTION
SPICE Commands | SPICE Downloads | About | Contact | Home

Basic SPICE Simulation

sch

INTRO

Why simulate a circuit? Two compelling reasons can drive us.

The good news is that SPICE simulators are not only powerful, but available in many free versions. We'll use both LTSPICE (a schematic file) and PSPICE (a netlist file).

See an Advanced SPICE circuit in Part 2.

Back to Design Series
 

UNDERSTAND YOUR CIRCUIT

Simulation is learning power tool to help build your intuitive understanding of a circuit. Play in this learning lab often!

VERIFY YOUR SPEC

Design Verification (DV) can be a daunting, often confusing undertaking. But a straightforward approach can clear a successful path.

WHICH SPECS?

Select from Requirements or Design docs. You typically start with basic functions, then verifying more complex ones.

Source Link
Requirements Specification Go there
Circuit Design Go there

ERROR LIMITS

How do you decide what value passes a test? For a general functional test, I typical set the error limits as follows.

How to calculate the error limits? For a limit of X%, you set

 

SPICE CIRCUIT

sch

LTSPICE Schematic: DVM1_basic1.asc
PSPICE Netlist: DVM1_basic1_netlist.cir
Right Click on filename, select "Save link as...",

HANDS-ON SIMULATION

RUN several simulation tests below - does the circuit meet spec?

 

INPUT VOLTAGE DIVIDER

Does the input divider accomplish it's purpose of either 1) directly passing, or 2) scaling down an input signal?

SPECIFICATION:  Input Divider, Gain (K=1), 4V Range.

SET INPUT AND CONDITIONS

SELECT OUTPUT AND MEASUREMENT

RUN SPICE

MEASURE AND CHECK

 

SPECIFICATION:  Input Divider, Gain (K=0.2), 20V Range.

SET INPUT AND CONDITIONS

SELECT OUTPUT AND MEASUREMENT

RUN SPICE

MEASURE AND CHECK

 

LOW-PASS FILTER

How can we run both a Time Analysis (TRAN) and Frequency (AC) Analysis to verify the functionality of the Low-Pass Filter?

SPECIFICATION:  Low-Pass Filter, Risetime (tr63=0.03).

INPUTS AND CONDITIONS

OUTPUTS AND MEASUREMENTS

SPICE SIMULATION

RESULTS AND P/F

 

SPECIFICATION:  Low-Pass Filter, Bandwidth -3dB (fc=5.3Hz).

INPUTS AND CONDITIONS

OUTPUTS AND MEASUREMENTS

SPICE SIMULATION

RESULTS AND P/F

 

SPECIFICATION:  Low-Pass Filter, Attenuation at 60Hz.

INPUTS AND CONDITIONS

OUTPUTS AND MEASUREMENTS

SPICE SIMULATION

RESULTS AND P/F

 

HANDS-ON TEST TRACKER

Play in the Excel file - modify values, see what happens!

Test Result Checker

NEXT UP

Having verified our basic topology, let's dive a bit deeper into the circuit's operation with an Advanced SPICE simulation.

Back to Design Series