Lectures 6-10 Flashcards
Voltage threshold levels:
VOH, VIH
VOL, VIL
What are they, which one must be bigger/smaller than the other?
VOH: minimum voltage that can be interpreted at output as logic high
VIH: minimum voltage for logic high at input
VOL: max voltage for logic low at output
VIL: max voltage for logic low at input
VOH > VIH
VOL < VIL
What is noise immunity in relation to voltage thresholds?
Difference between input and output thresholds
Max noise signal that can be added without producing errors
Noise immunity may be different for logic low and high
Whats propagation delay, race conditions
PD: delay between inputs changing and outputs changing on a digital circuit
RC: when a logic circuit produces erratic output because various inputs have been applied at slightly different times
Sinking and sourcing current:
Definition
On a circuit diagram, how can you tell if the current is sink or source?
Sink: when current flows INTO an input or output
Source: when current flows OUT of an input or output
Sink: flowing from voltage supply to circuit
Source: flowing from circuit to ground
I(IL), I(IH) (how do these relate to VIL and VIH?)
IOL, IOH
What are they?
I(IL): current that will be sourced from an input at logic low (at VIL)
I(IH): current that will sink into an input at logic high (at VIH)
IOL: max current that can sink into an output at low
IOH: max current that can be sourced from an output at high
Output circuits: push-pull/ TTL totem pole
- What do they both look like
- Pros, cons (same for both)
PP top to bottom: Voltage supply, two p/n type transistors, ground
Output from between transistors
TTL: Same except resistor under voltage supply and transistors are NPN (source and current are drawn at angles)
Pros: switchs fast due to low impedance
-Can sink or source current
Cons: two or more outputs can
Output circuits: open-collector/drain outputs
- What does it look like
- Pros, cons
Voltage supply goes through pull-up resistor to ‘bus’ (dotted line)
Multiple transistors with source connected to bus, drain connectedto a ground
Pros: multiple digital devices can pull the line to logic low
Cons: Slow to switch due to pull-up resistor
Output circuits: tri-state
- What does it look like
- Pros, cons
A load of push-pull circuits with outputs connected to a bus.
Pros: Fast, same data bus
Cons: Only one circuit can be in the ‘ON’ state
TTL: Whats supply voltage usually?
Power consumption?
Max/min voltage input thresholds?
Output voltages in comparison to power supply rails?
-Usually fixed at 5V
-High
-Usually 0.8 V and 2.0 V
Usually just a few hundred millivolts difference
CMOS: Whats supply voltage usually?
Power consumption?
Max/min voltage input thresholds?
Output voltages in comparison to power supply rails?
- Flexible, between 1.8V and 5V
- A function of clock speed (zero with no input/output changes)
- Usually 1/3 and 2/3 of power supply voltage
- Essentially equal to power supply (very close)
Microcontroller digital inputs:
What happens if left unconnected?
What do some microcontrollers have to help with this?
What do you need to remember about this help?
Input will ‘float’ and be sensitive to noise
Pull-up resistors which can be applied with software
Resistors should not be more than 10% of input impedance and not less than the value that would cause output current to reach 90% of the recommended limit
Connecting outputs and inputs at different voltage levels-example:
5V output to 3.3V input
3.3V output to 5V input
Solutions for each
Potential dividor (speed is reduced tho)
Direct connection if the lower circuit can handle the voltage
Bi-directional level shifter IC
Direct connection if the VOH for the 3.3V device is higher than VIH for the 5V device
Bi-directional level shifter/buffer IC
Load Switching
Revise
Why is serial communication more popular than parallel?
- Requires multiple input-output connections which is impractical
- As distance increases individual bits in parallel will arrive at different times
Synchronous vs asynchronous:
Whats the difference
What does each need to work
S: each data bit sent is synchronised with the transmission
Requires some form of common timing clock
AS: each data bit sent is NOT synchronised with the transmission
Requires two clocks to be generated which will eventually get out synch
Requires prior agreement for the transfer rate (baud rate)
Full-duplex vs half-duplex
FD: communication can take place in both directions simultaneously
HD: two directions but not simultaneously
UART: what duplex type is it
What type of communication is it
What was the original called?
How do you start and stop a transmission?
What attributes do you need to set in software?
Full-duplex Asynchronous RS-232 Logic 1 as start bit Logic 0 stop bit and pause Baud rate and frame length
I^2C protocol: what type of communication is it
What two things does it need for this to work?
Synchronous
Two lines: clock line (Serial Clock, SCL) and data line (Serial Data, SDA)
I^2C protocol: What duplex type is it?
What type of system is it? What does this mean can happen?
What is there to prevent conflict?
Which device is in control of the flow of data?
Half-duplex
A bus system
More than two devices (ICs) can be connected to the SCL anf SDA lines
An open-collecter bus scheme
By default SCL/SDA lines are high and any device may pull them low
Usually one device acts as master, others are slaves
I^2C protocol: what unique feature to with the clock does it have?
Whats its “Standard Mode” speed?
If a receiving device is struggling to keep up, it can slow down the transfer by holding the clock line ‘low’
Called clock stretching
100 kbit/s