Sie sind auf Seite 1von 7

1 2

Signal Types
• Recall even digital signals are just ___________________…
• Analog signal
– Continuous time signal where each voltage level has a unique meaning
EE 109 Unit 18 – Noise Margins, • Digital signal
– Continuous signal where voltage levels are mapped into ____ ranges
Interfacing, and Tri-States meaning 0 or 1

volts
volts
1
Threshold 1

0 0 0
time
time

Analog Digital

3 4

Signals and Meaning


Analog Digital
5.0 V 5.0 V
Logic 1

2.0 V
Illegal

Threshold Range

0.8 V
NOISE MARGINS, LEVEL SHIFTERS,
Logic 0

0.0 V 0.0 V
& DRIVE STRENGTH
Each voltage value Each voltage maps to ‘0’ or ‘1’
has unique meaning (There is a small illegal range where meaning is
undefined since threshold can vary based on
temperature, small variations in manufacturing, etc.)
5 6

A Motivating Example The Digital Abstraction


• Digital is a nice abstraction of voltage and current
– Lets us just think 'on' or 'off' but not really worry about the voltages and
Example 1 Example 2 currents underneath
• You connect an output port to an LED • You have correctly built a circuit
(light emitting diode) and connect • ______________________!!!
using chips provided by your
everything correctly. The light should instructor and verified its outputs • Not all 1's and 0's are _____________________
turn on when you set your output bit to
a high voltage (logic '1'). • You then attempt to interface it – A '1' can be any 'HIGH' voltage (maybe in the range _______________)
• When you turn the system on the LED
to a specific microprocessor – A '0' can be any 'LOW' voltage (maybe in the range _______________)
does not glow. You measure the • When you connect them the – So 3V and 5V both mean _______ but they aren't equal
voltage at the gate output with a microprocessor indicates that it
voltmeter and find it is not 5V but never senses your circuit
• Similarly certain outputs of a chip may connect to other devices
2.3V? Why isn't it a logic 1? producing logic '1'. Why? that require more _________ than the output can ____________
• The ___________________ output • Different circuit implementation – Think of connecting a fire hose to your _________________
ability from the output port is not ____
techniques use different _______ – Or even worse your _____________ to a fire hydrant…it would ________ it
enough to adequately _______ the LED
which then drags the voltage ______.
__________ to indicate '1' or '0' – In the same way, inputs and outputs of different devices must be matched to
and may be _________________ the ______________________________ of what they connect to
Lesson To Be Learned: Not all 1's or 0's are created equal!

7 8

Digital Voltage Noise Margins Class Activity


• Consider one digital gate feeding another OH = Output High
OL = Output Low
IH = Input High
IL = Input Low
NM = Noise Margin
• Do an internet search for "74LS00 datasheet"
________ Range ________ Range
(this is a chip w/ some 2-input NAND gates)
Interpretation
5.0 V
Interpretation
5.0 V
and try to find any PDF and open it
NMH =
• Skim the PDF and try to find:
Logic 1

Logic 1

VOH ______ As long as


_____________ and – VOH, VIH, VOL, VIL
_____________ we
are in good shape…
VIH
Electromagnetic
interference & power
Illegal

Illegal

spikes can cause


VIL this to break down
Logic 0

Logic 0

VOL
NML =
0.0 V ______ 0.0 V
9 10

Analogy Current Limitations


• When a circuit outputs a 'HIGH' ('1') it can only supply (___________) so
• Consider a sprinkler system…what will happen if you add 100 much current (think of your garden hose spigot) = ___________
new sprinklers to your backyard? • When a circuit outputs a 'LOW' ('0') it can only suck up (_________) so
much current = __________
• Pressure (voltage) will go __________ and _____________ • When a circuit receives a 'HIGH' signal on the input side it may need a
water (current) flow coming out of each certain amount of current to recognize the input as 'HIGH' = _______
• When a circuit receives a 'LOW' signal on the input side it may need a
certain amount of current to recognize the input as 'LOW' = _______
IIH IIL

1 0
IOH IOL

11 12

Consideration All In the Family


• If we attach too many gates to one output it • There are many families of circuit devices that talk different
may not be enough to drive those gates language (Each has a different VOH, VIH, VOL, VIL, IOL, IIL, etc.)
• Need to make sure the current • Examples:
requirements and capabilities match
– ______________
• Let's say we connect one of the NAND gates – ______________
on the 74LS00 chip to an input of N other If IOH or IOL is too _______ we – ______________
NAND gates… can split the loads by place
intermediate buffers • Must make sure if you interface two different devices that they
• Can it produce/suck up the required are _______________ (i.e. VOH of device A is greater than VIH
current… of device B) or use a buffer/amplifier/level shifter circuit to help
• …if N = 6? them talk to each other
• …if N = 12? – http://www.ti.com/lit/ds/symlink/cd4504b-ep.pdf

