Fundamentals of DSP: Introduction To Digital Signal Processing
Fundamentals of DSP: Introduction To Digital Signal Processing
Fundamentals of DSP: Introduction To Digital Signal Processing
Part 1
Introduction to Digital Signal Processing
• Time domain
• Frequency domain
• Amplitude domain
Frequency Amplitude
• Laplace domain
domain domain
• …
Unrestricted © Siemens AG 2017
Page 5 Siemens PLM Software
Time, frequency and amplitude domains
Time
domain
Each domain = different coordinate Each domain highlights a
system that is used to view or particular aspect of the
describe the characteristics of a characteristics of a system
system or event or event
Frequency Transformation
Amplitude
domain domain
• The time domain is usually the basis for a description of a system’s dynamic behavior.
e.g. differential equation of motion. Events are measured as a function of time
• The frequency domain highlights the periodic characteristics of the system or event
• The amplitude domain represents looks at the probability distribution of the amplitudes
-1
Joseph Fourier -2
(º1768 - †1830)
Time
-3
Théorie analytique de -4
la chaleur (1822)
domain
2.5
1.5
conduction 0.5
-0.5
u 2u 2u
-1
-1.5
k 2 2
-2
-2.5
For mathematicians …
X x t e j t
dt
• Convert from time to frequency domain
and back
xt
1
• Fourier integral
d
j t
X e
• No information is lost when converting! 2
3 2
1.5
2
1
1
0.5
0 0
-1 -0.5
f [Hz]
-1
-2
-1.5
-3
-2
-4 -2.5
Time domain
T0 1 rad
t [s]
Period: T0 [s]
2
Frequency domain
f [Hz]
Frequency: f0 = 1/T0 [Hz]
f0
[rad/s]
Pulsation / circular frequency: 0 = 2f0 = 2/T0 [rad/s]
0
2f
1 second
f is in Hz
ω is in radians/sec
2 Hz 4 Hz
Amp Amp
time time
1 second 1 second
1g 0.5 g
Amp Amp
time time
1 second 1 second
5 g Peak
5
3.5 g RMS (.707 of Peak)
Amp
0
time
-5
10 g Peak-to-Peak (2xPeak)
0
time
Phase is measured as an angle
Orange signal “lags” the green by about
45° or /4 radians
Green signal “leads” the orange by about
315° or 7/4 radians
x(t ) A sin( 2ft )
Note: You will get a complex number for each point in your spectrum
Log
Magnitude
Phase
Phase
Hz
f
Time Frequency Time Frequency
10 Hz sine wave, sampled at 512 Hz: digital representation looks like a perfect sine
10 Hz sine wave sampled high (512 Hz, red) and low (64 Hz, green) on a digital oscilloscope
Sampling frequency = sine wave frequency Sampling frequency = 2 x sine wave frequency
fs = fsine fs = 2 x fsine
Observed frequency is wrong: 20 Hz sine wave sampled at 21.3 shows as 1.3 Hz signal
Aliasing
Sample rate
0 1.3 20 21.3
Frequency
fs/2 Nyquist
“Observed” Usable
frequency
Information to be discarded frequency
frequencies No usable data
range
True fs
frequencies f max
0 fs/2 fs 2fs 3fs 2
Amplitude
• Large files sizes digitizing
• Limitations of data acquisition equipment
1
0
Frequency fs/2=fmax
Unrestricted © Siemens AG 2017
Page 30 Siemens PLM Software
Sampling analog signals
How to prevent aliasing?
Amplitude
frequencies above half the sample frequency digitizing
bandwidth
Amplitude is determined
with a discrete resolution
𝑁 = 2𝑀 − 1 M N ΔV SQNR
• The voltage resolution of an ADC is equal to # of bits # of voltage Voltage Signal to
its overall voltage measurement range steps resolution quantification
divided by the number of discrete values:
(for +/- 10V range) noise ratio
4 16 1.24 V 24 dB
𝑉𝑟𝑎𝑛𝑔𝑒
∆𝑉 = 8 255 78.1 mV 48 dB
2𝑀
12 4 095 4.88 mV 72 dB
• The Signal-to-quantization-noise ratio is given
16 65 535 0.305 mV 96 dB
by
24 16 777 215 1.19 µV 144 dB
𝑆𝑄𝑁𝑅 = 20 𝑙𝑜𝑔10 2𝑀 ≈ 6.02 ∗ 𝑀 𝑑𝐵
+V Headroom or
Overhead
Input range
or
Full scale range
or Time
ADC range
Analog Digital
-V
2 mV signal / 0.305 mV = 13
truncated to 13 possible levels
2 possible solutions:
Use ADC with higher number
of bits
Apply gain to the signal prior
to ADC
Fourier
Sine
frequency
10.7 Hz
Leakage when signal is not periodic Leakage when sine wave frequency
within the observation window falls between the spectral lines
Unrestricted © Siemens AG 2017
Page 47 Siemens PLM Software
Why is this happening?
Periodicity assumption
Fourier
AKA
No Window
Freq. domain