If a pulsewidth modulated (PWM) signal is sent to a passive integrator circuit from a circuit capable of both sourcing and sinking current (as is the case with the dualMOSFET output stage), the output will be a DC voltage (with some ripple):

Determine the relationship between the PWM signal’s duty cycle and the DC voltage output by the integrator. What does this suggest about PWM as a means of communicating information, such as analog data from a measuring device?
There is a directproportional relationship between duty cycle and DC output voltage in this circuit, making it possible for a PWM signal to represent analog data.
Followup question #1: why is it important that the circuit generating the PWM signal for the integrator be able to both source and sink current?
Followup question #2: what would have to be done to reduce the ripple voltage at the integrator’s output?
Although it should not be difficult for students to discern the relationship between duty cycle and DC output voltage, the application of this relationship to data communication might be difficult for some students to grasp, especially on their own. Further elaboration on your part may be necessary.
An excellent example of this principle applied is the generation of an analog voltage by a 1bit digital circuit. This technique is useful in microcontroller systems where output ports may be scarce, provided that ripple voltage (or slow response) is not a problem.
Explain what the purpose of a digitaltoanalog converter, or DAC circuit is, in your own words.
The most basic definition for this device should be obvious: a circuit that takes a digital input and creates an analog output. What I’m looking for, though, is something a little less obvious. In your own words, explain what it means for a circuit to have a “digital input” and an “analog output.” You may give an example of such a circuit if you find it easier to answer the question in context.
Informational sources abound which your students can research. Be sure to ask them to answer specifically, explaining what it means for a circuit to have a “digital input” and an “analog output.”
Explain how this digitaltoanalog converter (DAC) circuit is supposed to function:

I’ll let you figure out the operation of this circuit on your own!
This question is a good review of opamp theory, especially for students who might not have studied operational amplifiers in a while.
A type of resistor network known as an R2R ladder is often used in digitaltoanalog conversion circuits:

When all switches in the R2R ladder are in the “ground” position, the network has a very interesting property regardless of its size. Analyze the Thévenin equivalent resistance (as seen from the output terminal) of the following R2R ladder networks, then comment on the results you obtain:





Did you honestly think I’d do all the work for you and just give you the answer?
The answer is not difficult to obtain if you use each Thévenin equivalent resistance to model the lefthand portion of each successive R2R ladder network as they become more complex! Those students who do not take this problemsolving step are doomed to perform a lot of seriesparallel calculations!
When only the most significant bit (MSB) of an R2R ladder resistor network is activated (all other bits inactive, their switches connecting to ground), the output voltage will be the same, regardless of how many bits the network has:

Explain why this output voltage magnitude stands independent of the number of bits (sections) in the R2R ladder network.

The key to understanding the answer is to apply Thévenin’s theorem to the “inactive” sections of the network. Here, the unique property of constant output impedance for an R2R network yields a useful feature when applied to DAC circuitry.
Thévenin’s theorem is a powerful tool for analyzing R2R ladder networks. Take for instance this foursection network where the nexttomostsignificant “bit” is activated, while all the other “bits” are inactive (switched to ground):

If we Thévenize all sections to the left of the activated section, replacing it with a single resistance to ground, we see the network becomes far simpler:

Explain how we may apply Thévenin’s theorem once again to the shaded section of this next circuit (simplified from the previous circuit shown above) to simplify it even more, obtaining a final result for V_{out}:

Once you get to this point, solving for V_{out} in terms of V_{ref} is trivial:

Students might not realize it is valid to iteratively apply Thévenin’s theorem to the solution of a circuit problem. You can, and this stands as a good example of how (and why!) you should do it.
Determine the voltage output by the following R2R ladder network given the switch states shown in the table:



