Table Of ContentAnalog Design and
®
Simulation using OrCAD
®
Capture and PSpice
This page intentionally left blank
Analog Design and
®
Simulation using OrCAD
®
Capture and PSpice
Second Edition
DENNIS FITZPATRICK
NewnesisanimprintofElsevier
TheBoulevard,LangfordLane,Kidlington,OxfordOX51GB,UnitedKingdom
50HampshireStreet,5thFloor,Cambridge,MA02139,UnitedStates
©2018ElsevierLtd.Allrightsreserved.
Nopartofthispublicationmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,
includingphotocopying,recording,oranyinformationstorageandretrievalsystem,withoutpermissioninwriting
fromthepublisher.Detailsonhowtoseekpermission,furtherinformationaboutthePublisher’spermissionspolicies
andourarrangementswithorganizationssuchastheCopyrightClearanceCenterandtheCopyrightLicensingAgency,
canbefoundatourwebsite:www.elsevier.com/permissions.
ThisbookandtheindividualcontributionscontainedinitareprotectedundercopyrightbythePublisher(otherthanas
maybenotedherein).
Notices
Knowledgeandbestpracticeinthisfieldareconstantlychanging.Asnewresearchandexperiencebroaden
ourunderstanding,changesinresearchmethods,professionalpractices,ormedicaltreatmentmaybecomenecessary.
Practitionersandresearchersmustalwaysrelyontheirownexperienceandknowledgeinevaluatingandusingany
information,methods,compounds,orexperimentsdescribedherein.Inusingsuchinformationormethodsthey
shouldbemindfuloftheirownsafetyandthesafetyofothers,includingpartiesforwhomtheyhaveaprofessional
responsibility.
Tothefullestextentofthelaw,neitherthePublishernortheauthors,contributors,oreditors,assumeanyliability
foranyinjuryand/ordamagetopersonsorpropertyasamatterofproductsliability,negligenceorotherwise,orfromany
useoroperationofanymethods,products,instructions,orideascontainedinthematerialherein.
LibraryofCongressCataloging-in-PublicationData
AcatalogrecordforthisbookisavailablefromtheLibraryofCongress
BritishLibraryCataloguing-in-PublicationData
AcataloguerecordforthisbookisavailablefromtheBritishLibrary
ISBN:978-0-08-102505-5
ForinformationonallNewnespublications
visitourwebsiteathttps://www.elsevier.com/books-and-journals
Publisher:MaraConner
AcquisitionEditor:TimPitts
EditorialProjectManager:KatieChan
ProductionProjectManager:AnithaSivaraj
Designer:MarkRogers
TypesetbySPiGlobal,India
CONTENTS
1. GettingStarted 1
1.1 StartingCapture 1
1.2 CreatingaPSpiceProject 2
1.3 SymbolsandParts 8
1.4 PSpiceModelingApplications 18
1.5 DesignTemplates 19
1.6 DemoDesigns 20
1.7 ExportingCaptureDesigns 21
1.8 SavingaProject 23
1.9 Summary 26
1.10 Exercises 27
1.11 ExtraLibraryWork 32
2. DC Bias Point Analysis 35
2.1 NetlistGeneration 38
2.2 DisplayingBiasPoints 43
2.3 SaveBiasPoint 44
2.4 LoadBiasPoint 45
2.5 Exercises 45
3. DC Analysis 53
3.1 DCVoltageSweep 54
3.2 Markers 54
3.3 Exercises 59
4. AC Analysis 69
4.1 SimulationParameters 70
4.2 ACMarkers 72
4.3 Exercises 72
5. Parametric Sweep 79
5.1 PropertyEditor 79
5.2 Exercises 83
v
vi Contents
6. StimulusEditor 99
6.1 StimulusEditorTransientSources 100
6.2 User-GeneratedTime-VoltageWaveforms 106
6.3 SimulationProfiles 107
6.4 Exercise 107
7. Transient Analysis 117
7.1 SimulationSettings 118
7.2 Scheduling 118
7.3 CheckPoints 119
7.4 DefiningaTime-VoltageStimulusUsingTextFiles 120
7.5 Exercises 122
8. Convergence Problemsand Error Messages 131
8.1 CommonErrorMessages 131
8.2 EstablishingaBiasPoint 132
8.3 ConvergenceIssues 133
8.4 SimulationSettingsOptions 134
8.5 Exercises 136
9. Transformers 141
9.1 LinearTransformer 141
9.2 NonlinearTransformer 142
9.3 PredefinedTransformers 144
9.4 Exercises 144
10. Monte Carlo Analysis 151
10.1 SimulationSettings 152
10.2 AddingToleranceValues 155
10.3 Exercises 156
11. Worst Case Analysis 165
11.1 SensitivityAnalysis 166
11.2 WorstCaseAnalysis 167
11.3 AddingTolerances 168
11.4 CollatingFunctions 168
11.5 Exercise 169
12. Performance Analysis 177
12.1 MeasurementFunctions 177
Contents vii
12.2 MeasurementDefinitions 177
12.3 Exercises 180
13. Analog Behaviorial Models 185
13.1 ABMDevices 185
13.2 Exercises 192
14. Noise Analysis 197
14.1 NoiseTypes 197
14.2 TotalNoiseContributions 198
14.3 RunningaNoiseAnalysis 199
14.4 NoiseDefinitions 200
14.5 Exercise 203
15. Temperature Analysis 209
15.1 TemperatureCoefficients 209
15.2 RunningaTemperatureAnalysis 210
15.3 Exercises 212
16. Addingand CreatingPSpiceModels 217
16.1 CapturePropertiesforaPSpicePart 217
16.2 PSpiceModelDefinition 219
16.3 Subcircuits 221
16.4 ModelEditor 223
16.5 Exercises 231
17. Transmission Lines 243
17.1 IdealTransmissionLines 243
17.2 LossyTransmissionLines 244
17.3 Exercises 247
18. DigitalSimulation 259
18.1 DigitalDeviceModels 259
18.2 DigitalCircuits 260
18.3 DigitalSimulationProfile 262
18.4 DisplayingDigitalSignals 263
18.5 Exercises 264
19. Mixed Simulation 275
19.1 Exercises 276
viii Contents
20. Creating Hierarchical Designs 283
20.1 HierarchicalPortsandOff-PageConnectors 285
20.2 HierarchicalBlocksandSymbols 287
20.3 PassingParameters 289
20.4 HierarchicalNetlist 290
20.5 Exercises 291
21. Magnetic Parts Editor 311
21.1 DesignCycle 311
21.2 Exercises 312
22. Test Benches 331
22.1 SelectionofTestBenchParts 332
22.2 UnconnectedFloatingNets 333
22.3 ComparingandUpdatingDifferencesBetween
theMasterDesignandTestBenchDesigns 335
22.4 Exercises 336
23. Advanced Analysis 347
23.1 Introduction 347
24. Sensitivity Analysis 351
Introduction 351
24.1 AbsoluteandRelativeAnalysis 352
24.2 Example 353
24.3 AssigningComponentandParameterTolerances 354
24.4 Exercises 357
25. Optimizer 367
Introduction 367
25.1 OptimizationEngines 367
25.2 MeasurementExpressions 368
25.3 Specifications 368
25.4 Exercises 369
26. Monte Carlo 379
26.1 Introduction 379
26.2 Exercise 382
Contents ix
27. SmokeAnalysis 385
27.1 PassiveSmokeParameters 387
27.2 ActiveSmokeParameters 392
27.3 DeratingFiles 395
27.4 Example1 398
27.5 Exercises 401
27.6 Example2 404
27.7 Example3 414
27.8 Example4 419
Appendix 425
Index 427
Description:New to this edition: Updated to using OrCAD Release 17.2 and its new features; Coverage of PSPICE extra features: PSpice Designer, PSpice Designer Plus, Modelling Application, PSpice Part Search Symbol Viewer, PSpice Report, Associate PSpice model, New delay functions for Behavioural Simulation Mode