ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/.../Lectures/PSPICE_tutorial2.pdf ·...

52
Asst.Prof.Rardchawadee Silapunt 1

Transcript of ENE206 PSpice2-2556 Lec2 - KMUTTwebstaff.kmutt.ac.th/.../Lectures/PSPICE_tutorial2.pdf ·...

Asst.Prof.Rardchawadee Silapunt

1

2

� Transformer

� Full wave rectifier

� Operational Amplifier (Op-Amp)

� Digital logic gate

3

1. Select components from Get New Part.

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

12

4

� Transformer is an electrical device that transfer

energy from one circuit to another through electromagnetic

induction. Transformer can convert both current and voltage.

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.

6

� Set up parameters in transient analysis.

7

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

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= =

9

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

10

� Full wave Rectifier : Center Tap Transformer

� Full wave Rectifier : Bridge Rectifier

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

11

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

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

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

13

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

� How does the center tap transformer create full wave?

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.

15

16

1. Select Analysis ->setup -> Transient

2. Set up Transient Analysis

3. Measure waveform by voltage marker

17

� Output waveform is the full wave.

18

� Add capacitor C1 to lower the voltage ripple.

19

� Set up values in Transient and Fourier Analysis.

20

� Compare voltages between input and output.

21

� Plot -> Add plot to window

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

22

� Change to the FFT function to observe harmonics.

23

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

24

� Plot -> Add plot to window

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

25

Full wave Rectifier : Center Tap Transformer

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

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

=

= ×

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

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

29

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

• Amplifier

• Integrator

• Differentiator

• Voltage follower

• Oscillator

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

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

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

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

34

� Inverting Amplifier

1. Draw a schematic and change values of components.

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

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�

��

��

.

36

� Non-Inverting Amplifier

1. Draw a schematic and change values of components.

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

37

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

6

1R

R+

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

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

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.

41

� Select Analysis -> Setup ->Transient

42

� Select Digital Setup and set up parameters.

43

� Result of the simulated waveforms.

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.

45

� Use DSTM instead of DigCLK at point B

46

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

command� Doubleclick DigCLK for setting parameter.

47

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

48

� Run the simulation

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

49

� Full wave Rectifier

50

�Harmonic’s result

51

52