A VOH=2.2V VIH=3.5V
B
13 14

Arduino Limits Another Example


• Arduino outputs can sink (suck up) and source (produce) • Now consider a speaker system where the power and signal
around a maximum of 20 mA on a pin are provide together
– http://www.atmel.com/Images/Atmel-8271-8-bit-AVR- – Given our Arduino use 5V = Vcc and its current limitations per pin, how
Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328- much power can we supply to the speaker?
328P_datasheet.pdf – 5V * _____________ = ___________
• Do an internet search for "Standard Servo Motor Datasheet" – You ___________ an amplifier…
and find the maximum current it may need
Power & Signal
• It doesn't seem like the Arduino would be together

able to drive the servo motor.


How is it working?
– Remember the 3-pin interface: R = Power,
B = Ground, W = Signal
– The signal is __________ from the power
– The power source is used to amplify the signal

15 16

Typical Logic Gate


Hot Water = Logic 1
• Gates can output two values: 0 & 1
Cold Water = Logic 0
– Logic ‘1’ (Vdd = 3V or 5V), or Logic ‘0’ (Vss = GND)
(Strapped together so always one type
– But they are ALWAYS outputting something!!! of water coming out)

• Analogy: a sink faucet


– 2 possibilities: Hot (‘1’) or Cold (‘0’)
• In a real circuit, inputs cause EITHER a pathway from
output to VDD OR VSS
+3V +3V
Inputs

PMOS PMOS Vdd

TRI-STATE GATES Inputs Inputs


Output Output

NMOS NMOS

Vss
17 18

Output Connections Tri-State Buffers


+3V
• Can we connect the output of two logic gates together? • Normal digital gates can output two
• ______! Possible _______________ (static, low-resistance values: 0 & 1 PMOS
pathway from Vdd to GND) 1. Logic 0 = 0 volts
Inputs Output
• We call this situation _______________________ 2. Logic 1 = 5 volts
Z (high

Vdd
Inputs • Tristate buffers can output a third impedance)
NMOS
Src 1 value:
Src 1 3. __ = _____________________ = "Floating"
(no connection to any voltage
Vss
source…__________________ resistance)
Src 2
Inputs
• Analogy: a sink faucet
Vdd
– 3 possibilities:
Src 2
1.) Hot water, Hot Water = Logic 1
Src 3 2.) Cold water,
Cold Water = Logic 0
3.) ________ water
Vss ___ Water = Z (High-Impedance)

19 20

Tri-State Buffers Tri-State Buffers


• Tri-state buffers have an extra Tri-State Buffer • We use tri-state buffers to _________ one output
enable input amongst several sources
• When disabled, output is said In Out = In
• Rule: Only ______________________ at a time
E
to be at high impedance (a.k.a.
Z) Src 1
Enable=1 E
– High Impedance is equivalent to
no connection (i.e. floating In Out = ____
EN1

output) or an infinite resistance E Src 2


– It's like a brick wall between the E D Q
output and any connection to D-FF
Enable=0 EN2
source CLK Q
En In Out
• When enabled, normal buffer 0 - Z
Src 3
E

1 0 0 EN3
1 1 1
21 22

Tri-State Buffers Communication Connections


• We use tri-state buffers to share one output amongst several
sources • Multiple entities need to communicate
• Rule: Only 1 buffer enabled at a time • We could use
• When 1 buffer enabled, its output overpowers the Z’s (no
connection) from the other gates – Point-to-point connections
0 0
– A ___________________________
Select source E output of 0
overpowers Separate point to point
1 to pass its 1 connections
data the Z
Shared Bus
1 Z 0
E D Q
D-FF
0
CLK Q
0 Z
E
Disabled
buffers
0 output ‘Z’

23 24

Bidirectional Bus Tri-State Gates


• Big advantage: don’t have to know in advance how many devices
• _____ transmitter (otherwise bus contention) will be connected together
– Tri-State gates give us the option of connecting together the outputs of
• N receivers many devices without requiring a circuit to multiplex many signals into one
• Each device can send (though 1 at a time) or • Just have to make sure only one is enabled (output active) at any
one time.
receive Source w/ Tri-State Gates
src1
src1
src2
src2
src3 Single output
src3 MUX
0 1 0 0

srcn
srcn Input
Output
Select
Enables
25 26

Tri-State Gates Tri-State Gates


Problem: How can you use the serial I/O lines of the Solution: Use a Tri-State gate to isolate the MAX232
Arduino, which are also used for programming it? received data from the µC until programming is over.

Pxx 74LS125

Atmel RX Atmel RX
µC MAX232 µC MAX232
TX TX

Two active devices, both Output of gate is floating


USB trying to output a signal, USB until µC program makes
µC collide here. µC Pxx a zero.
Arduino Uno Arduino Uno

Das könnte Ihnen auch gefallen