Professional Documents
Culture Documents
1
1
2 CL
9 CLK
10 LD
7 TE 15
PE CO
1
6 11
P4 Q4
+
5 12
4 P3 Q3 13
3 P2 Q2 14
P1 Q1
14161
-
2
Electronic Instrumentation
Experiment 7
Digital Logic Devices and the 555 Timer
Part A: Basic Logic Gates
Part B: Flip Flops
Part C: Counters
Part D: 555 Timers
Part A Basic Logic Gates
Combinational Logic Devices
Boolean Algebra
DeMorgan’s Laws
Timing Diagrams
Question: What
common
Input Input Output household switch
A B X configuration
0 0 0 corresponds to an
0 1 1 XOR?
1 0 1
1 1 0
20 March 2007 Electronic Instrumentation 5
Boolean Algebra
• AND Gate
• If both X and Y are true (1), then Z is true (1)
Q=0
Note that the output depends on
Q=1
three things: the two inputs and
the previous state of the output.
Note that the enable signal is the clock, which regularly pulses.
This flip flop changes on the rising edge of the clock. It looks at
the two inputs when the clock goes up and sets the outputs
according to the truth table for the device.
20 March 2007 Electronic Instrumentation 15
Inside the J-K Flip Flop
GND
B 5 C 5 9 C F 6 corresponding hexadecimal
(base 16) digit
equivalent hexadecimal
B5C59CF6 number
Decimal QD QC QB QA
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
DCBA = 1111
1100
=12
DCBA = 1100 DCBA = 1111
8
R
7
VCC
DIS
3
Q
6
2 THR
TR
5
GND
CV
NE555
1
Each pin has a function
Note some familiar components inside
Ra R
8
R
7
R
7
VCC
DIS
VCC
DIS
1K
3
Rb 3 Q
Q
6
6 2 THR
2 THR TR LED
TR LED 5
GND
CV
5
2
GND
CV NE555
NE555 C
1
0.01uF
C
1
0.01uF
1
Astable Multivibrator Monostable Multivibrator
puts out a continuous (or one-shot) puts out one
pulse each time the
sequence of pulses switch is connected
R Threshold Comparator
Ra 2 +V
Vcc -
Q
Output
3
+
R 3
6 -V
R
Trigger +V
-
2 S Q
1 +
Vcc -V
3 Trigger Comparator Control Flip-Flop
7
R
C
1 Monstable Multivibrator
20 March 2007 Electronic Instrumentation
One-Shot 30
Behavior of the Monostable Multivibrator
The monostable multivibrator is constructed by adding an
external capacitor and resistor to a 555 timer.
The circuit generates a single pulse of desired duration
when it receives a trigger signal, hence it is also called a
one-shot.
The time constant of the
resistor-capacitor
combination determines
the length of the pulse.
R Threshold Comparator
R1 +V
- Output
R Q
+ 3
R2 6 -V
R
+V
-
2 S Q
+
-V
Trigger Comparator Control Flip-Flop
7
R
C
• Flashing LED’s
• Pulse Width Modulation
• Pulse Position Modulation
• Periodic Timers
TCLOSE = 0 R1
1 2
8V
U1
V V
1k V
1
6V
U2 Capacitor Voltage
V1
10V TOPEN = 0 C1
4V
1uF
2
2V
0V
0 0s
V(U2:1)
1ms
V(R1:2)
2ms
V(V1:+)
3ms 4ms 5ms 6ms 7ms 8ms 9ms 10ms
Time
8mA 8V
6mA 6V
Capacitor and Resistor Current
Capacitor Voltage
4mA 4V
2mA 2V
0A 0V
0s 1ms 2ms 3ms 4ms 5ms 6ms 7ms 8ms 9ms 10ms 0s 1ms 2ms 3ms 4ms 5ms 6ms 7ms 8ms 9ms 10ms
I(R1) I(C1) V(U2:1) V(R1:2) V(V1:+)
Time Time
t
Capacitor Current I Ioe
V V o 1 e
t
Capacitor Voltage
Where the time constant
R C R1 C 1 1m s
20 March 2007 Electronic Instrumentation 39
Understanding the equations
10V
8V
6V
Capacitor Voltage
4V
2V
0V
0s 1ms 2ms 3ms 4ms 5ms 6ms 7ms 8ms 9ms 10ms
V(U2:1) V(R1:2) V(V1:+)
Time
ch arg e ( R1 R 2)C1
The voltage reaches
(2/3)Vcc in a time
1 1 .4 4
f
0 .6 9 3 ( R 1 2 R 2 ) C 1 ( R 1 2 R 2 ) C 1
Output is low
so the upper
LED is on and
the lower LED
is off
Capacitor is discharging
through Rb
20 March 2007 Electronic Instrumentation 46
PWM: Pulse Width Modulation
Medium
Duty Cycle
High
Duty Cycle