Docsity

Signals and Systems Homework 8: Fourier Transform and PWM Signals - Prof. Robert D. Throne, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 300
Signals and Systems
Homework 8
Due Date: Thursday May 7 at the beginning of class
Problems
1) Show that if ()
x
t is real and even, then )(X
ω
is real and even, and if ()
x
t is
real and odd, then )(X
ω
is imaginary and odd.
2) By evaluating the Fourier transform integral directly, and using Euler’s identiy,
show that the Fourier transform of () cos() ( ) ( )
22
xt t ut ut
π
π
⎡
⎤
=+−−
⎢
⎥
⎣
⎦ is
2
2cos 2
() 1
X
π
ω
ωω
⎛⎞
⎜⎟
⎝⎠
=−
3) By evaluating the integral by hand, show that the Fourier transform of
() ()
t
x
teut
−
= is given by
1
2
11 18
() tan()
11
Xj
ωω
0
ω
π
ω
−
⎤
== −
⎥
+
⎦
+(degrees
4) By evaluating the integral by hand, show that the Fourier transform of
||
() t
x
te
−
= is
2
2
() 1
X
ω
ω
=+
5) Most microcontrollers are capable of generating pulse width modulation
(PWM) signals on one or more output pins. These signals are square waves
where both the period and the duty cycle can be programmed in the
microcontroller by the use of timers and different reference clocks. These PWM
output signals can then be used in conjunction with lowpass filters to produce
reasonable approximations to analog output signals. In this problem we will use
what we have learned in the course to investigate how to do this. The signal
below is a PWM signal, shown for about one and a half periods. The signal has
period , amplitude V (usually fixed at 5 or 3.3 volts), pulse duration
()vt
0
T
τ
, and
duty cycle
0
DT
τ
=.
Spring 2009
pf3
pf4
pf5

Partial preview of the text

Download Signals and Systems Homework 8: Fourier Transform and PWM Signals - Prof. Robert D. Throne and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 300

Signals and Systems Homework 8

Due Date: Thursday May 7 at the beginning of class

Problems

1) Show that if x ( ) t is real and even, then X ( ω )is real and even, and if x ( ) t is

real and odd, then X ( ω )is imaginary and odd.

2) By evaluating the Fourier transform integral directly, and using Euler’s identiy,

show that the Fourier transform of ( ) cos( ) ( ) ( ) 2 2

x t t u t u t

⎡ π^ π ⎤

is

2

2 cos 2 ( ) 1

X

= ⎝^ ⎠

3) By evaluating the integral by hand, show that the Fourier transform of

x ( ) t = e u t − t ( ) is given by

1 2

( ) tan ( ) (^1 )

X

j

= = − −^ ⎡^ ⎤

+ ⎢⎣^ ⎥⎦

( degrees

4) By evaluating the integral by hand, show that the Fourier transform of

x ( ) t = e −^ | | t is

2

X ω

5) Most microcontrollers are capable of generating pulse width modulation (PWM) signals on one or more output pins. These signals are square waves where both the period and the duty cycle can be programmed in the microcontroller by the use of timers and different reference clocks. These PWM output signals can then be used in conjunction with lowpass filters to produce reasonable approximations to analog output signals. In this problem we will use what we have learned in the course to investigate how to do this. The signal

below is a PWM signal, shown for about one and a half periods. The signal has

period , amplitude V^ (usually fixed at 5 or 3.3 volts), pulse duration

v t ( )

T 0 τ , and

duty cycle 0

D

T

τ =.

T he Fourier series representation is 0 0 0

( ) o sinc

k jk T j k

V k v t e e T T

πτ

=∞ − τ τ k ω t

=−∞

a) For the periodic signal v t , determine an expression for the average power in

the periodic signal in terms of T^ ,

0 τ^ , and^ V^. Your answer must contain no sums

or integrals.

b) Determine an expression for the average value of v t ( ) in terms of T 0 , τ , and

V.

c) It is the average value of that we want to use as our analog output.

Hence we need to design a lowpass filter that allows us to keep our DC term, and, ideally, remove all of the other harmonics. Let’s assume we want to use a simple first order RC lowpass filter with transfer function

v t ( )

0

H j j RC j

ω ω α ω ω

where we have set 0

RC

α ω

= for convenience. Determine the value of α so that

the average power in the first harmonic of the output signal is 20 dB lower than the average power in the DC component the output signal. Assume here that the

fundamental frequency is f 0 (^) = 100 Hz , the duty cycle is 0

T

τ = , and V =5.0volts.

d) For your value of α determined in part c and the parameter values given in

part c , determine an expression for the first two terms (the DC and first harmonic) in the Fourier series representation of the output signal.

(Answer: y t ( ) ≈ 4 +0.566 cos (2 π 100 t − 3 .77) )

v t ( )

V

τ T 0 t

-8 -6 -4 -2 0 2 4 6 8

0

k (^) ω 0

T|c

|k

Fourier Series Fourier Transform

-8 -6 -4 -2 0 2 4 6 8

0

50

k (^) ω 0

Phase (deg)

Fourier Series Fourier Transform

Figure 1: Example plots for part d.

g) Change the duration of the periodic signal to [-8,8] (so the period is T =

  1. and [-16,16] (so the period is T = 32) and rerun your code. Try and run a duration of [-32,32] (so the period T = 64), though this may not work well. Turn in your plots. Keep the number of points at N = 100. Do not change x ( ) t. Here we are increasing the period of the function x ( ) t to demonstrate that the Fourier transform is just a Fourier series in the limit

as T → ∞ , 0

k k T

⎜ ⎟=^ →

, and Tck → X ( ω)

h) Redo the above for x ( ) t = e −| | t. Turn in 3 plots for this part (4 plots if you

can get T=64 to go…).

7) (Matlab Problem) In this problem we’ll look at a real world situation when we have to truncate a signal. This actually happens more with digital signal processing, but we can get the basic idea using our continuous time abilities.

a) Find an expression for the Fourier transform of f ( ) t = cos(4 ) t + cos(5 ) t.

b) Now assume we look at f ( ) t

/ T )

for a finite time, say T seconds. What we see is actually. Determine an expression for the Fourier transform of , and write your answers in terms of sinc functions.

y t ( ) = f t rect t ( ) ( y t ( )

c) Plot, using Matlab , Y ( ω )for ω between 0 and 10 when T =1, T =6, T =10, T

20, and T = 0. Can you clearly tell there are two cosines present when yo are looking at Y ( )

= 4 u

ω for all values of T? What happens as T ge s larger (you

are looking at more and more data)? Think in terms of the width of the sinc function (the distance between the first nulls). Note: The sinc function exists in Matlab.

t