Table of Contents
List of Solved Examples xi
Preface xv
Acknowledgments xvii
Author xix
Part I
1 ORCAD PSPICE Capture Fundamentals 1
1.1 Introduction 1
1.2 PSPICE Schematics 1
1.2.1 Starting ORCAD Capture 1
1.2.2 Drawing a Circuit Using the ORCAD Schematic 3
1.3 DC Analysis 6
1.3.1 Bias Point Calculations 7
1.3.2 DC Sweep 8
1.4 PROBE 11
1.5 Transient Analysis 11
1.6 AC Analysis 16
Problems 20
Bibliography 23
2 PSPICE Fundamentals 25
2.1 Introduction 25
2.1.1 Element Statements 25
2.1.2 Control Statements 28
2.2 DC Analysis 30
2.3 Transient Analysis 33
2.3.1 Transient Analysis Sources 34
2.4 AC Analysis 39
2.5 Printing and Plotting 41
2.6 Transfer Function Command 43
2.7 DC Sensitivity Analysis 48
2.8 Temperature Analysis 53
2.9 PROBE Statement 54
Problems 58
Bibliography 63
3 PSPICE Advanced Features 65
3.1 Device Model 65
3.1.1 Resistor Models 67
3.1.2 Capacitor Models 68
3.1.3 Inductor Models 70
3.1.4 Diode Models 72
3.1.5 Bipolar Junction Transistor Models 74
3.1.6 MOSFET Models 76
3.2 Library File 78
3.3 Component Values (.PARAM, .STEP) 80
3.3.1 The .PARAM Statement 80
3.3.2 .STEP Function 82
3.4 Function Definition (.FUNC, .INC) 86
3.4.1 FUNC Statement 86
3.4.2 INC Statement 88
3.5 Subcircuit (.SUBCKT, .ENDS) 89
3.6 Analog Behavioral Model 93
3.6.1 Value Extension 94
3.6.2 Table Extension 96
3.6.3 FREQ Extension 98
3.6.4 LAPLACE Extension 99
3.7 Monte Carlo Analysis (.MS) 103
3.7.1 Component Tolerances for Monte Carlo Analysis 104
3.7.2 Simulation 106
3.8 Sensitivity and Worst-Case Analysis (.WCASE) 107
3.9 Fourier Series (.FOUR) 115
3.9.1 Fourier Analysis Using PROBE 120
3.9.2 RMS and Harmonic Distortion 121
Problems 125
Bibliography 132
Part II
4 MATLAB&Reg; Fundamentals 135
4.1 MATLAB&Reg; Basic Operations 135
4.2 Matrix Operations 137
4.3 Array Operations 141
4.4 Complex Numbers 143
4.5 The Colon Symbol 146
4.6 FOR Loops 148
4.7 IF Statements 150
4.8 Graph Functions 155
4.8.1 X-Y Plots and Annotations 155
4.8.2 Logarithmic and Plot3 Functions 159
4.8.3 Subplot and Screen Control 161
4.8.4 Bar Plots 164
4.8.5 Hist Function 164
4.8.6 Stem Plots 166
4.9 Input/Output Commands 167
Problems 171
Bibliography 177
5 MATLAB&Reg; Functions 179
5.1 M-Files 179
5.1.1 Script Files 179
5.1.2 Function Files 180
5.2 Mathematical Functions 181
5.3 Data Analysis Functions 184
5.4 Derivative Function (diff) 188
5.5 Integration Function (quad, quad8, trapz) 189
5.6 Curve Fitting (polyfit, polyval) 194
5.7 Polynomial Functions (roots, poly, polyval, and fzero) 196
5.7.1 Roots of Polynomials (roots, poly, polyval) 196
5.7.2 Zero of a function (fzero) and nonzero of a function (find) 198
5.7.3 Frequency Response of a Transfer Function (freqs) 199
5.8 Save, Load, and Textread Functions 202
5.8.1 Save and Load Commands 202
5.8.2 The Textread Function 204
5.9 Interfacing SPICE to MATLAB&Reg; 208
Problems 210
Bibliography 216
Part III
6 Diode Circuits 217
6.1 Diode 217
6.2 Rectification 222
6.3 Schematic Capture of Diode Circuits 230
6.4 Zener Diode Voltage Regulator 232
6.5 Peak Detector 239
6.6 Diode Limiters 244
Problems 248
Bibliography 252
7 Operational Amplifier 255
7.1 Inverting and Noninverting Configurations 255
7.1.1 Inverting Configuration 255
7.1.2 Noninverting Configuration 259
7.2 Slew Rate and Full-Power Bandwidth 263
7.3 Schematic Capture of Operational Amplifier Circuits 269
7.4 Active Filter Circuits 270
7.4.1 Lowpass Filters 271
7.4.2 Highpass Filters 274
7.4.3 Bandpass Filters 278
7.4.4 Band-Reject Filters 287
Problems 291
Bibliography 294
8 Transistor Characteristics and Circuits 297
8.1 Characteristics of Bipolar Junction Transistors 297
8.2 MOSFET Characteristics 301
8.2.1 Cut-Off Region 302
8.2.2 Triode Region 302
8.2.3 Saturation Region 303
8.3 Biasing of BJT Circuits 305
8.3.1 Temperature Effects 310
8.4 MOSFET Bias Circuit 312
8.5 Frequency Response of Transistor Amplifiers 317
8.6 Schematic Capture of Transistor Circuits 325
8.7 Feedback Amplifiers 326
Problems 334
Bibliography 338
Index 341