File:Dds time-8 16.svg
Page contents not supported in other languages.
Tools
General
Sister projects
In other projects
Appearance
Size of this PNG preview of this SVG file: 512 × 384 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 512 × 384 pixels, file size: 20 KB)
This is a file from the Wikimedia Commons. The description on its description page there is shown below. |
Summary
DescriptionDds time-8 16.svg |
English: Output signals of a Direct Digital Synthesizer, nice step |
Date | |
Source | Own work |
Author | Fcorthay |
Source code
This graphics has been realized with the help of the following Octave script:
#------------------------------------------------------------------------------- # Specifications # bitNb = 8; clockFrequency = 100E6; outputFrequency = clockFrequency / (2^(bitNb-4)); outputFrequency = 7/8 * outputFrequency; fftMin = -100; printFigures = 1; pointNb = 2^bitNb; #=============================================================================== # DDS time signals # step = round(2^bitNb * (outputFrequency/clockFrequency)); sawtooth = zeros(1, pointNb); for index = 2:length(sawtooth) sawtooth(index) = rem(sawtooth(index-1) + step, 2^bitNb); endfor msb = sawtooth >= 2^(bitNb-1); sine = sin(sawtooth*(2*pi)/2^bitNb); figure(1); time = [1:length(sawtooth)] / clockFrequency; plot(time, sawtooth, 'g'); hold on; plot(time, msb*2^(bitNb-1), 'r'); plot(time, sine*2^(bitNb-2)+2^(bitNb-2), 'b'); hold off; xlabel('time'); ylabel('DDS outputs'); title(['Direct Digital Synthesizer, ', ... sprintf('%d', bitNb), ' bits, step = ', ... sprintf('%d', step)]); grid; if (printFigures != 0) print -dsvg dds_time.svg endif #------------------------------------------------------------------------------- # Fourier transform # msbTransform = 20*log10(abs(fft(2*(msb-0.5)))/length(msb)); msbTransform(msbTransform < fftMin) = fftMin; sineTransform = 20*log10(abs(fft(sine))/length(msb)); sineTransform(sineTransform < fftMin) = fftMin; frequency = linspace(0, clockFrequency, pointNb); figure(2); plot(frequency, msbTransform, 'r'); hold on; plot(frequency, sineTransform, 'b'); hold off; xlabel('frequency'); ylabel('DDS outputs FFT'); title(['Direct Digital Synthesizer, ', ... sprintf('%d', bitNb), ' bits, step = ', ... sprintf('%d', step)]); grid; if (printFigures != 0) print -dsvg dds_frequency.svg endif
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Items portrayed in this file
depicts
6 December 2011
image/svg+xml
f665dc98651b6de8276ab2cb0364a16df0848b10
20,424 byte
384 pixel
512 pixel
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:41, 6 December 2011 | 512 × 384 (20 KB) | Fcorthay |
File usage
The following page uses this file:
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Image title | Produced by GNUPLOT 4.4 patchlevel 3 |
---|
Retrieved from "https://en.wikibooks.org/wiki/File:Dds_time-8_16.svg"