19.12.2013 Views

Laboratory Manual - King Fahd University of Petroleum and Minerals

Laboratory Manual - King Fahd University of Petroleum and Minerals

Laboratory Manual - King Fahd University of Petroleum and Minerals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4. You can use upper or lower case letters.<br />

5. The following subsections explain how to describe elements <strong>and</strong> use the<br />

control comm<strong>and</strong>s.<br />

CIRCUITS ELEMENTS<br />

1. The general format for describing independent voltage source is<br />

Vname N+ N- [DC value] [AC Magn phase] or [SIN V 0 V a freq td df<br />

phase]<br />

Where<br />

The voltage source must start with letter V.<br />

N+ <strong>and</strong> N- are the positive <strong>and</strong> negative nodes <strong>of</strong> the source, respectively.<br />

Sources can be assigned values for dc analysis [DC value], ac analysis [AC<br />

magnitude phase], or transient analysis [SIN].<br />

The ac phase angle is in degrees.<br />

The parameters <strong>of</strong> the sin are given in this order: dc <strong>of</strong>fset, amplitude, frequency,<br />

delay, damping factor, phase, respectively. In most cases there is no need to<br />

specify td, df, <strong>and</strong> phase but rather leave SPICE use their default values <strong>of</strong><br />

zeroes.<br />

Other the transient signal generators such as PULSE <strong>and</strong> PWL are introduced in<br />

Experiment 3.<br />

2. An independent current source can be described similarly but using Iname to replace<br />

Vname. But note that current flows from a positive node to the negative node.<br />

3. Various dependent sources are defined when needed in Experiments 3 <strong>and</strong> 4.<br />

4. Passive elements are described by element statements that specify the type-name <strong>and</strong><br />

terminal connections as follows:<br />

Rname N1 N2 value<br />

Cname N1 N2 value<br />

Lname N1 N2 value<br />

5. Semiconductor devices such as diodes, MOSFETs <strong>and</strong> BJTs are described by two<br />

statements. In addition to an element statement, a model statement is required. SPICE<br />

allows varying degrees <strong>of</strong> circuit element model complexity. In this tutorial we intend to<br />

provide basic default model descriptions <strong>and</strong> more complex model descriptions.<br />

Examples will be used to illustrate the differences between the results obtained using<br />

h<strong>and</strong> calculations, default device models <strong>and</strong> complex device models. By the end <strong>of</strong> this<br />

tutorial we expect that the student will get an appreciation <strong>of</strong> the advantages <strong>of</strong> using<br />

SPICE complex models. The following subsections briefly described element <strong>and</strong> model<br />

statements for basic semiconductor devices.<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!