physics 405/505 digital electronics techniques

30
Physics 405/505 Digital Electronics Techniques University of Arizona Spring 2005 Prof. Erich W. Varnes

Upload: others

Post on 07-Dec-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Physics 405/505 Digital Electronics Techniques

Physics 405/505Digital Electronics Techniques

University of Arizona

Spring 2005

Prof. Erich W. Varnes

Page 2: Physics 405/505 Digital Electronics Techniques

Administrative Matters• Contacting me

– I will hold office hours on Tuesday from 1-3 pm

– Room 420K in the PAS building

– I am also available by appointment• Phone: 626-0217

• E-mail: [email protected]

– Course web page • http://www.physics.arizona.edu/~varnes/Teaching/405-

505Spring2005

– Accessible through StudentLink web pages

• Course information, including homework assignments and solutions, will be posted here

Page 3: Physics 405/505 Digital Electronics Techniques

Requirements and Expectations

• Your responsibilities for the course are:– Lab reports:

• Will be due one week after the lab (following Monday)

• See “Guide for Lab Reports” on page 1 of your lab manual

• Total lab score represents 60% of the final grade for P405 students, and 45% for P505 students

– Homework: • Assignments will be handed out on Monday or Wednesday, and due

the Wednesday of the following week

• Total homework score represents 40% of the final grade for P405 students, and 30% for P505 students

Page 4: Physics 405/505 Digital Electronics Techniques

Final Project (P505 only)• Those enrolled in 505 will do a final project

• This project must use programmable logic, and include some of the following:– State machines

– Tri-state logic

– Memory or FIFOs

– Arithmetic units

• Projects will be presented during the last week of class

• Will count for 25% of the final grade

Page 5: Physics 405/505 Digital Electronics Techniques

Prerequisites• You should have already taken the following courses (or

their equivalents at another university):– Physics 241, 241H or 251 (Introductory Electricity and

Magnetism)

If you do not have this prerequisite, I recommend thatyou discuss your situation with me

Page 6: Physics 405/505 Digital Electronics Techniques

Why Learn Electronics?• Electricity is used by mankind in two distinct ways:1. As a source of power

– think of power plants, transmission lines, etc.

2. As a tool for transmitting and manipulating information• It’s the latter use that we call electronics• Examples of electronics are all around us

– from transistor radios to supercomputers

• An understanding of electronics is also crucial to many experimental physicists– The problems studied in physics today often take us to

realms that our senses can’ t detect directly (such as studying subatomic particles, or stars too faint to be seen by the eye)

Page 7: Physics 405/505 Digital Electronics Techniques

• We use electronics to access the information from these areas– For example, a single subatomic particle can leave a trail of

ions as it passes through a detector. We “see” the particle by using electronics to manipulate, amplify, digitize, store, and analyze the charge of these ions.

• Often, the issues we want to explore don’ t have obvious commercial implications– Thus we can’ t expect industry to design and build the

electronics we need

– It’s up to us as experimentalists to understand the fundamentals of electronics design, and how to apply them!

Page 8: Physics 405/505 Digital Electronics Techniques

Linear circuit components• We begin our study by reviewing some of the components

that make up electronic circuits

• First we consider linear components– The current through this is a linear function of the voltage

drop across them

• The simplest of these is the resistor– Obeys Ohm’s Law:

– Represented on a schematic (circuit diagram) as:

– Typical resistors are made from carbon or thin metal film

– Often circuits designs require a specific value for the resistance R

V IR=

Page 9: Physics 405/505 Digital Electronics Techniques

Resistor color codes• To make is easy to tell how much resistance a particular

resistor has, engineers have devised a color code:

• The tolerance band shouldn’ t be neglected– If your circuit will not work with a resistance 3% away from

the design value, you’d better buy a 2% resistor!

Failures per 1000 hrs of use

Page 10: Physics 405/505 Digital Electronics Techniques

Resistor circuits• First consider two resistors connected in series:

– Means current is same through both

– Voltage drop across circuit is

– is the equivalent resistance of the circuit

R1 R2

( )1 2 1 2V IR IR I R R= + = +

1 2R R+

Page 11: Physics 405/505 Digital Electronics Techniques

