Two Bit Analog to Digital Converter – MATLAB Let x (t) = 0.8 cos(2*pi*t) + 0.15,
ID: 1835495 • Letter: T
Question
Two Bit Analog to Digital Converter – MATLABLet x (t) = 0.8 cos(2*pi*t) + 0.15, 0= t = 1, and zero otherwise, be the input to a two bit ADC converter.
a.) For a sampling period Ts = 0.025 sec; determine and plot using MATLAB the sampled signal:
x (nTs) = x(t)It = nTs
b.) The four level quantizer, (see Figure 1.2), corresponding to the 2 bit ADC is defined as:
??=x(nTs)<(?+1)??x ^(nTs)= ?? ?= -2,-1,0,1
Where x(nTs), found above, is the input and x ^(nTs) is the output of the quantizer. Let the quantization step be ? = 0.5. Plot the input-output characterization of the quantizer, and find the quantized output for each of the sample values of the sampled signal x(nTs).
c.) To transform the quantized values into unique binary 2 bit values, consider the following code:
x ^(nTs) = -2? ?10
x ^(nTs) = -? ?11
x ^(nTs) = 0? ?00
x ^(nTs) = ? ?01
Obtain the digital signal corresponding to x(t).
Explanation / Answer
Try the following code that I have written function [Digital_value] = a2d(Analog_value,Bits,Volts,time_length,Fs) %function [Digital_value] = a2d(analog_value,bits,volts,time_length,Fs) % A2D is an analog to Digital converter % % Analog_value = analog value to digitise % Bits = bit-resolution of A/D % Volts = input volt-range of A/D % time_length = time span of input signal % Fs = sampling frequency in Hz % % Digital_value = Quantised digitised analog value % % JP Maré % 17/04/98 vpb=2*Volts/(2^Bits-1); % Volts per Bit index=find(Analog_value>Volts); if ~isempty(index) Analog_value(index)=Volts; end clear index; index=find(Analog_valueRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.