CO2035 - Lecture 1 - Introduction of Signal and System
CO2035 - Lecture 1 - Introduction of Signal and System
What is a Signal?
§ Any physical quantity that varies with time, space, or any other independent
variable or variables.
§ Examples: pressure as a function of altitude, sound as a
function of time, color as a function of space, etc.
§ Representation
▫ x(t)=cos(2πt), x(t)=4pt+t3, x(m;n)=(m+n)3
CO2035 – Introduction of Signal and System 3
What is a System?
§ A physical device or program that performs an operation on a signal such as
information transform and extraction.
▫ Performing an operation on a signal is called signal processing
§ Examples
▫ Analog amplifier
▫ Noise canceller
▫ Communication Channel
▫ etc.
§ Representation
CO2035 – Introduction of Signal and System 4
§ Examples
▫ Voltages as a function of time
▫ Height as a function of pressure
▫ Number of positron emissions as a function of time
CO2035 – Introduction of Signal and System 5
§ Examples
▫ Number of stocks traded per day
▫ Average income per province
CO2035 – Introduction of Signal and System 6
§ Examples
▫ Color
▫ Temperature
▫ Pain-level
CO2035 – Introduction of Signal and System 7
§ Examples
▫ Digital image
▫ Population of a country
CO2035 – Introduction of Signal and System 8
§ Digital signals are important because they facilitate the use of digital signal
processing (DSP) systems, which have practical and performance advantages
for several applications.
CO2035 – Introduction of Signal and System 10
§ Digital system =
digital signal input + digital signal output
▫ Advantages: re-configurability using software, greater control over
accuracy/resolution, predictable and reproducible behavior.
CO2035 – Introduction of Signal and System 11
§ Multidimensional Signal
▫ Signal is a function of M independent variables (M > 1).
▫ Example
Image: ~ (x, y)
Black/White TV Image: ~ (x, y, t)
§ Random signal
▫ Any signal that lacks a unique and explicit mathematical expression and thus
evolves in time in an unpredictable manner.
▫ It may not be possible to accurately describe the signal.
▫ The deterministic model of the signal may be too complicated to be of use.
CO2035 – Introduction of Signal and System 14
Continuous-time Sinusoids
CO2035 – Introduction of Signal and System 16
§ Larger F, smaller T
CO2035 – Introduction of Signal and System 17
Discrete-time Sinusoids
Complex Exponentials
§ Continuous-time
§ Discrete-time:
CO2035 – Introduction of Signal and System 20
Periodicity: Continuous-time
CO2035 – Introduction of Signal and System 21
Periodicity: Discrete-time
CO2035 – Introduction of Signal and System 22
Example 1
Example 2
Example 3
CO2035 – Introduction of Signal and System 25
Uniqueness: Continuous-time
CO2035 – Introduction of Signal and System 26
CO2035 – Introduction of Signal and System 27
CO2035 – Introduction of Signal and System 28
Analog-to-Digital Conversion
§ Sampler
▫ Sampling
§ Quantizer
▫ Quantization
§ Coder
▫ Coding
CO2035 – Introduction of Signal and System 29
§ Sampling
▫ Conversion from continuous-time to discrete-time by taking “samples” at discrete
time instants.
▫ E.g., uniform sampling: x(n)=xa(nT) where T is the sampling period and n Z.
CO2035 – Introduction of Signal and System 30
Sampling Theorem
CO2035 – Introduction of Signal and System 31
Example
§ Do sampling x1(t) and x2(t) with sampling frequency Fs=100Hz
▫ x1(t) = 3cos(20πt)
▫ x2(t) = 3cos(220πt)
x1(t) x2(t)
Sampling
x1(n) =3cos(πn/5)
CO2035 – Introduction of Signal and System 32
Aliasing
§ What is aliasing?
x0(t) = ACos(2πF0t + θ)
xk(t) = ACos(2πFkt + θ) where Fk = F0 + kFs (k Z)
§ Quantization
▫ Conversion from discrete-time continuous-amplitude signal to a discrete-time
discrete-amplitude signal.
▫ Quantization error: eq(n) = xq(n) − x(n) for all n Z.
CO2035 – Introduction of Signal and System 34
∆ = (Ymax - Ymin)/(L–1)
Quantization error:
Rounding: | eq(n) | <= ∆/2
Truncated: | eq(n) | < ∆
CO2035 – Introduction of Signal and System 35
§ Coding
▫ Representation of each discrete-amplitude xq(n) by a b-bit binary sequence.
2b ³ L Þ b ³ ceil(log2L)
▫ E.g., if for any n, xq(n) {0; 1;…; 6; 7}, then the coder may use the following
mapping to code the quantized amplitude.
CO2035 – Introduction of Signal and System 36
Digital-to-Analog Conversion
§ To convert digital signal to analog signal.
Exercise
1§ A given signal 𝑥 𝑡 = cos !"⁄ − s𝑖𝑛 !"⁄ + 3cos !" + ! , determine
# $ % &
a. Sampling frequency Fs that satisfies the sampling theorem.
b. x(n) using Fs determined in (a)
c. The number of quantization levels L of x(n) with D=0.1
d. The binary sequence corresponding to each quantized value of x(n). (Using truncated method for
quantization)
---------------------------------------
2
§ A given signal 𝑥 𝑡 = 3cos 600𝜋𝑡 + 2 s𝑖𝑛 1800𝜋𝑡 , determine
a. Sampling frequency Fs that satisfies the sampling theorem.
b. x(n) using Fs determined in (a)
c. Quantization error if using 1024 quantization levels
d. The binary sequence corresponding to each quantized value of x(n). (Using rounding method for
quantization)
CO2035 – Introduction of Signal and System 40
Exercise
3§ Determine which of the following sinusoids are periodic and compute their
fundamental period.
!"# &'#
▫ cos 0.01πn cos π cos 3πn sin 3n sin(π )
$"% $"
▫ The signal 𝑥( (t) is sampled with a sampling rate Fs = 300 samples/s. Determine the
discrete signal x(n) and determine the periodic property of x(n). If x(n) is periodic
signal, determine the frequency and period of x(n). Then, compute the sample
values in one period of x(n).
CO2035 – Introduction of Signal and System 41
References
§ Chapter 1 - Textbook