29
MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Embed Size (px)

Citation preview

Page 1: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

MICROPROCESSORS

Dr. Hugh Blanton

ENTC 4337/ENTC 5337

Page 2: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 2 / 30

Z Transform, Sampling and Definition Z Transform, Sampling and Definition

• Most real signals are analog and in order to utilize the processing power of modern digital processors it is necessary to convert these analog signals into some form which can be stored and processed by digital devices.

Page 3: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 3 / 30

Z Transform, Sampling and Definition Z Transform, Sampling and Definition

• The standard method is to sample the signal periodically and digitize it with an A to D converter using a standard number of bits 8, 16 etc. • Digital signal processing is primarily

concerned with the processing of these sampled signals.

Page 4: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 4 / 30

Z Transform, Sampling and Definition Z Transform, Sampling and Definition

• The diagram below illustrates the situation. • The blue line shows the analog signal while the

red lines shows the samples arising from periodic sampling at intervals T.

Page 5: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 5 / 30

• A mathematical representation of the sampled signal is shown below.

Page 6: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 6 / 30

• This is equivalent to modulating a train of delta functions by the analog signal. • The delta function effectively "filters" out

the values of the signal at times corresponding to the zeros in the argument of the delta function.

Page 7: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 7 / 30

• This process is also referred to as "ideal" sampling since it results in sampled signals of • "zero" width, • "infinite" height, • magnitude x*(t) and • whose spectrum is perfectly periodic.

Page 8: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 8 / 30

• The previous equation is equivalent to the following since the delta function has the effect of making x(t) nonzero only at times t = kT.

Page 9: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 9 / 30

• Taking the Laplace transform of the sampled signal using the integral definition and the properties of the delta function results in the following

Page 10: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 10 / 30

• The Laplace transform has the Laplace variable s occurring in the exponent and can be awkward to handle.

Page 11: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 11 / 30

• A much simpler expression results if the following substitutions are made

Page 12: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 12 / 30

• The definition of the Z Transform is

Page 13: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 13 / 30

• If the sampling time T is fixed then the Z Transform can also be written

Page 14: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 14 / 30

• If the sampling time T is fixed then the Z Transform can also be written

Page 15: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 15 / 30

• The final result is a polynomial in Z. • The Z Transform plays a similar role in

the processing of sampled signals as the Laplace transform does in the processing of continuous signals.

Page 16: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 16 / 30

Z Transform, Step and Related Functions Z Transform, Step and Related Functions

• The definition of the Z transform is shown below.

Page 17: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 17 / 30

• The step function is defined as:

• and is shown graphically below.

• A continuous step function shown above is plotted in blue and the sampled step in red.

Page 18: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 18 / 30

• When a step function is sampled, each sample has a constant value of 1. • The Z Transform can be written as a

sum of terms as indicated below.

• The expression for X(z) is a geometric series which converges if |z| > 1 to:-

Page 19: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 19 / 30

• A Step function delayed by 1 sampling interval.

• The Z transform is:

Page 20: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 20 / 30

• This can be summed to give the Z transform of the delayed step.

• The Z transform of x(k-1) can be written as z-1X(z) where X(z) is the Z transform of x(k).

Page 21: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 21 / 30

• For a kT interval delay of the step function the Z transform is multiplied by z-k

Page 22: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 22 / 30

• The equation for a ramp and its samples are shown below:

Page 23: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 23 / 30

• The Z transform of the ramp is given by:

Page 24: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 24 / 30

• Multiplying by z-1 gives:

• Subtracting the last 2 equations give:

Page 25: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 25 / 30

• Rearranging the expression for the Z transform gives the final expression for the Z transform of the ramp as:

Page 26: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 26 / 30

Z Transform Table Z Transform Table

Page 27: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 27 / 30

Z Transform Table Z Transform Table

Page 28: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 28 / 30

Z Transform Table Z Transform Table

Page 29: MICROPROCESSORS Dr. Hugh Blanton ENTC 4337/ENTC 5337

Dr. Blanton - ENTC 4307 - Introduction 29 / 30

Z Transform Table Z Transform Table