You are on page 1of 38

Lab 2 Revisited Exercise

+15V

1K • Wire up led display


• Note the ground leads
100k
• LED orientation
2N2222

6.091 IAP 2008 Lecture 3 1


Comparator, Oscillator
+5 +15
2
1k V- 7
6

3
Vo
4
V+
Vin

Notice that power connections are


shown; bypass capacitors included
for power supply filtering.

All voltage measurements are


referenced to ground

6.091 IAP 2008 Lecture 3 2


Op-Amps
Inverting Amplifier Null Adjustment Integrator

10k C
R2

1k R1
R1
Vin
V- V-
V-

Vin
Vin
5 Vo Vo
Vo V+ V+
V+ 1

10k

-15V

R2 vin
vo = −
R1
vin vo = −
RC ∫ dt

For clarity, power connections and bypass


capacitors not shown.
6.091 IAP 2008 Lecture 3 3
Lab Exercise - Schmitt Trigger

• Schmitt trigger have


V-
different triggers
Vin
points for rising edge
Vo and falling edge.
V+
R2
• Can be used to
reduce false triggering
R1
• This is NOT a
negative feedback
circuit.

6.091 IAP 2008 Lecture 3 4


Notes
• IC power supply
connections generally
not drawn. All
integrated circuits
need power!
• Use standard color
coded wires to avoid
confusion.
Potentiometer
internals

6.091 IAP 2008 Lecture 3 5


Power Supplies, Voltage Regulators
• Conventional Power
3 terminal Supply
regulator
– rectify (convert AC to
DC)
– filter out the ripple
– regulate the voltage
.

• 3 terminal IC
regulator

6.091 IAP 2008 Lecture 3 6


Wire Gauge
• Wire gauge: diameter is inversely
proportional to the wire gauge number.
Diameter increases as the wire gauge
decreases. 2, 1, 0, 00, 000(3/0) up to 7/0.

• Resistance
– 22 gauge .0254 in 16 ohm/1000 feet
– 12 gauge .08 in 1.5 ohm/1000 feet
– High voltage AC used to reduce loss

6.091 IAP 2008 Lecture 3 7


78XX Voltage Regulator
+5V, +12V, +15V
-5V, -12V, -15V

Reprinted with permission of National Semiconductor Corporation.


6.091 IAP 2008 Lecture 3 8
7805 Circuit

Reprinted with permission of National Semiconductor Corporation.

6.091 IAP 2008 Lecture 3 9


Zener Diode
4.7k
• Zener diodes will maintain a
fixed voltage by breaking down
at a predefined voltage (zener
voltage).

Lab exercise
• Wire up the above circuit with a 1N752A (5.6V)
zener.
• Set the FG for a 0-10V ramp. Display the
output of the FG and the voltage across the
zener on the oscilloscope. Describe what is
happening.

6.091 IAP 2008 Lecture 3 10


Adjustable Voltage Source

+15V

270Ω
0.1uf

10K
1N758 V+

10v
Vo
V-

6.091 IAP 2008 Lecture 3 11


Adjustable Voltage Power Supply

+15V

270Ω Vo
0.1uf
1uf
10K
1N758 V+

10v
V-

6.091 IAP 2008 Lecture 3 12


LM317 Three Terminator
Adjustable Voltage Regulator

Reprinted with permission of National Semiconductor Corporation.

• First 3 terminal adjustable voltage regulator


• 1.2 - 25 Voltage output range
• Short circuit protected
• Thermal shutdown
6.091 IAP 2008 Lecture 3 13
LM317

Reprinted with permission of National Semiconductor Corporation.

6.091 IAP 2008 Lecture 3 14


Buck Converters
• Linear power supplies
are very inefficient
• Power dissipated by +

regulating element
• Buck converters
operating in switching .

mode (on/off)

6.091 IAP 2008 Lecture 3 15


555 Timers
• Simple, versatile, low
cost IC for timing VCC

applications: oscillators, ready

5k
8

one-shot pulse Threshold 6


