Digital Systems 2: Signal Conversion and Processing Notes
Logistics and Test 2 Arrangements
Test 2 Scheduling Discordance: There was a discussion regarding the date for the Digital Systems 2 Test 2.
Some students believed the test was moved to the 28th based on a group vote.
The lecturer clarified that the test must remain on May 25th at ().
The 28th choice is impossible because marks must be captured into the system by that date. Delaying the test to the 28th would not allow time for marking and collation of prep marks.
Per departmental instruction, the test window for Test 2 starts on the 18th and ends on the 26th.
Pre-Test Timeline: Tasks or specific preparatory materials will be released around Sunday, May 24th. The test will proceed on Monday, May 25th.
Scope of Test 2: The test covers three primary chapters/topics:
Shift Registers.
Memories and Storage.
Data Processing and Control.
Signal Conversion and Processing (the current chapter).
Introduction to Signal Conversion and Processing
Overview: This is the final chapter in the Digital Systems 2 syllabus. It focuses on signal handling, specifically the transition between analog and digital domains.
Process Flow:
Transmit Side: An analog signal is generated at the initiating terminal and must be converted into digital form (binary stream of s and s) for line transmission.
Receive Side: The incoming bit stream is accepted by the receiver and converted back into its original analog form.
Core Components:
ADC: Analog-to-Digital Converter.
DAC: Digital-to-Analog Converter (sometimes referred to as DA converter).
Sampling Theory and the Nyquist Criterion
Sampling Definition: Sampling is the process of taking a number of discrete values from an analog signal at specific points in time to help reshape the waveform.
Sampling Intervals: Samples are taken at regular intervals, and the value of each sample depends on the amplitude of the analog signal at that specific moment.
Harmonics: Harmonics are supplementary frequencies that appear in multiples of the center frequency (sine waves of different frequencies and amplitudes). Generally, distant amplitudes have less effect as they fade from the center frequency.
The Sampling Theorem (Nyquist Criterion): To accurately reproduce an analog signal, the sampling frequency () must be at least twice the highest frequency component () present in the original modulating signal.
Formula:
The frequency is often referred to as the Nyquist frequency in the context of the highest component needing to be captured.
Common Industry Applications:
Digital Audio/CDs: Most music have a high frequency component of approximately . Using a cushion, CDs utilize a sampling rate of (sometimes generalized as ) to capture frequencies up to . High-end audio equipment may use sampling frequencies above .
Telecommunications/Speech: Normal human speech falls within a band. Therefore, communication systems use a standardized sampling frequency of .
Aliasing and Filtering
Anti-Aliasing Filter: An "anti-alias" filter is used to nullify portions of a signal that would cause errors. "Alias" essentially means "part of" or "belongs to."
Aliasing Error: If the sampling frequency is less than twice the maximum analog frequency (f_s < 2 \times f_{max}), the frequency spectrums overlap. In the overlap area, the system cannot distinguish which signal the data belongs to. This creates an alias—a false signal.
Low Pass Filtering: Low-pass filters are implemented to remove harmonics greater than the sampling frequency. This ensures the frequency spectrums for the analog signals do not overlap, thereby eliminating aliasing errors.
The Process of Analog-to-Digital Conversion (ADC)
Step-by-Step Conversion:
Sampling: Discretizing the continuous analog signal based on a sampling frequency.
Sample and Hold: A circuit captures the amplitude of a sample and "holds" that specific voltage level constant across the duration until the next sample is taken. This creates a "staircase" appearance where discrete amplitudes are held across the intervals.
Quantization: The process of assigning a specific binary code value to the corresponding sampled analog amplitude. The signal is read against a binary scale or code level.
Bit Depth and Levels:
A -bit code provides levels (, , , ).
A -bit code provides levels.
Accuracy: When a value like is converted by a calculator or system, it typically captures the integral part () as the binary code (e.g., ). Manual conversion is required for fractional parts, but standard quantization often rounds to the nearest level.
Operational Amplifiers in Signal Conversion
Op-Amp as a Comparator: The central component of an ADC is the Operational Amplifier (Op-Amp) used in a comparator configuration.
Non-inverting input (): Connected to the input signal.
Inverting input (): Connected to a reference voltage.
Comparator Logic:
If V_+ > V_-, the output is a Logic (Positive logic prevails).
If V_+ < V_-, the output is a Logic .
If , theoretically the positive logic prevails (Logic ), though circuits try to avoid this ambiguity through priority encoding.
The FLASH (Simultaneous) ADC Method
Mechanism: This is a high-speed method using a network of resistors and multiple comparators.
Resistor Divider Network: A series of equal resistors () are connected to a reference supply voltage (). This creates multiple reference voltage levels (voltage dividers).
Example: For an supply with resistors, each resistor drops . Points in the network will have reference voltages of , , , etc.
Operation Example:
Given an input sampled voltage of .
This is compared simultaneously against the reference voltages ().
Comparators at levels and will output Logic because 3.4 > 1, 3.4 > 2, and 3.4 > 3.
Comparators at levels and above will output Logic because 3.4 < 4.
A priority encoder then takes the highest active line (Line ) and converts it to a binary code (e.g., for a -bit system).
The Successive Approximation Register (SAR) ADC Method
Mechanism: SAR is a common ADC method that uses a DAC (Digital-to-Analog Converter) within its internal feedback loop. It performs a "binary search" to find the digital equivalent of an analog input.
The "Keep or Reset" Logic:
Rule 1: Logic output from the comparator means Reset (Clear the bit).
Rule 2: Logic output from the comparator means Keep (Maintain the bit).
Operation Example (-bit system, weighting ):
Input Voltage: .
Step 1: Set the Most Significant Bit (MSB, ) to ; others to (, value = ). Compare to . Since 5 < 8, output is . Reset MSB to .
Step 2: Set the next bit () to (, value = ). Compare to . Since 5 > 4, output is . Keep this bit.
Step 3: Keep previous bit and set the next bit () to (, value = ). Compare to . Since 5 < 6, output is . Reset bit to .
Step 4: Keep previous "Keep" bits and set LSB () to (, value = ). Compare to . Result is Logic . Keep this bit.
Final Result: The digital output is .
Errors in Analog-to-Digital Conversion
Typical ADC Errors:
Missing Code: A specific binary code is skipped or never output, even when the input voltage is in the correct range. The ramp is interrupted.
Incorrect Code (Bit Stuck): Caused by a specific bit being permanently "stuck high" (Logic ) or "stuck low" (Logic ). This ruins the linear progression of the binary values.
Offset Error: The conversion does not start at zero. For example, the ramp might start at a value of instead of .
Digital-to-Analog Conversion (DAC) Fundamentals
Process: Taking digital binary values and converting them to a proportional analog voltage or current.
Bilateral Weighted Input DAC: This method resembles a summing amplifier (adder) from electronics. It uses an Op-Amp in an inverting configuration, meaning the output voltage () will be the negative of the sum of the inputs.
Binary Weighted Input DAC
Resistor Weighting: The resistors are assigned values in a binary-weighted fashion (e.g., ).
Crisscross Weighting Relationship:
The Smallest Resistor () is assigned to the Most Significant Bit (MSB) because it allows the most current to flow.
The Largest Resistor () is assigned to the Least Significant Bit (LSB) because it allows the least current to flow.
Formulas and Calculations:
Current through a branch ():
Output Voltage Contribution: , where is the feedback resistor.
Example: For a -bit DAC with and R_F = 10\,\text{k\Omega}, each bit has an individual scaled voltage value (e.g., MSB , LSB ). If the input is , all current contributions are added together to reach a maximum negative output (e.g., ).
Questions & Discussion
Question regarding viewing marks: Some students mentioned they cannot see their marks for Test 1 while others can. Response: The lecturer confirmed he made the marks available for all groups. If it is only a few individuals, it might be a profile issue; if it is a whole group, it requires deeper investigation. He will check the group settings and individual profiles.
Question regarding ending the session: A student requested to end the class early to prepare for a practical session at (). Response: The lecturer agreed and concluded the session after finishing the explanation of the Binary Weighted Input DAC. The next topic will be the R-2R ladder network.