|Don’t just sit there! Build something!!|
Learning to analyze digital circuits requires much study and practice. Typically, students practice by working through lots of sample problems and checking their answers against those provided by the textbook or the instructor. While this is good, there is a much better way.
You will learn much more by actually building and analyzing real circuits, letting your test equipment provide the “answers” instead of a book or another person. For successful circuit-building exercises, follow these steps:
Always be sure that the power supply voltage levels are within specification for the logic circuits you plan to use. If TTL, the power supply must be a 5-volt regulated supply, adjusted to a value as close to 5.0 volts DC as possible.
One way you can save time and reduce the possibility of error is to begin with a very simple circuit and incrementally add components to increase its complexity after each analysis, rather than building a whole new circuit for each practice problem. Another time-saving technique is to re-use the same components in a variety of different circuit configurations. This way, you won’t have to measure any component’s value more than once.
Let the electrons themselves give you the answers to your own “practice problems”!
It has been my experience that students require much practice with circuit analysis to become proficient. To this end, instructors usually provide their students with lots of practice problems to work through, and provide answers for students to check their work against. While this approach makes students proficient in circuit theory, it fails to fully educate them.
Students don’t just need mathematical practice. They also need real, hands-on practice building circuits and using test equipment. So, I suggest the following alternative approach: students should build their own “practice problems” with real components, and try to predict the various logic states. This way, the digital theory “comes alive,” and students gain practical proficiency they wouldn’t gain merely by solving Boolean equations or simplifying Karnaugh maps.
Another reason for following this method of practice is to teach students scientific method: the process of testing a hypothesis (in this case, logic state predictions) by performing a real experiment. Students will also develop real troubleshooting skills as they occasionally make circuit construction errors.
Spend a few moments of time with your class to review some of the “rules” for building circuits before they begin. Discuss these issues with your students in the same Socratic manner you would normally discuss the worksheet questions, rather than simply telling them what they should and should not do. I never cease to be amazed at how poorly students grasp instructions when presented in a typical lecture (instructor monologue) format!
I highly recommend CMOS logic circuitry for at-home experiments, where students may not have access to a 5-volt regulated power supply. Modern CMOS circuitry is far more rugged with regard to static discharge than the first CMOS circuits, so fears of students harming these devices by not having a “proper” laboratory set up at home are largely unfounded.
A note to those instructors who may complain about the “wasted” time required to have students build real circuits instead of just mathematically analyzing theoretical circuits:
What is the purpose of students taking your course?
If your students will be working with real circuits, then they should learn on real circuits whenever possible. If your goal is to educate theoretical physicists, then stick with abstract analysis, by all means! But most of us plan for our students to do something in the real world with the education we give them. The “wasted” time spent building real circuits will pay huge dividends when it comes time for them to apply their knowledge to practical problems.
Furthermore, having students build their own practice problems teaches them how to perform primary research, thus empowering them to continue their electrical/electronics education autonomously.
In most sciences, realistic experiments are much more difficult and expensive to set up than electrical circuits. Nuclear physics, biology, geology, and chemistry professors would just love to be able to have their students apply advanced mathematics to real experiments posing no safety hazard and costing less than a textbook. They can’t, but you can. Exploit the convenience inherent to your science, and get those students of yours practicing their math on lots of real circuits!
Explain the difference between serial digital data and parallel digital data.
Serial data is transmitted along one line, one bit at a time; parallel data is transmitted all at once.
Ask your students of they have ever heard of “serial” and “parallel” ports on personal computers. If time permits, have them examine the two types of ports on the back of a PC, contrasting the number of pins used for each connector.
The following schematic diagram shows two four-bit universal shift registers used to communicate data serially over a coaxial cable of unspecified length:
Specify what logic states would have to be input at the PL, CE, and Clk terminals of each shift register, and at what times, to successfully load four bits of parallel data, shift them serially over the coaxial data cable, and then hold them at the outputs (Q) of the receiving shift register.
I won’t give you all the details here, but I will get you started with a few steps:
This question asks students to think their way through the operation of two coupled shift registers to accomplish the task of parallel-to-serial-to-parallel data conversion. Not only is this a good review of shift register operation, but it shows some (not all!) of what happens during the seemingly simple procedure of sending four bits of data in serial form over a cable.
A challenging detail to figure out in this scheme is how to keep both shift registers synchronized so that one receives the serial data bits at the same time the other sends them. There is more than one way to do this, of course, but the easiest would be to connect the two clock inputs together through another cable conductor.
Personal computers and peripheral devices provide a rich source of examples for both serial and parallel data transmission. Identify some common examples of both serial and parallel data transmission networks (and standards) at work in a common personal computer. Examples may include communication between computers, between computers and peripheral devices (printers, scanners, cameras, special cards), or between fundamental components of the computer (CPU, disk drive, monitor, etc.).
Examples of serial data communication include the 9-pin and/or 25 pin “serial” connectors for RS-232C communication, Ethernet communication, USB ports, and most “mice.” Examples of parallel data communication include 25-pin “parallel” connectors to printer and scanner devices, and cables between motherboard and disk drives (legacy IDE technology).
As computer-savvy as most young students are, questions such as these tend to evoke ready responses and strong interest. You may find that little effort is required on your part to introduce these technologies to your students, as they may be more familiar with certain areas and features of it than you!
A ubiquitous example of serial data communication is the cable linking a keyboard to a personal computer: for every key switch pressed, an ASCII character is transmitted to the computer. An interesting characteristic of this particular communication protocol is the random rate at which the ASCII characters are sent. Because the characters are generated at the rate the computer user happens to type, the rate is completely unpredictable. Consequently, this form of serial data communication is known as asynchronous.
Compare and contrast this against synchronous serial data communication, giving an example of a synchronous data communications standard.
One widespread synchronous data communications standard is SONET, used in long-distance data communication applications. I’ll let you do the research to compare and contrast synchronous against asynchronous.
Challenge question: the data sent between computers along serial-format networks such as RS-232C and Ethernet is “clocked” by precise oscillators at both the transmitting and receiving ends, yet is not considered “synchronous,” even if each byte of data is sent at regular (non-random) intervals. Explain why.
At first, it seems as though any communication between digital devices occurring at a pre-determined frequency (bps) and rate (characters per second) would be synchronous, because everything is happening on fixed intervals. However, the precision inherent to a true synchronous communications network is more rigorous than this. Let your students elaborate on what they have found through their research.
An important integrated circuit (IC) used in digital data communication is a UART. Describe what this acronym stands for, and explain the purpose of this circuit.
“UART” stands for Universal Asynchronous Receiver Transmitter, and its job is to act as an interface between two parallel-data devices, managing communications in serial format along a communication line of some sort.
Follow-up question: give an example of a UART IC available for purchase today.
When students research what a UART is, they will invariably stumble upon terms such as parity, start bit, and stop bit. If they are not yet familiar with the details of asynchronous data communications, this could lead to some enlightening discoveries. Be sure to discuss these terms and details with your students if they bring them up in class, because it means they will be very receptive to your instruction (having been “primed” for learning by wanting to know).
Shown here are three different telegraph circuits. Determine which of these could be classified as simplex, full-duplex, and half-duplex, in terms of serial data transmission:
Follow-up question: trace all currents in these circuits using conventional flow, and then electron flow.
I could have just asked for definitions here, but relating these concepts to real circuits, however simple, carries with it more educational benefit. It is also important to show students that the basic concept of digital communication is really no more complex than the old telegraph, just faster.
An early form of digital, serial data communication was Morse code. Explain what “Morse code” is (or was), and how it compares to more modern codes such as ASCII.
Morse code was a simple convention used to represent alphanumeric characters for telegraph data transmission. At first, human operators served the task of parallel-to-serial-to-parallel data converters, but then machines were built to do this automatically.
An interesting feature of Morse code likely not recognized by your students is inherent compression. Because some Morse characters are shorter than others (fewer pulses) as opposed to ASCII where all characters are the same length, messages sent in Morse tend to require fewer bits than messages sent in ASCII.
An important performance parameter of digital communications networks is the number of bits per second (bps) of data it can handle. Unfortunately, a different term called baud is often used interchangeably with bps. Define what “baud” is, and how it differs from “bits per second.”
“Baud” technically refers to the number of logic level transitions (low-to-high or high-to-low) per second on a network, while “bps” actually refers to the number of data bits transmitted per second. For a specific application where the two terms significantly differ, research a method of data modulation known as Manchester encoding.
While some may argue the difference to be academic, I believe that precision of language and precision of thinking are closely related. The person who does not recognize the difference between “baud” and “bps” most likely knows little about how digital information is encoded for serial transmission. Of course, this is the ultimate issue - understanding how digital data is transmitted. So while we’re at it, we might as well address a common mis-use of language and gain a deeper understanding of how things work, right?
In Claude Shannon’s famous 1948 paper entitled A Mathematical Theory of Communication, he opens with the following statement:
Explain what Shannon was referring to when he said, “exchange bandwidth for signal-to-noise ratio”. In many cases, the superior signal-to-noise ratio of digital communication over analog communication is the primary reason justifying the much greater complexity of digital communications equipment. Also, elaborate on how bandwidth becomes sacrificed in order to achieve relatively noiseless signal transmission.
Digital signals are highly resistant to corruption from noise, because they are composed of discrete (“high” and “low”) states rather than continuously-variable quantities as analog signals are. However, in order to communicate any significant measure of digital information in serial form, many pulses are needed. This requires a high-bandwidth data path to be comparable in speed to analog.
Shannon’s language is perhaps a bit above the norm for technician-level education, but it nevertheless captures an important quality of digital communication: that the noise immunity enjoyed by digital communication comes at a price: high bandwidth. Without a high-bandwidth medium in which to exchange digital information, communication is either slow or completely impractical.
Published under the terms and conditions of the Creative Commons Attribution License
In Partnership with Geehy Semiconductor
by Aaron Carman