What is the role of the resistor in e.g. an AND gate like this one? :

One often sees lots of resistors in electric circuits, but I haven't really understood their role.
|
What is the role of the resistor in e.g. an AND gate like this one? :
One often sees lots of resistors in electric circuits, but I haven't really understood their role. |
|||||||||||||
|
|
Resistors are generally used to dimension electrical devices to the ranges in voltage, current, time constants, what have you, that are needed. In this specific example the resistor is used to dimension the voltage drop in case one of the inputs has low voltage (lower than $V$), so that a current flows from $V$ to the input (it can only flow in this direction because of the way the diodes are connected). Once a current $I$ flows, a drop of $V_{drop}=IR$ will drop across the resistor and lower the output voltage. This ensures the functionality as an AND gate. If both input voltages are high, no or only little current will flow, thus only a small voltage will drop keeping the output voltage high. If one of the too inputs has low voltage, the output oltage will drop. In logical terms high voltages are logical 1s and low voltages are logical 0s. To summarize $V$ is dimensioned to define what "low" and "high" voltages are. and $R$ is dimensioned to define how big the voltage drop is going to be. |
|||
|
|
|
The resistor provides the logic one when both inputs are high. As far as choosing a resistor, this is a matter of two contradictory requirements. (1) You want the resistor to be low so that the circuit's propagation delay for low to high transitions is short. That is, you want it to drive a capacitive load (for example, wire plus parasitic capacitances) quickly. If the load is C and your time budget for the rise time delay is T, then you want $RC < T$ so pick $R < C/T$. (2) You want the resistor to be high so that the circuit does not dump a lot of current through the diodes when the output is low. If the maximum current your weakest input can sink (at its low voltage level) is I, then you want $IR > V - V_d$ where $V_d$ is the voltage drop of the forward biased diode, so $R> (V-V_d)/I$. This type of AND gate is somewhat primitive in that its low output voltage is a diode drop higher than its low voltage input. Therefore its output has a diode drop less noise immunity than its input (as compared to the same high voltage level). One can only do this so many times before running out of noise margin. This is why modern logic families have less primitive output stages. |
|||
|
|