Followup question: the fact that an R2R resistor network is inherently linear, we may readily apply the Superposition Theorem to figure out what happens when more than one switch is moved to the V_{ref} position. Explain how you would apply Superposition to determine all output voltages for all possible combinations of switch positions.
As you can see, the reference voltage value of 16 volts was not chosen at random! I wanted students to see the pattern between single switch closures and binary placeweights for a fourbit number. The actual electrical analyses for each condition are best expedited by applying Thévenin’s theorem repeated to the circuit, condensing sections to single resistances and voltage sources until a simple voltage divider circuit is obtained at the output terminal.
The followup question is quite important. Be sure to ask your students about it, for it holds the key to figuring out all output voltage values for all binary input possibilities.
Explain why DAC circuits based on R2R ladder networks are more popular than binaryweighed resistor networks. Either one will work well if properly designed and built, so why would one design be more widely manufactured?
The answer to this question has to do with business and productionline priorities. Just because two designs work equally well in theory does not mean they are equally easy to massproduce!
It is important for your students to grasp basic principles and practices of business, because that is the arena their technical skills will most likely find challenge and value. This question is a way to get your students thinking about reallife, practical manufacturing concerns that go beyond basic principles of electrical theory.
Explain what a digital potentiometer is, and give one example of a digital potentiometer in integratedcircuit (IC) form.
Analog Devices manufactures a 64position digital potentiometer under the part number AD5227, for example. This is by no means the only digital potentiometer in production!
Followup question: would you classify a digital potentiometer as an ADC (analogtodigital converter) or as a DAC (digitaltoanalog converter)?
Rarely is the digital potentiometer mentioned in introductory textbooks as a digitaltoanalog converter device, but it is!
What is meant by the word resolution in reference to an ADC or a DAC? Why is resolution important to us, and how may it be calculated for any particular circuit knowing the number of binary bits?
The resolution of either a digitaltoanalog converter (DAC) or an analogtodigital converter (ADC) is the measure of how finely its output may change between discrete, binary steps. For instance, an 8bit DAC with an output voltage range of 0 to 10 volts will have a resolution of 39.22 mV.
Note that I did not hint how to calculate the resolution of a DAC or an ADC, I just gave the answer for a particular example. The goal here is for students to inductively “work backwards” from my example to a general mathematical statement about resolution.
There are actually two different ways to calculate the resolution, depending on the actual range of the converter circuit. For the answer given, I assumed that a digital value of 0x00 = 0.00 volts DC and that a digital value of 0xFF = 10.00 volts DC. If a student were to calculate the resolution for a circuit where 0xFF generated an output voltage just shy of 10.00 volts DC (e.g. an R2R ladder network where V_{ref} = 10 volts DC, and a fullscale binary input generates an output voltage just one step less than V_{ref}), the correct answer for resolution would be 39.06 mV.
You may want to bring up such practical examples of resolution as the difference between a handheld digital multimeter and a labbench digital multimeter. The number of digits on the display is a sure clue to a substantial difference in ADC resolution.
This digitaltoanalog converter (DAC) circuit takes a fourbit binary input (input terminals A through D) and converts it to an analog voltage (V_{out}). Predict how the operation of this circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults):

Followup question #1: is the arrow showing zener diode current drawn in the direction of electron flow or conventional flow?
Followup question #2: which input bit is the most significant (MSB) and which is the least significant (LSB)?
Questions like this help students hone their troubleshooting skills by forcing them to think through the consequences of each possibility. This is an essential step in troubleshooting, and it requires a firm understanding of circuit function.
The following circuit generates an analog output voltage proportional to the value of the binary input, using pulsewidth modulation (PWM) as an interim format. An eightbit binary counter (CTR) continually counts in the üp” direction, while an 8bit magnitude comparator (CMP) checks when the 8bit binary input value matches the counter’s output value. The AND gate and inverter simply prevent the SR latch from being “set” and “reset” simultaneously (when both A and B are maximum, both at a hex value of $FF), which would cause the output to be “invalid” when S and R were both active, and unpredictable when both S and R inputs returned to their inactive states:

Explain how this circuit works, using timing diagrams if necessary to help show the PWM signal at \(\bar{Q}\) for different input values.
Here is a timing diagram to help get you started on a complete answer:

I’ll leave it to you to explain the relationship between the input value (A), the PWM duty cycle, and the analog output voltage.
This circuit provides students with an interesting exercise in timing analysis, as well as being a simple means of converting large binary values into analog output voltages without resorting to using large resistor networks.
This is a digitallyset motor speed controller circuit, using PWM to modulate power to the motor. Predict how the operation of this circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults):

Questions like this help students hone their troubleshooting skills by forcing them to think through the consequences of each possibility. This is an essential step in troubleshooting, and it requires a firm understanding of circuit function.
Published under the terms and conditions of the Creative Commons Attribution License
by Robert Keim
by Robert Keim
by Jake Hertz
by Gary Elinoff
by Robert Keim