Digital Circuits
Digital Logic Signals
9 questions By Tony R. Kuphaldt
-
Question 4 of 9
If we need to produce a discrete logic signal (“high” or “low”) from a mechanical switch, the most direct way of doing so is to use a single-pole, double-throw switch (SPDT) like this:

In the “High” position, the switch directly connects the signal line to V, ensuring a high logic state; in the “Low” position, the switch directly connects the signal line to ground, ensuring a low logic state. What could be simpler?
However, often a SPDT switch is not feasible and we must use a SPST (single-pole, single-throw) switch instead:

A problem often arises with such configurations because in the open position there is neither a connection to V nor ground. In other words, these two SPST configurations produce the exact same indeterminate logic state (“floating”) when their respective switches are open. To remedy this, resistors are often added to such circuits:

Explain what functions the pulldown and pull up resistors serve, and also why they are referred to by those names.
Reveal answerThe “pulldown” and “pull up” resistors do exactly what their names imply: they pull the logic state of the wire in the direction opposite what the switch does when closed.
Follow-up question: to better understand the purpose of these resistors, examine the following circuits without pulldown and pull up resistors to determine what the logic states of the wires will be in both switch positions. Then, add either pulldown or pull up resistors and re-examine the circuits:
Challenge question: how does one calculate the proper resistance (in ohms) for a pulldown or pull up resistor? Will any size work, or is there such a thing as too large or too small?

Notes:If students do not understand the purpose of these resistors after reading the question and researching their texts, they should when they see the follow-up question. Discuss this question with your students, for the concept of pulldown and pull up resistors is one that confuses some students.
-
Question 5 of 9
A common mistake made by students new to digital circuits is to misplace the pull up or pulldown resistors in schematic diagrams, and also in the circuits they build. Study the following schematics and determine whether the resistor in each one is a properly-placed pull up or pulldown resistor, or if it is improperly placed:

Reveal answer
Follow-up question: specifically identify what would be wrong with each of the “improper” circuits.
Notes:This is one concept I have found many students have difficulty grasping, essentially because it involves the determination of a voltage drop between two points (the “arrow” wire and ground). It is a spatial-relations problem, similar to Kirchhoff’s Voltage Law problems where students need to figure out how much voltage is between two specified points given voltage drops across several other pairs of points. Spend time with your students discussing these circuits, because several of your students will probably not understand this concept the first, second, or even third time through.
I strongly recommend students take the approach of a “thought experiment” in determining the efficacy of each circuit shown here: analyze the output voltage (logic state) for each of the switch’s two positions. This simple approach usually helps clarify what each circuit does and why the “improper” circuits do not work.
-
Question 6 of 9
A logic probe is a very useful tool for working with digital logic circuits. It indicates “high” and “low” logic states by means of LED’s, giving visual indication only if the voltage levels are appropriate for each state.
Here is a schematic diagram for a logic probe built using comparators. Each comparator has a threshold adjustment potentiometer, so that it may be set to indicate its respective logic state only if the signal voltage is well within the range stated by the logic manufacturer:

Explain how this circuit functions.
Reveal answerI’ll let you and your classmates figure out how this circuit functions!
Follow-up question #1: explain how you could use a voltmeter as a logic probe to do troubleshooting in a digital circuit.
Follow-up question #2: write a formula for calculating appropriate current-limiting resistor sizes for the two LEDs in this circuit, given the value of V and the LED forward voltage and current values.
Notes:It is important for students to understand that there is a certain range of voltage between a guaranteed “high” state and a guaranteed “low” state that is indeterminate, and that this logic probe circuit is designed to indicate this range of voltage by turning neither LED on.
If time permits, discuss some of the benefits and drawbacks to using a voltmeter as a logic probe (especially a digital voltmeter where the display update time may be relatively long).