• Now look at resistors connected in parallel– Meaning voltage drop is the same across both

R1 R2

( )1 1 2 2 1 2 eq

21 2

1

22 2 2 2 eq

1

eq 1 2

1 1 1

V I R I R I I R

RI I

R

RI R I I R

R

R R R

= = = +

=

� �= +� �� �

= +

Page 12: Physics 405/505 Digital Electronics Techniques

Capacitors• Capacitors are components that store charge

– Voltage drop across a capacitor is proportional to the amount of stored charge

– Simplest version is two metal plates separated by a small gap

• Represented on a schematic by:

• Capacitance can be increase by inserting a dielectricmaterial (insulator) in the gap– Capacitors used in circuits typically are made by depositing

layers of metal on each side of a mylar film

QV

C=

Page 13: Physics 405/505 Digital Electronics Techniques

• Storing charge isn’ t all that easy– Capacitance values tend to be small

– Typically can store ~one billionth of a Coulomb with a 1 V potential drop – that’s a capacitance of one picoFarad (pF)

• Shorthand often used to represent value of capacitance:– 3 or 4 numbers, i.e.,

• 104 means 10 x 104 pF =105pF = 100nF = 0.1µF

• 1004 means 100 x 104 pF =106pF = 1000nF = 1µF

• Capacitors can also be combined in series or parallel, just like resistors– But rules for equivalent capacitance are just the opposite:

– Series:

– Parallel:

eq 1 2

1 1 1

C C C= +

eq 1 2C C C= +

Page 14: Physics 405/505 Digital Electronics Techniques

Time-dependent voltage• A circuit consisting of only resistors and capacitors with a

constant input voltage will be in a steady state– Thus won’ t be transmitting or processing information

– It’s not electronics yet!

• But with a time-dependent input voltage, we can start to do interesting things with just these components

• First, consider a sinusoidally varying voltage– This is not really restrictive – from Fourier analysis we know

that we can represent any periodic function as a sum of sines

• The voltage transmitted from the power company is of this form, with a frequency of 60 Hz– it shows up at your house at

( ) ( )1170V sin 2 60sV t tπ −= ⋅ ⋅⋅

Angular frequency ω

Page 15: Physics 405/505 Digital Electronics Techniques

• You might be surprised by the “170V” in the previous expression– After all, isn’ t household voltage 120V?

• It is! But that’s the RMS voltage, defined as:

• If this voltage is applied across a resistor, the average power dissipated will be:

( )2

peak0rms

2

T

V t dtV

VT

= =�

2rms

rms

VP

R=

Page 16: Physics 405/505 Digital Electronics Techniques

• What happens if we apply our V(t) across a capacitor?

• We know that the capacitor will store a charge:

and also that

• For our sinusoidal input voltage, the current will also be sinusoidal– or, in complex notation,

Q CV=

Q Idt= �

( ) i toI t I e ω=

( ) ( )

( )

1

1

i to

i to

IV t I t dt e dt

C C

I eI t

i C i C

ω

ω

ω ω

= =

= =

� �

Page 17: Physics 405/505 Digital Electronics Techniques

• We can make this look just like Ohm’s Law:

where Zc is the impedance of the capacitor

• Note that impedance depends both on the capacitance and on the frequency of the applied voltage

• Note also that we can rewrite the voltage as:

• i.e., the voltage is phase shifted by 90o with respect to the current– current is 0 when voltage is maximum, and vice-versa

cV Z I=

( ) 21 i ti t

o o

iV t I e I e

C C

πωω

ω ω

� �−� �� �= − =

Page 18: Physics 405/505 Digital Electronics Techniques

Low-pass filter• We now know enough to build our first electronic circuit:

out

in

1

1

1

1

in

c

cc in in

c

VI

R Z

Z i CV IZ V VR Z R

i C

Vi RC

ω

ω

ω

=+

= = =+ +

=+

Page 19: Physics 405/505 Digital Electronics Techniques

• So the ratio of output to input voltage is:

• This ratio is called the gain of the circuit

• Often gains are expressed in decibels:

• If several filters are connected in series, total gain (in dB) is the sum of the gains (in dB) of all the filters

