Presentation is loading. Please wait.

Presentation is loading. Please wait.

CEN352 Dr. Nassim Ammour King Saud University

Similar presentations


Presentation on theme: "CEN352 Dr. Nassim Ammour King Saud University"β€” Presentation transcript:

1 CEN352 Dr. Nassim Ammour King Saud University
Chapter 3 Digital Signals and Systems CEN352 Dr. Nassim Ammour King Saud University

2 CEN352 Dr. Nassim Ammour King Saud University
Introduction This chapter introduces notations for digital signals and special digital sequences. The chapter continues to study some properties of linear systems such as time invariance, causality, impulse response, difference equations, and digital convolution. CEN352 Dr. Nassim Ammour King Saud University

3 Graphical representation of a discrete-time signal 𝒙(𝒏)
Digital Signals A discrete-time signal π‘₯(𝑛) is a function of an integer variable 𝑛, where π‘›βˆˆβ„€. Graphical representation of a discrete-time signal 𝒙(𝒏) For floating point DS processor, the amplitudes can be floating points. CEN352 Dr. Nassim Ammour King Saud University

4 CEN352 Dr. Nassim Ammour King Saud University
Digital Signals Contd. Besides the graphical representation, there are some alternative representations. π‘₯ 𝑛 = 1, π‘“π‘œπ‘Ÿ 𝑛=1,3 4, π‘“π‘œπ‘Ÿ 𝑛=2 0, π‘’π‘™π‘ π‘’π‘€β„Žπ‘’π‘Ÿπ‘’ 1. Functional representation 2. Tabular representation 3. Sequence representation (bold or arrow for origin n=0) π‘₯ 𝑛 = …,0 ,𝟎 ,1 ,4 ,1, 0, 0,… π‘–π‘›π‘“π‘–π‘›π‘–π‘‘π‘’βˆ’π‘‘π‘’π‘Ÿπ‘Žπ‘‘π‘–π‘œπ‘› π‘ π‘–π‘”π‘›π‘Žπ‘™ π‘₯ 𝑛 = 0 ,βˆ’2 ,1 ,4 ,βˆ’1, π‘“π‘–π‘›π‘–π‘‘π‘’βˆ’π‘‘π‘’π‘Ÿπ‘Žπ‘‘π‘–π‘œπ‘› π‘ π‘–π‘”π‘›π‘Žπ‘™ CEN352 Dr. Nassim Ammour King Saud University

5 CEN352 Dr. Nassim Ammour King Saud University
Common Digital Sequences 1. Unit-impulse sequence: 2. Unit-step sequence: CEN352 Dr. Nassim Ammour King Saud University

6 CEN352 Dr. Nassim Ammour King Saud University
Shifted Sequences CEN352 Dr. Nassim Ammour King Saud University

7 CEN352 Dr. Nassim Ammour King Saud University
Sinusoidal and Exponential Sequences CEN352 Dr. Nassim Ammour King Saud University

8 CEN352 Dr. Nassim Ammour King Saud University
Example 1 The sum CEN352 Dr. Nassim Ammour King Saud University

