ene206 pspice2-2556 lec2 - kmuttwebstaff.kmutt.ac.th/~ekapon.siw/ratchaburi/lectures/pspice...during...

52
Asst.Prof.Rardchawadee Silapunt 1

Upload: trinhtuyen

Post on 30-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

Asst.Prof.Rardchawadee Silapunt

1

Page 2: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

2

� Transformer

� Full wave rectifier

� Operational Amplifier (Op-Amp)

� Digital logic gate

Page 3: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

3

1. Select components from Get New Part.

2. Use wiring tool for drawing the line between components.

12

Page 4: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

4

� Transformer is an electrical device that transfer

energy from one circuit to another through electromagnetic

induction. Transformer can convert both current and voltage.

Page 5: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

5

1. Draw a transformer circuit and modify the values of components.

2. Add K_Linear element in order to create mutually coupled inductors.

� In this schematic, transformer has a ratio of 1:1.

Page 6: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

6

� Set up parameters in transient analysis.

Page 7: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

7

� Put the voltage markers on input and output of the transformer to compare input and output waveforms.

Page 8: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

8

� You can vary output waveform by using 1 1

2 2

N L

N L=

From the schematic, there is . So, the output

waveform has amplitude 50% less than input waveform

1

2

202

5

N

N= =

Page 9: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

9

� Voltage at the primary inductor is 10V and at secondary inductor is 5 V.

Page 10: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

10

� Full wave Rectifier : Center Tap Transformer

� Full wave Rectifier : Bridge Rectifier

http://www.electronics-tutorials.ws/diode/diode_6.html

Page 11: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

11

http://www.docstoc.com/docs/15562456/Full-Wave-Bridge-Rectifier

� A shape of the waveform before and after entering full wave rectifier.

Page 12: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

12http://www.sptc.ac.th/prapruet/devicesweb/books/book_4.htm

Page 13: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

13

http://www.sptc.ac.th/prapruet/devicesweb/books/book_3.htm

� How does the center tap transformer create full wave?

Page 14: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

14

� During a positive cycle, half of the voltage occurs between the center tab and the top of the secondary transformer. D1 is the conducted current and current flows through load.

� During a negative cycle, half of the voltage occurs between the center tab and the bottom of the secondary transformer. D2 is the conducted current and current flows through load.

� Currents in both cycles flow in the same direction. Thus, the output waveform is a full wave.

Page 15: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

15

Page 16: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

16

1. Select Analysis ->setup -> Transient

2. Set up Transient Analysis

3. Measure waveform by voltage marker

Page 17: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

17

� Output waveform is the full wave.

Page 18: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

18

� Add capacitor C1 to lower the voltage ripple.

Page 19: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

19

� Set up values in Transient and Fourier Analysis.

Page 20: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

20

� Compare voltages between input and output.

Page 21: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

21

� Plot -> Add plot to window

� Trace -> Add trace -> I(Rinput)

Page 22: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

22

� Change to the FFT function to observe harmonics.

Page 23: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

23

� Delete step ceiling in order to see harmonic’s response clearly.

Page 24: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

24

� Plot -> Add plot to window

� Trace -> Add trace -> I(Rinput)

Page 25: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

25

Full wave Rectifier : Center Tap Transformer

� Select the FFT function and use cursor to measure peaks of waveform.

Page 26: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

26

� FFT function displays each harmonic in different

amplitude. We use this FFT to measure a distortion of

waveforms. Typically, Total Harmonic Distortion(THD) can be

determined from

� In practice, we can calculate from 2nd to only 25th harmonic but the ideal standard is from 2nd to 50th harmonic.

2

2

2100

1

( )

( )n

nTHD

I

I

=

= ×

Page 27: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

27

� During the positive circle, D1

and D2 conduct current. Current

flows in full cycle. The potential

occurs at load.

� Similar to positive, during the

negative circle, D3 and D4 conduct

current. Current flows through

load. Potential occurs.

� The result of this operation is the full wave.

http://www.sptc.ac.th/prapruet/devicesweb/books/book_4.htm

Page 28: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

28

Operation Amplifier

� Operational Amplifier or Op-Amp is an electronic device