5
+
Comp
_A R Flip
7
Discharge

generator, pulse width


Control Voltage Flop
5k Q
Inhibit/ 3

modulator, missing
+ S Reset Output
Comp
2 _B
Trigger

pulse detector
5k

1 4

• Circuit: two
Gnd Reset

Figure by MIT OpenCourseWare.


comparators, flip flop,
resistor divider and a
discharge transistor.
6.091 IAP 2008 Lecture 3 16
555 Block Diagram
VCC
ready 8

5k
Threshold 6 +
7
Comp
Discharge
5 _A R Flip
Control Voltage Flop
5k Q
+ Inhibit/ 3
Comp
S Reset Output
2 _B
Trigger
5k

1 4
Gnd Reset
S R Reset Output
Figure by MIT OpenCourseWare.
1 1 1 last state
0 1 1 low
1 0 1 high
0 0 1 high
NA NA 0 low

6.091 IAP 2008 Lecture 3 17


RC Equation
Vs = 5 V
Vs = 5 V Switch is closed t<0
Switch opens t>0
R
Vs = VR + VC
Vc
Vs = iR R+ Vc iR = C dVc
C dV
dt
Vs = RC c + Vc
dt

⎛ −
t

Vc = Vs ⎜⎜1 − e ⎟⎟
RC

⎛ −
t
⎞ ⎝ ⎠
Vc = 5⎜⎜1 − e ⎟⎟
RC

⎝ ⎠
6.091 IAP 2008 Lecture 3 18
Monostable Circuit
VCC
Ra

555 or 1/2 556

Discharge
R
Control voltage
Comp
Threshold
C
R Flip flop Output Output

Comp
Trigger

Reset

Figure by MIT OpenCourseWare,


based on Philips Semiconductors datasheet. Reprinted with permission of National Semiconductor Corporation.

6.091 IAP 2008 Lecture 3 19


Oscillator (Astable)
VCC

Rb RA 8 555

Discharge
7
R
5
Control voltage
Comp
Threshold
6
3
R Flip flop Output

Comp
Trigger
2
R

C
1 4
Reset

Figure by MIT OpenCourseWare,


based on Philips Semiconductors datasheet.
Reprinted with permission of National Semiconductor Corporation.

6.091 IAP 2008 Lecture 3 20


Closet Light Timer – Lab Exercise

+15 +15

+15 8

R
reset

1k 10k 555 output

threshold
trigger
1k
discharge

C
control
0.1uf

1
0.01
uf

ton = 1.1RC
Switch closed = door closed
6.091 IAP 2008 Lecture 3 21
Lab Exercise
• Wire up zener diode circuit
• Build variable voltage power supply
• Build variable current source
• Build 555 oscillator
• Build closet light timer

6.091 IAP 2008 Lecture 3 22


Analog Circuit Summary

• 3 Terminal Regulators
• Zener Diodes
• Power Supplies
• 555 Timers & circuits

6.091 IAP 2008 Lecture 3 23


Important Missing Links
• The real world is an analog world.
However, computing is best performed via
digital systems (i.e. the processing of data
with 0’s and 1’s).
• Digital-Analog Conversion
• Analog-Digital Conversion

6.091 IAP 2008 Lecture 3 24


Analog vs Digital
• Analog systems/devices work with
information in a continuous stream: clock
with hands, mercury thermometer, vinyl
records, analog meters, calipers.

• Digital systems/devices work with


information in a discontinuous stream
(0,1): digital thermometer, digital meters,
computers.

6.091 IAP 2008 Lecture 3 25


Music – An Example
• CD’s are digital systems that sample and stores
audio data
– sampling rate: 44.1 khz
– data stored in 16 bit format; implies
216 = 65,536 possible output levels

• DVD Audio samples at 96-192kHz/24 bits

• Analog records have an infinite number of output


