Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
6.002 ELECTRONICS
http://electrical.globalautomation.info
http://electrical.globalautomation.info
Today
http://electrical.globalautomation.info
But first, why digital?
In the past …
Analog signal processing
R1
R2 V0
V1 +
–
+ V1 and V2
V2 – might represent the
outputs of two
sensors, for example.
By superposition,
R2 R1
V0 = V1 + V2
R1 + R2 R1 + R2
If R1 = R 2 ,
V1 + V2
V0 =
2
http://electrical.globalautomation.info
Noise Problem
add noise on
this wire
Receiver:
huh?
http://electrical.globalautomation.info
Value Discretization
Restrict values to be one of two
HIGH LOW
5V 0V
TRUE FALSE
1 0
http://electrical.globalautomation.info
Digital System
noise
VN
VS
VR
sender receiver
VN = 0V
VS VR
5V “0” “1” “0” HIGH “0” “1” “0”
5V
2.5V t 2.5V t
0V LOW 0V
With noise
VN = 0.2V VS
VS
“0” “1” “0”
“0” “1” “0” 0.2V
5V t
2.5V t 2.5V t
0V
http://electrical.globalautomation.info
Digital System
http://electrical.globalautomation.info
Voltage Thresholds
and Logic Values
5V
1
1
1
0 0 0
0V
http://electrical.globalautomation.info
But, but, but …
What about 2.5V?
Hmmm… create “no man’s land”
or forbidden region
For example,
5V
1 1
VH
3V
sender forbidden receiver
region
2V
VL
0 0
0V
“1” V 5V
H
“0” 0V V
L
http://electrical.globalautomation.info
But, but, but …
Where’s the noise margin?
What if the sender sent 1: VH ?
Hold the sender to tougher standards!
5V
V
1 0H
1
V
IH
sender receiver
V
IL
0
0
V
0L
0V
http://electrical.globalautomation.info
But, but, but …
Where’s the noise margin?
What if the sender sent 1: VH ?
Hold the sender to tougher standards!
5V
V
1 0H
1
V
IH
sender Noise margins receiver
V
IL
0
0
V
0L
0V
http://electrical.globalautomation.info
0 1 0 1 sender
5V
V
0H
V
IH
V
IL
V
0L
0V t
0 1 0 1 receiver
5V
V
0H
V
IH
V
IL
V
0L
0V t
http://electrical.globalautomation.info
Processing digital signals
http://electrical.globalautomation.info
Processing digital signals
Boolean Logic
If X is true and Y is true
Then Z is true else Z is false.
Z = X AND Y
X, Y, Z
Z = X • Y are digital signals
Boolean equation “0” , “1”
X AND gate
Y Z
http://electrical.globalautomation.info
Combinational gate
abstraction
Adheres to static discipline
Outputs are a function of
inputs alone.
http://electrical.globalautomation.info
Demo
Noise
X
Y Z
Z = X • Y
http://electrical.globalautomation.info
Examples for recitation
Z = X • Y
http://electrical.globalautomation.info
In recitation…
Another example of a gate
If (A is true) OR (B is true)
then C is true
else C is false
C = A + B Boolean equation
OR
A
B C
OR gate
More gates
B B X
Y Z
Inverter NAND
Z = X • Y
http://electrical.globalautomation.info
Boolean Identities
X • 1 = X
X • 0 = X
X + 1 = 1
X +0 = X
1 = 0
0 = 1
AB + AC = A • (B + C)
Digital Circuits
Implement: output = A + B • C
B
C B•C
A output
http://electrical.globalautomation.info