containing a transistor inside to increase the signal amplitude.

http://www.markallen.com/teaching/ucsd/147a/lectures/lecture5/2.php

Symbol of Op-Amp

Page 29: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

29

� Op-Amps are widely used in electronic circuits such as

• Amplifier

• Integrator

• Differentiator

• Voltage follower

• Oscillator

Page 30: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

30

� Symbol of Op-Amp : The Triangle is the symbol for amplifier and displays the direction of a current flow.

� Package of Op-Amp – Usually found either in TO-5 or DIP.

Symbol of Op-Amp Package :TO-5 and DIP

http://silp.elec-cm.com/opamp/book/lesson1.pdf

Page 31: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

31

� Code number– The first two letters indicate manufacturer. Three numbers are type of Op-Amp. The follower letter

informs the temperature range. The last letter explains the package.

http://silp.elec-cm.com/opamp/book/lesson1.pdf

Manufacturer code

Page 32: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

32

� Code number– The first two letters indicate manufacturer.

Three numbers are type of Op-Amp. The follower letter inform

the temperature range. The last letter explain the package.

Latter Meaning

C commercial 0 to70 degree

Celcius

I Industrial -25 to 85 degree Celsius

M Military -55 to 125 degree Celsius

Latter Meaning

D Plastic dual in line for surface

mounting on PC board

J Ceramic dual in line

N,P Plastic dual in line for insertion into sockets

Temperature code Package code

http://www.scribd.com/doc/19017130/Characteristics-of-Opamp

Page 33: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

33

� The usual way to classify amplifier is the phase relationship

of input and output signals which can be divided in to Inverting Amplifier and Non-Inverting Amplifier.

http://www.elexp.com/t_gain.htm

Page 34: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

34

� Inverting Amplifier

1. Draw a schematic and change values of components.

2. Use the voltage marker to measure input and output voltage.

Page 35: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

35

� The feedback is negative. So, the output waveform inverts 180 degree compared to the input waveform and

the amplifying gain of this circuit can be calculated

from�

��

��

.

Page 36: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

36

� Non-Inverting Amplifier

1. Draw a schematic and change values of components.

2. Use the voltage marker to measure input and output voltage.

Page 37: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

37

� The output waveform is in-phase with the input waveform. Gain can be calculated from . 3

6

1R

R+

Page 38: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

38

� Half-bit adder

� Half bit adder has a circuit and truth table as shown.

http://www.eng.warwick.ac.uk/eng/staff/elh/es153/00/pspice/students_model_solution_pspiceassignment_report.pdf

Page 39: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

39

� Draw a circuit and select components as the following.

http://www.eng.warwick.ac.uk/eng/staff/elh/es153/00/pspice/students_model_solution_pspiceassignment_report.pdf

Page 40: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

40

� Double click at DigCLK

� DigCLK1 and DigCLK2 have different ON-TIME

and OFF-TIME’s values. The result shows the difference of digits over time.

Page 41: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

41

� Select Analysis -> Setup ->Transient

Page 42: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

42

� Select Digital Setup and set up parameters.

Page 43: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

43

� Result of the simulated waveforms.

Page 44: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

44

� To produce digital signal you can also use STIM1

� STM1 can be found in Get New Part.

� COMMAND in STIM1 can be used to

set up CLK

� STMI1, STMI4, STMI16 are programmed

for 1,4,and 16 parallel and independent

digital signals.

Page 45: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

45

� Use DSTM instead of DigCLK at point B

Page 46: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

46

� Another method to set up CLK by users is to use a

command� Doubleclick DigCLK for setting parameter.

Page 47: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

47

� Set the values at lines ‘COMMAND’ in DSTM.

Page 48: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

48

� Run the simulation

� After a user inputs values by COMMAND, the rest of the input bit is set default at ‘0’.

Page 49: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

49

� Full wave Rectifier

Page 50: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

50

�Harmonic’s result

Page 51: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

51

Page 52: ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/~ekapon.siw/Ratchaburi/Lectures/PSPICE...During a negative cycle, ... Latter Meaning D Plasticdualin line for surface ... Half

52