Interface Electronics04 Spectral TestProf. Dr. Jörg VollrathPrevious: 03 INL, DNL Error |
Länge: 01:06:27 |
0:0:0 Save Webpage.zip file 0:1:10 Extract files 0:2:20 Start LTSPICE 0:3:15 Downloaded LTSPICE files 0:4:20 0 0:4:20 Directories 0:5:18 Copy group directory and change name 0:5:52 0 0:5:52 Open our .html report file 0:7:31 Open with Notepad++ 0:8:41 Webpage in Browser 0:9:28 HTML content 0:14:31 HTML slide Overview 0:16:56 Installation of webpage template 0:24:4 Start with LTSPICE 0:25:45 LTSPICE files 0:26:51 Copying of LTSPICE files, New slide 0:28:31 Insert image 0:30:3 LTSPICE simulation started 0:31:41 Add voltage source with pulse and ramp 0:32:31 Ramp voltage 0:34:20 Automatic Webpage update 0:35:26 Update report 0:35:36 Simulation starts 0:37:56 Output voltage for each code? 0:38:42 Cursor measurement 0:39:6 .measure statements 0:43:21 Measurement file saved and executed 0:44:21 Execute measurement file 0:45:12 Output voltage results 0:46:50 Copy bitmap of output, irfanview, save 0:47:56 HTML <img> tag 0:49:22 Comment into report 0:53:14 Enable local file load for Firefox 0:55:21 about:config privacy_file_unique_origin 0:57:50 Real DAC example 1:0:26 Simulation started with levels 1:2:6 Setting up level measurements 1:4:44 Measurement results 1:6:36 Look at INL and DNL calculation 1:9:36 Zip your folder. |
Länge: 01:06:27 |
0:0:0 0 0:1:33 Signal to noise ratio 0:2:5 Quantization error 0:3:40 ADC Dynamic Range SNR = N · 6.02 dB 0:6:18 ADC Dynamic Range SNR = N · 6.02 dB´+ 1.76 dB 0:8:30 ENOB = (SNR -1.76 dB)/6.02 dB 0:9:15 Signal to quantization noise numbers 0:14:32 Aliasing 0:15:42 Filtering prevents aliasing 0:18:18 Nyquist zones 0:18:42 Data converter classification: Nyquist, oversampling, undersampling 0:22:33 ADC Error simulation with FFT 0:25:22 Frequency noise table 0:27:52 Signal to noise ratio example 0:30:32 u(t) = 0.5 + 0.5 sin(ω t) 0:31:42 SQNR 0:35:36 Distributing noise over NFFT/2 bins: 10 log(NFFT/2) 0:39:2 Noise level estimation not possible only calculation 0:40:42 Signal to distortion 0:42:17 fsignal equal fsampling/2 0:45:42 Non integer number of periods 17.6 causes bleeding 0:47:15 Windowing split signal to adjacent bins 0:50:2 Kaiser and Nutall, simulation guides measurement 0:52:10 Power of 2 number of periods causes pattern in spectrum 0:53:42 Prime number of periods 0:56:47 Noise and signal, amplitude and level 0:59:2 INL, DNL non linearity error and FFT harmonic 1:2:47 Single distortion 1:9:2 FFT Challenges 1:10:14 Why Web application and not Matlab, Excel, C program 1:11:47 FFT Application spectrum |
Quantization error is the difference between the quantized signal and the original signal. The quantization error stays between \( \pm \frac{1}{2} LSB \) for the input range. |
|
First approximation: Vsp: signal peak full scale voltage Vqp: peak quantization noise voltage \( SNR \approx 20 \cdot log\frac{V_{sp}}{V_{qp}} \approx 20 \cdot log\frac{LSB \cdot 2^{N}}{LSB} dB \) \( SNR = 20 \cdot N \cdot log(2) = 6.02 \cdot N dB\) |
|
Second approximation: \( SQNR = 6.02 \cdot N dB + 1.76 dB \) Using integral over quantization error function. \( \overline{\epsilon_{q}^2} = \frac{1}{T} \int_{- \frac{T}{2}}^{+\frac{T}{2}} ( k \cdot t )^2 dt \) |
|
Signal to Quantization Noise Ratio: \( SQNR = 6.02 \cdot N dB + 1.76 dB \) Signal to noise and distortion ratio: SINAD without distortion: SINAD = SQNR = 6.02 N dB + 1.76 dB Effective Number of Bits: \( ENOB = \frac{SINAD - 1.76 dB}{ 6.02 dB} \) |
|
The frequencies fx and nfs ± fx, n integer, are indistinguishable in the discrete time domain Nyquist zones 1st: 0..fs/2; 2nd: fs/2..fs; 3rd: fs..3/2fs; 4th: 3/2 fs..2fs Anti aliasing filter |
|
The JavaScript simulator can be used: ADCharacteristic 8-bit ADC, 0.5 V Amplitude, 0.5 V offset, 17 periods, 4096 points FFT. Lowest frequency shows in this simulation DC magnitude. Signal magnitude is -9 dB for frequency 17: 500 mV amplitude gives \( 20 \cdot log \left( \frac{0.5}{\sqrt{2}} \right) = -9 dB \) Total noise is -58 dB which is -9 dB - 6.02*8 dB -1.76 dB = -58 dB using 8 bits. Since the noise is distributed over 4096 bins the noise is distributed around: \( -58 dB - 10 log \left( \frac{NFFT}{2} \right) dB \) = -58 dB - 10 log (2048) dB = -91 dB Unfortunately there is a lot of noise, so it is difficult to estimate the -91 dB. |
|
|
Application
|
Issues
|
|
Signal to noise ratio: | SNR = -9.06 dB - (- 59 dB) = 50 dB. Signal magnitude line 1 and total noise magnitude line 2. From there on total noise magnitude remains constant. No more harmonics. |
Signal to distortion ratio: | SDR = -9.06 dB - (-55.15 dB) = 46.09 dB Signal magnitude line 1 and signal magnitude line 2. |
Signal to noise and distortion ratio: | SNDR = - 9.06 dB - (- 53.66 dB) = 44.6 dB line 1 |
Spurious free dynamic range: | SFDR = -9.06 dB - (- 55.15 dB) = 46.09 dB Signal magnitude line 1 and signal magnitude line 2. |
ADC ideal, DAC Test | Ramp | One sample per code |
ADC ideal, DAC Test | Ramp | Many samples per code |
ADC ideal, DAC Test | Sine | One or many samples per code |
ADC Test, DAC ideal | Ramp | One sample per code with missing codes |
ADC Test, DAC ideal | Ramp | Many samples per code with missing codes |
ADC Test, DAC ideal | Sine | Many samples per code with missing codes |