Professional Documents
Culture Documents
ECE 371 Electronics Measurements and Testing: Assignment #1 Direct Digital Synthesizer (DDS)
ECE 371 Electronics Measurements and Testing: Assignment #1 Direct Digital Synthesizer (DDS)
ECE 371 Electronics Measurements and Testing: Assignment #1 Direct Digital Synthesizer (DDS)
Assignment #1
Direct Digital Synthesizer (DDS)
Submitted to Dr.
Emad Hegazi
Submitted by:
-Ahmed Ibrahim Al-Azhary Ahmed (Section 1)
-Omar Abd El-Nasser Fawzy (Section 2)
Theory of Operation:
In its simplest form, DDS is implemented using a precision
reference clock, and address counter, programmable read
only memory (PROM) and D/A converter (as shown in this figure)
MATLAB Simulation:
MATLAB code:
clc;
clear all;
close all;
sinlut=1024;
SINTAB=sin(2*pi*(0:sinlut-1)./sinlut);
fs=1024;
Freq=1;
index=1;
step=(Freq/fs)*sinlut;
for i=1:1024
sin1Hz(i)=SINTAB(round(index));
index=index+step;
if index>sinlut
index=index-sinlut;
end
\end
plot(sin1Hz);
hold on;