9 CEN352 Dr. Nassim Ammour King Saud University
Generation of Digital Signals To generate the digital sequence π‘₯ 𝑛 from the analog signal π‘₯ 𝑑 : uniformly sampling at the time interval of βˆ†π‘‘=𝑇 π‘₯ 𝑛 = π‘₯(𝑑) 𝑑=𝑛𝑇 =π‘₯(𝑛𝑇) Example 2 Convert analog signal π‘₯ 𝑑 into digital signal π‘₯ 𝑛 , when sampling period is 125 microsecond, also plot sample values. π‘₯ 𝑑 =10 𝑒 βˆ’5000𝑑 𝑒(𝑑 Solution: CEN352 Dr. Nassim Ammour King Saud University

10 CEN352 Dr. Nassim Ammour King Saud University
Example 2 (contd.) CEN352 Dr. Nassim Ammour King Saud University

11 CEN352 Dr. Nassim Ammour King Saud University
Classification of Discrete-Time Signals 𝐸= 𝑛=βˆ’βˆž ∞ π‘₯ 𝑛 2 Energy signals: The energy E of a signal π‘₯ 𝑛 Periodic signals and aperiodic signals: A signal π‘₯ 𝑛 is periodic with period N (N>0) if π‘₯ 𝑛+𝑁 =π‘₯ 𝑛 π‘“π‘œπ‘Ÿ π‘Žπ‘™π‘™ 𝑛 Symmetric (even) and anti-symmetric (odd) signals Anti-symmetric π‘₯ βˆ’π‘› =βˆ’π‘₯ 𝑛 symmetric π‘₯ βˆ’π‘› =π‘₯ 𝑛 CEN352 Dr. Nassim Ammour King Saud University

12 CEN352 Dr. Nassim Ammour King Saud University
Digital Systems A digital system is a device or an algorithm that performs prescribed operations (or transformation) on a digital signal π‘₯ 𝑛 and produces an output signal 𝑦 𝑛 . Digital System Input signal (Excitation) Output signal (Response) π‘₯ 𝑛 𝑦 𝑛 Example 3 π‘₯ 𝑛 = 𝑛 , βˆ’3≀𝑛≀3 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ Determine the response of the following system to the input signal π‘Žπ‘›π‘‘ π‘‘β„Žπ‘’ 𝑠𝑦𝑠𝑑𝑒 π‘š β€² 𝑠 π‘œπ‘’π‘‘π‘π‘’π‘‘ 𝑦 𝑛 = π‘₯ 𝑛+1 +π‘₯ 𝑛 +π‘₯(π‘›βˆ’1 Solution: The output of this system is the mean value of the present, immediate past, and the immediate future samples. For 𝑛= 𝑦 0 = 1 3 π‘₯ βˆ’1 +π‘₯ 0 +π‘₯(1) = = 2 3 𝑦 𝑛 = …, 0,1, 5 3 , 2, 1, 2 3 , 1, 2, 5 3 , 1, 0, … Repeating this computation for every value of 𝑛 CEN352 Dr. Nassim Ammour King Saud University

13 CEN352 Dr. Nassim Ammour King Saud University
Block Diagram of Discrete-Time Systems Constant multiplier Unit delay element Adder Unit advance element Signal multiplier Example 4 Solution: Sketch the block diagram representation of the discrete-time system described by the input-output relation. 𝑦 𝑛 = 1 4 𝑦 π‘›βˆ’ π‘₯ 𝑛 π‘₯(π‘›βˆ’1) CEN352 Dr. Nassim Ammour King Saud University

14 Classification of Discrete-Time Systems
Static and dynamic systems 𝑦 𝑛 =π‘₯ 𝑛 +3π‘₯(π‘›βˆ’1 𝑦 𝑛 =𝑛 π‘₯ 𝑛 +𝑏 π‘₯ 3 (𝑛 Dynamic (have memory) past or future samples of the input Static or memory-less no past or future samples of the input Time-invariant System (Time Shift Invariance) The system input-output characteristics do not change with time (a shifted input signal will produce a shifted output signal, with the same of shifting amount). CEN352 Dr. Nassim Ammour King Saud University

15 CEN352 Dr. Nassim Ammour King Saud University
Linear System A digital system is linear if and only if it satisfy the superposition principle: 𝑆 π‘Ž 1 π‘₯ 1 𝑛 + π‘Ž 2 π‘₯ 2 𝑛 = π‘Ž 1 𝑆 π‘₯ 1 𝑛 + π‘Ž 2 𝑆 π‘₯ 2 𝑛 Homogeneity (deals with amplitude) Additivity Homogeneity & Additivity CEN352 Dr. Nassim Ammour King Saud University

16 CEN352 Dr. Nassim Ammour King Saud University
Example 5 (a) CEN352 Dr. Nassim Ammour King Saud University

17 CEN352 Dr. Nassim Ammour King Saud University
Example 5 (b) System πΏπ‘–π‘›π‘’π‘Žπ‘Ÿ ??? 4 𝑦 1 𝑛 +2 𝑦 2 𝑛 𝑦(𝑛)β‰ 4 𝑦 1 𝑛 +2 𝑦 2 𝑛 CEN352 Dr. Nassim Ammour King Saud University

18 CEN352 Dr. Nassim Ammour King Saud University
Example 6 (a) Given the linear system y 𝑛 =2π‘₯(π‘›βˆ’5), find whether the system is time invariant or not. Solution: Let the shifted input be: π‘₯ 2 𝑛 = π‘₯ 1 (π‘›βˆ’ 𝑛 0 ), Therefore system output: 𝑦 2 𝑛 =2 π‘₯ 2 π‘›βˆ’5 =2 π‘₯ 1 π‘›βˆ’ 𝑛 0 βˆ’5 , Shifting 𝑦 1 𝑛 =2 π‘₯ 1 π‘›βˆ’5 by 𝑛 0 samples leads to 𝑦 1 π‘›βˆ’ 𝑛 0 =2 π‘₯ 1 π‘›βˆ’5βˆ’ 𝑛 0 CEN352 Dr. Nassim Ammour King Saud University

19 CEN352 Dr. Nassim Ammour King Saud University
Example 6 (b) Given the linear system y 𝑛 =𝑛 π‘₯(𝑛), find whether the system is time invariant or not. 𝑦 1 𝑛 =𝑛 π‘₯ 1 (𝑛) Solution: Let the shifted input be: π‘₯ 2 𝑛 = π‘₯ 1 (π‘›βˆ’ 𝑛 0 ) Therefore system output due to the shifted input 𝑦 2 𝑛 =𝑛 π‘₯ 2 𝑛 =𝑛 π‘₯ 1 π‘›βˆ’ 𝑛 0 Shifting 𝑦 1 𝑛 =𝑛 π‘₯ 1 𝑛 by 𝑛 0 samples (replace 𝑛 by π‘›βˆ’π‘› 0 ) leads to 𝑦 1 π‘›βˆ’ 𝑛 0 =(π‘›βˆ’ 𝑛 0 ) π‘₯ 1 π‘›βˆ’ 𝑛 0 CEN352 Dr. Nassim Ammour King Saud University

20 CEN352 Dr. Nassim Ammour King Saud University
Causality Causal System: Output y(n) at time n depends only on current input π‘₯ 𝑛 , at time n or previous inputs, such as π‘₯ 𝑛 , π‘₯ π‘›βˆ’1 , π‘₯ π‘›βˆ’2 , etc. Example: Non Causal System: Output y(n) at time n depends on future inputs, such as π‘₯ 𝑛+1 , π‘₯ 𝑛+2 , etc. Example: The non causal system cannot be realized in real time. CEN352 Dr. Nassim Ammour King Saud University

21 CEN352 Dr. Nassim Ammour King Saud University
Difference Equation A causal, linear, time-invariant system (LTI) can be described by a difference equation as follow: Outputs Inputs After rearranging: Finally: CEN352 Dr. Nassim Ammour King Saud University

22 CEN352 Dr. Nassim Ammour King Saud University
Example 7 Identify non zero system coefficients of the following difference equations. Solution: CEN352 Dr. Nassim Ammour King Saud University

23 CEN352 Dr. Nassim Ammour King Saud University
System Representation Using Impulse Response A linear time-invariant system (LTI system) can be completely described by its unit-impulse response β„Ž(𝑛) due to the impulse input 𝛿(𝑛) with zero initial conditions. Impulse input with zero initial conditions Impulse Response 𝑦 𝑛 =β„Ž 𝑛 βŠ—π‘₯ 𝑛 Any input Convolution CEN352 Dr. Nassim Ammour King Saud University

24 CEN352 Dr. Nassim Ammour King Saud University
Example 8 (a) Given the linear time-invariant system: Solution: a. let π‘₯ 𝑛 =𝛿(𝑛), then Therefore, c. The system output b. The block diagram of the LTI system CEN352 Dr. Nassim Ammour King Saud University

25 CEN352 Dr. Nassim Ammour King Saud University
Example 8 (b) Solution: a. Let π‘₯ 𝑛 =𝛿(𝑛), then With the calculated results, we can predict the impulse response as CEN352 Dr. Nassim Ammour King Saud University

26 CEN352 Dr. Nassim Ammour King Saud University
Example 8 (b) – contd. b. The system block diagram c. The output sequence Finite Impulse Response (FIR) system: When the difference equation contains no previous outputs, i.e. β€˜a’ coefficients are zero ( See example 8 (a) ) Infinite Impulse Response (IIR) system: When the difference equation contains previous outputs, i.e. β€˜a’ coefficients are not all zero. ( See example 8 (b) ) CEN352 Dr. Nassim Ammour King Saud University

27 CEN352 Dr. Nassim Ammour King Saud University
BIBO Stability BIBO: Bounded In and Bounded Out A stable system is one for which every bounded input produces a bounded output. We have: Let, in the worst case, every input value reaches to maximum value M. Using absolute values of the impulse responses, If the impulse responses are finite number, then output is also finite. CEN352 Dr. Nassim Ammour King Saud University Stable system.

28 CEN352 Dr. Nassim Ammour King Saud University
BIBO Stability –contd. To determine whether a system is stable, we apply the following equation: Impulse response is decreasing to zero. CEN352 Dr. Nassim Ammour King Saud University

29 The summation is finite, so the system is stable.
Example 9 Given a linear system given by: Which is described by the unit-impulse response: Determine whether the system is stable or not. Solution: Using definition of step function: For a< 1, we know The summation is finite, so the system is stable. Therefore CEN352 Dr. Nassim Ammour King Saud University

30 CEN352 Dr. Nassim Ammour King Saud University
Digital Convolution A LTI system can be represented using a digital convolution sum. The unit-impulse response β„Ž(𝑛) relates the system input and output. Commutative The sequences are interchangeable. Convolution sum requires β„Ž(𝑛) to be reversed and shifted. If β„Ž(𝑛) is the given sequence, β„Ž(βˆ’π‘›) is the reversed sequence. CEN352 Dr. Nassim Ammour King Saud University

31 CEN352 Dr. Nassim Ammour King Saud University
Reversed Sequence Given a sequence Sketch the sequence β„Ž(π‘˜) and reversed sequence β„Ž(βˆ’π‘˜). Solution: CEN352 Dr. Nassim Ammour King Saud University

32 Convolution Using Table Method
Example 9 Solution: Length =3 Length =3 CEN352 Dr. Nassim Ammour King Saud University Convolution length = 3 +3 –1 = 5

33 Convolution Using Table Method
Example 10 Solution: Convolution length = –1 = 4 CEN352 Dr. Nassim Ammour King Saud University

34 CEN352 Dr. Nassim Ammour King Saud University
Convolution Properties CEN352 Dr. Nassim Ammour King Saud University


Download ppt "CEN352 Dr. Nassim Ammour King Saud University"

Similar presentations


Ads by Google