levels.
6.091 IAP 2008 Lecture 3 26
D-A Conversion (DAC)
• Problem: take a digital signal and convert to an analog voltage: R-2R ladder
0001 -> 1/16 * 5 volt
0010 -> 2/16 * 5 volt
0011 -> 3/16 * 5 volt
...
1101 -> 14/16 * 5 volt
1111 -> 15/16 * 5 volt

• Note that the outputs are at discrete levels – not continuous!


1⎡ 1 1 1 ⎤
⎢ B3 + B2 + 2 B1 + 3 B0 ⎥ 5
R R R R 2⎣ 2 2 2 ⎦
Vo

R
2R 2R 2R 2R

+5 +5 +5 +5

Bo B1 B2 B3

6.091 IAP 2008 Lecture 3 27


Digital Circuits
• Real world analog signals have noise – unavoidable.
• Digital circuits offers better noise immunity.
• Use voltage to represent “0” and “1”
– Avoid forbidden voltage zone.
– Make standards tighter for output than for inputs.

• Data (HCMOS family): 0 (low), 1 (high)


– Input voltage low: 0.0 – 0.7v
– Input voltage high: >2.0V
– Output low: <0.4v
– Output high: >3.98v
6.091 IAP 2008 Lecture 3 28
Digital Circuits
+5V

HCMOS 1 (high) output high


range

– Output high: >3.98v +3.98V


input high
– Input voltage high: >2.0V range

noise
margin

+2.0V

Forbidden Zone

0.7V
HCMOS 0 (low)
noise

– Output low: <0.4v margin


input low
rage
0.4V
– Input voltage
output low
low: 0.0 – 0.7v range

.
6.091 IAP 2008 Lecture 3 29
Power Requirements
• The following power supplies are common for analog
and digital circuits:
+5v for digital circuits,
+15v, -15v for analog,
-5v, +12v, -12v also used

• Other voltages generally derived.

6.091 IAP 2008 Lecture 3 30


Boolean Algebra
A B = A & B

A = Inverse of A

A B = Inverse of [A&B]

DeMorgan's Law

A B = A + B

A + B = A & B
6.091 IAP 2008 Lecture 3 31
Digital System Implementation
• Start with AND, OR, NOR, NAND gates and
add more complex building blocks: registers,
counters, shift registers, multiplexers. Wire
up design. High manufacturing cost, low fix
costs. Examples 74LS, 74HC series IC

• For volume production, move to PALs,


FPGAs, ASICs. Low manufacturing cost,
high fix costs.

6.091 IAP 2008 Lecture 3 32


Basic Gates

Circle
indicates
inversion

6.091 IAP 2008 Lecture 3 33


74LS00 NAND Gate
Dual-In-Line Package
VCC B4 A4 Y4 B3 A3 Y3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

A1 B1 Y1 A2 B2 Y2 GND

This device contains four independent gates each


of which performs the logic NAND function.

Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS00 datasheet.

6.091 IAP 2008 Lecture 3 34


74LS02 NOR Gate

Dual-In-Line Package
VCC Y4 B4 A4 Y3 B3 A3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Y1 A1 B1 Y2 A2 B2 GND

This device contains four independent gates each


of which performs the logic NOR function.

Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS02 datasheet.

6.091 IAP 2008 Lecture 3 35


74LS08 AND Gate
Dual-In-Line Package
VCC B4 A4 Y4 B3 A3 Y3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

A1 B1 Y1 A2 B2 Y2 GND

This device contains four independent gates each


of which performs the logic AND function.

Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS08 datasheet.

6.091 IAP 2008 Lecture 3 36


Building Logic
• From basic gates, we
X Y Z
can build other X 0 0 0
functions: Exclusive Y
Z 0 1 1
1 0 1
OR Gate 1 1 0

Y Z

6.091 IAP 2008 Lecture 3 37


74LS86 Exclusive OR
VCC
14 13 12 11 10 9 8

1 2 3 4 5 6 7
GND

Truth Table
In Out

A B Z

L L L

L H H
H L H

H H L

Figure by MIT OpenCourseWare, based on Motorola datasheet.


6.091 IAP 2008 Lecture 3 38

You might also like