introduction to simulation using edwinxp - visionics.a.se · section has experiments described in a...

9

Upload: danghanh

Post on 12-May-2018

238 views

Category:

Documents


2 download

TRANSCRIPT

Introduction to Simulation using EDWinXP

Introduction to Simulation using EDWinXP First Edition

© Copyright Notice

ALL RIGHTS RESERVED. Any unauthorized reprint or use of this material is prohibited. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system without express written permission from the author / publisher.

Published by

Visionics India Pvt Ltd, Technopark, Trivandrum

Preface This book is compiled for the easier illustration of SPICE simulation and PCB designing to cater the syllabus of various Universities for the undergraduate level of Engineering. Each section has experiments described in a step by step manner.

This book is divided into five sections.

Introduction to EDWinXP, Introduction to EDSpice Simulator and the types of analysis that can be performed in EDSpice Simulator, EDSpice simulation experiments, SPICE circuit files, VHDL code samples, examples of 8051, AVR, PIC and Motorola microcontrollers and PCB design.

The EDSpice simulation experiments describes the Aim, Components required for the simulation, the circuit diagram, procedure, steps for the simulation and finally the result of the simulation. The Components required for the experiment is given as Type of Component – EDWinXP Component Name (Number of Components). The procedure section describes the method of simulating the circuit with the values to be assigned to each component in the circuit and the steps for simulating the circuit for the specified analysis. The result is obtained in the Waveform viewer.

SPICE section lists the *.cir files for the circuits that can be simulated in EDWinXP CIR file Editor.

VHDL simulation illustrates the list of experiments written in VHDL. The VHDL Editor in EDWinXP can be used for its simulation.

The microcontroller section give the real time simulation of the projects using different microcontrollers.

The PCB section describes the procedure of designing of PCB in EDWinXP.

Contents • About EDWinXP 1 • EDSpice Simulator 3

Introduction 3 Type of Analysis 4

1. EDSpice Simulation 7

1. RC Coupled Amplifier 8 2. Diode Characteristics 22 3. V.I. Characteristics Of Zener Diode 24 4. BJT Input Characteristics – Common Emitter Configuration 25 5. BJT Input Characteristics – Common Base Configuration 27 6. BJT Output Characteristics – Common Base Configuration 29 7. FET Input Characteristics 32 8. FET Output Characteristics 34 9. MOSFET Input Characteristics 36 10. MOSFET Output Characteristics 38 11. Positive Clipper 40 12. Negative Clipper 41 13. Biased Double Limiter 43 14. Differentiator 45 15. Integrator (Triangle Output) 47 16. Integrator 49 17. Half Wave Rectifier 51 18. Positive Clamper 53 19. Negative Clamper 55 20. Biased Positive Clamper 56 21. Emitter Follower 58 22. Astable Multivibrator 60 23. Monostable Multivibrator 62 24. Bistable Multivibrator 64 25. Schmitt Trigger 66 26. Sweep Generator 68 27. Bootstrap Sweep Circuit 70 28. UJT Relaxation Oscillator 72 29. Series Voltage Generator 74 30. JFET Amplifier 76 31. Series Voltage Regulator 78 32. Class A Power Amplifier 80 33. Class C Power Amplifier 82 34. Complementary Symmetry Push Pull Amplifier 84 35. Cascode Amplifier 86 36. Current Time Base Generator 88 37. Opamp Differentiator 90 38. Opamp Integrator 92 39. Opamp Integrator with feedback 94 40. 741 Non-Inverting Summing Amplifier 96 41. 741 Non-Inverting Averaging Amplifier 98

42. First order active low pass filter 100 43. First order active notch filter 102 44. Opamp Asymmetric Astable Multivibrator 104 45. Opamp Current To Voltage Converter 106 46. Differential Amplifier 108 47. Opamp Monostable Multivibrator 110 48. Opamp Schmitt Trigger 112 49. Opamp Voltage Limiter 114 50. Opamp Peak Detector 116 51. Opamp Precision Half Wave Rectifier 118 52. Opamp Precision Full Wave Rectifier 120 53. Square Wave Generator 122 54. Window Detector 124 55. Saw tooth wave generator 126 56. RC Phase Shift Oscillator 128 57. Hartely Oscillator 130 58. Colpitts Oscillator 132

2. SPICE 134

1. RC Differentiator Sine 135 2. RC Differentiator with Pulse 135 3. RC Differentiator with Sine 135 4. Full Wave W/O Filter 135 5. Full Wave With filter 135 6. Bridge Rectifier 136 7. Clipper 136 8. Clipper DC Characteristics 136 9. Clamper 136 10. Bias clamper 136 11. Diode Characteristics – Forward 137 12. Diode Characteristics – Reverse 137 13. Transistor Output Characteristics 137 14. Transistor Input Characteristics 137 15. FET IDS vs VGS Characteristics 137 16. FET Characteristics 137 17. Amplifier DC Bias 138 18. RC coupled Amplifier 138 19. RC Coupled Amplifier Response 138 20. RC Phase Shift Oscillator 138 21. Astable Multivibrator 139 22. JFET Amplifier 139 23. Frequency Response 140 24. Op Amp Integrator 140 25. Op Amp Differentiator 140 26. Filter 141

3. VHDL Simulation 142 1. Adder 4 Bit 143 2. Adder Subtractor 143 3. BCD 7 Segment Decoder 144

4. Binary BCD Converter 144 5. Binary Counter 8 Bit 145 6. Binary Gray Converter 147 7. Comparator 3 Bit Easiest 147 8. Comparator 4 Bit 148 9. Multiplexer 16 Bit 148 10. Priority Encoder 149 11. Rom 16x8 150 12. Serial In Serial Out Shift Register 150 13. Parallel In Serial Out Shift Register 151 14. Johnson Counter 152 15. Decade Counter 153

4. 8051 Microcontroller 154 1. 8 bit Addition 156 2. 8 bit Subtraction 158 3. 8 bit Multiplication 160 4. 8 bit Division 162 5. 16 bit Addition 164 6. 16 bit Subtraction 166 7. Factorial 168 8. HCF 170 9. LCM 172 10. Matrix Addition 174 11. RAM Sort 176 12. Sorting 178 13. Squareroot of a Number 180 14. Square of a Number 182 15. Sawtooth waveform generation 184 16. Triangle waveform generation 186 17. Stepper motor 188 18. ADC 190 19. Add Sub 192 20. Biggest Number 193 21. Counter 255 194 22. Count Num 195 23. DAC 196 24. Division Multiplication 197

5. AVR Microcontroller 199

1. 4052 Analog Mux Demux 201 2. Binary to Graycode 202 3. Encryption 202

6. PIC Microcontroller 203 1. Addition 205 2. Subtraction 206 3. Multiplication 208 4. Division 210 5. BCD to Binary Converter 212

6. Multiplication and Division using PIC Microcontroller 217

7. Motorola Microcontroller 225 1. Pulse Counter 226 2. Voltage Reader 228

8. PCB Design 233