630 likes | 642 Views
Understand the power, performance, and stability of logic gates made with transistors. Learn about TTL inverters, totem pole arrangements, and tri-state buffers. Discover sequential logic, flip-flops, and memory units like RAM. Explore analog-to-digital and digital-to-analog converters, comparators, and binary conversions.
E N D
Other Logic Families • As one has an increasing number of logic gates one has to be concerned with their power performance and stability. • The logic gates can be made out of various combinations of resistors, diodes, and transistors. They differ in power and stability. • Let us examine an inverter from the TTL (transistor-transistor logic) family.
On-Off • Recall that a transistor can be thought of a switch. • When the switch is off, the transistor has very high resistance. • When the switch is on, the transistor has relatively low resistance. • It “transfers resistances.”
Totem Pole • The right-hand side of the TTL inverter is an arrangement of transistors known as a totem pole. • The transistors are arranged to that one is on and one is off. • The inverter output is just above the lower transistor in the totem pole. • If the lower transistor is on, there is little voltage drop across the lower transistor and so the output voltage is close to 0 (ground).
Totem Pole (Cont.) • If the lower transistor is off, then there is a large voltage drop across the lower transistor and so the output voltage is high. • One is almost directly connected to the high or the ground giving this arrangement good power/stability characteristics.
Similar arrangement/Opposite idea • In the totem pole arrangement, one guarantees that one of the two transistors is on and the other is off – giving a low-resistance connection to high or low as the case may be. • If we arrange for a third possibility that both transistors are off, then there is a high resistance between the output and both the high and the low. • This high-resistance or high-impedance state is neither high nor low, but effectively disconnected.
Same idea as the tri-state buffer • This circuit has the essential ingredients to make a tri-state buffer. • Recall that tri-state buffers are used in conjunction with buses. • When one has several devices that could place their information on the bus (“drive the bus”) only one of them should. • If two devices attempt to drive the bus to opposite voltage levels, there will be a short.
Tri-state buffer Compare the Electronics Workbench tri-state buffer to the previous circuit made of transistors and logic gates.
Sequential Logic • Whereas combinatorial logic depends only on the current inputs, sequential logic can also depend on the previous “state” of the system. • Circuitry designed to hold a high or low state is known as a flip-flop. • A flip-flop is the smallest unit of RAM – random access memory. • Recall there are two basic categories of RAM: dynamic RAM (DRAM) and static RAM (SRAM).
Flip Flops • Flip-flops serve as the elementary units for memory in digital systems. Two features are needed: • 1. The circuit must be able to “hold” either state (a high or low output) and not simply reflect the input at any given time. • 2. But in some circumstances, we must be able to change (to “set” and “reset”) the values.
Remembrance of states past • The way in which the previous state information is held is different for different types of memory • In DRAM (dynamic random access memory), the state (1 or 0) is held by a charge (or lack thereof) remaining on a capacitor • Charges tend to leak off of capacitors, which is why DRAM must be periodically refreshed
Simple Digital to Analog Converter .111 corresponds to 7/8 7/8 of 5 is 4.375
Simple Digital to Analog Converter .100 corresponds to 1/2 1/2 of 5 is 2.5
Analog-to-Digital • We have seen a simple digital-to-analog converter, now we consider the reverse process • For this purpose we introduce a new circuit element — the comparator • A digital comparator would compare two binary inputs A and B and determine if A is larger than B (as well as if A = B). • An analog comparator would determine whether voltage A is larger than voltage B
Comparator (analog) + Input higher than – input, output is high
Comparator (analog) + Input lower than – input, output is low
1-bit analog-digital converter Input voltage is less than half of reference voltage, result is low. Reference Voltage Input voltage
1-bit analog-digital converter Input voltage is more than half of reference voltage, result is high. Reference Voltage Input voltage
Finish this truth table Doesn’t occur
Integrated circuit version Warning: may need to flip switch back and forth.