• Note that for passive circuits such as this one, the gain in dB is always negative

( )

out

in

out2

in

1

1

1 1 1

1 1 1

V

V i RC

V

V i RC i RC RC

ω

ω ω ω

=+

= ⋅ =+ − +

out10

in

gain 20log dBV

V=

Page 20: Physics 405/505 Digital Electronics Techniques

• The gain is clearly frequency-dependent, as shown on the Bode plot below:

• “Break point” is the frequency at which the output power is half the input power

( )

2

out2

in

1 1

21

1

V

V RC

RC

ω

ω

= =+

=

Page 21: Physics 405/505 Digital Electronics Techniques

• Gain at the break point is:

• The terms “break point” and “ -3dB” point are interchangeable

1

2

10 10

1 120log dB 10log 3dB

2 2� � � �= = −� � � �� � � �

Page 22: Physics 405/505 Digital Electronics Techniques

Integrator• Even this simple circuit can do complicated mathematics

– if we choose R and C such that we’ re in the low-gain region

• So this circuit (approximately) integrates the input voltage

out

out in out in

out in

out in

1

Q CV

dV V V VdQI C

dt dt R RdV V

dt CR

V V dtCR

=−= = = ≈

≈ �

Page 23: Physics 405/505 Digital Electronics Techniques

High-pass filter• We can build a high-pass filter by interchanging the

positions of the capacitor and resistor:

( )in

inout

out

in1 1

c

c

V I Z R

V RV IR

Z R

V R i RC

V i RCRi C

ωω

ω

= +

= =+

= =++

Page 24: Physics 405/505 Digital Electronics Techniques

• Note that for ω = 0 (a DC voltage) the output voltage is 0

• This type of circuit is called “AC coupled”– useful to protect against large input voltage levels that might

damage components

• The following table summarizes the advantages and disadvantages of AC and DC coupling:

Page 25: Physics 405/505 Digital Electronics Techniques

Inductors• The final linear component we’ ll consider is the inductor

• These are basically coils of wire (often wrapped around an iron core)– Represented on a schematic by:

– They have very small resistance to DC voltages

– But they tend to resist changes in current – a voltage drop across the inductor is required to change the current:

• The inductance L is measured in Henries (H), and typical values are in the mH to µH range

dIV L

dt=

Page 26: Physics 405/505 Digital Electronics Techniques

• What happens when a sinusoidal voltage is applied across an inductor?

• Just like capacitors, inductors have a frequency-dependent impedance, ZL=iωL

• In principle, then, inductors could be used in filter circuits instead of capacitors– But capacitors tend to be less expensive

( ) ( )

( ) ( ) ( )

1 1

L

i to

i to

i to

dIV e L

dt

LdI V e dt

LI t V e V ti i

V t i LI t I tZ

ω

ω

ω

ω ωω

=

=

= =

= ≡

� �

Page 27: Physics 405/505 Digital Electronics Techniques

Bandpass filter• There’s one filter circuit where an inductor comes in very

handy

• Let’s say one wants a circuit that “selects” only input voltages in a narrow frequency range– a radio is an example

• The following does the trick:

Page 28: Physics 405/505 Digital Electronics Techniques

• Similar to the low-pass filter, except we replace the impedance of the capacitor with the equivalent impedance of the capacitor and inductor connected in parallel:

where

• Look what happens when :– ZLC becomes infinite!

out

in

LC

LC

V Z

V R Z=

+

2

2

1 1 1 1 1

1

LC L C

LC

LCi C

Z Z Z i L i L

i LZ

LC

ωωω ω

ωω

−= + = + =

=−

1R LC

ω ω= =

Page 29: Physics 405/505 Digital Electronics Techniques

• At this resonant frequency, |Vout| = |Vin|

• But all other frequencies are attenuated

• Response might look like this:

Page 30: Physics 405/505 Digital Electronics Techniques

• The sharpness of the resonance is called the quality factor (Q) of the circuit– for radios, we want a really large Q!

• Q is defined as:

where ∆ω3dB is the range of frequencies for which the gain is greater than –3dB

• For the circuit shown here,

3dB

RQωω

=∆

R

RC CQ RC R

LLCω= = =