EC312 Lesson 14: Signals, Fourier and Filters Objectives: (a) Understand the difference between the time domain and frequency domain representation for many different signals. (b) Recognize that all periodic signals can be described as a sum of sinusoidal frequencies (Fourier) (not responsible for equations) and be able to visualize the effects harmonics have in the time domain and frequency domain. (c) Know the basic filter types and their characteristic frequency plots: bandpass, band-reject, low pass and high pass filters. (d) Be able to analyze the RLC series circuit as a tuned circuit and describe its equations for resonance, cutoff frequencies, BW and Q, and be able to analyze the AC circuit for impedance and voltage divider output. We have already introduced the frequency domain in the first and second lessons of the wireless section and we have seen the frequency vs time relationship. We understand that when we want to communicate wirelessly, we will need to modulate our baseband or information signal and that it is important to know the frequencies that are transmitted and the bandwidth. We have introduced the idea of filtering in the last lesson to describe how to tune in a band of frequencies of interest when receiving that signal. We will now be concentrating on ideas to help us solve the frequency content of different signals in the time domain, and then we will delve into circuits which will be able to filter that signal in terms of allowing certain frequencies of the signal to pass and attenuate other frequencies. We will analyze the RLC series Bandpass circuit specifically, but you should understand that all of the types of filters could be analyzed using your EE331 skills, and that you are responsible for knowing the effects the four types of filters have on frequency. So let’s review a bit and look at some of those original signals and then introduce more complicated ones. v t 0.1sin 2 440 t This is a 440 Hz sinusoid: in the “time domain” which is what we are accustomed to, the signal looks like this: 0.15 0.1 Voltage (V) 0.05 0 -0.05 -0.1 -0.15 0 0.005 0.01 0.015 Time (sec) 0.02 0.025 time(sec) We can also plot this signal in the “frequency domain”. The x-axis is frequency, and the y-axis is the strength or the magnitude of the signal at the particular frequency (it could be units of volts or decibels ). 0.35 0.3 Voltage (V) 0.25 f = 440 Hz 0.2 0.15 0.1 0.05 0 0 500 1000 1500 2000 2500 Frequency (Hz) 3000 3500 4000 frequency (Hz) 1 Now, consider the more complex signal shown below on the left. In the frequency domain, it looks like the figure on the right. 1 0.25 0.2 Voltage (V) 0 0.15 0.1 -0.5 0.05 -1 1 1.005 1.01 1.015 1.02 0 1.025 0 500 1000 Time (sec) time (sec) These signals were both periodic, what about non-periodic signals? 1500 0.3 0.2 0.1 0 -0.1 -0.2 -0.3 0 0.5 1 1.5 2 2.5 T ime (sec) 2 2000 2500 Frequency (Hz) frequency (Hz) Most signals used in communications systems are complex and non-periodic. Consider the sample speech file. Voltage (V) Voltage (V) 0.5 3 3000 3500 4000 The frequency content of the non-periodic portion of the signal displays a continuous band off frequencies. 3 To transmit these baseband signals, we have learned that we need to modulate them. The technique we have investigated is Amplitude Modulation, and we have seen the effects in time and frequency that this process represents. So let’s review it, to remind ourselves of the time-domain equations and to recall the frequency domain representation in terms of sidebands and bandwidth. 4 Sidebands and the Frequency Domain The AM wave is the algebraic sum of the carrier and upper and lower sideband sine waves. (a)Intelligence or modulating signal. (b) Lower sideband. (c ) Carrier. (d ) Upper sideband. (e ) Composite AM wave. Sidebands and the Frequency Domain 5 The frequency spectrum of an amplitude modulated signal with the baseband signal consisting of a single frequency, fm, shows the Bandwidth is twice the fm. The frequency spectrum of an Amplitude Modulated signal with the baseband signal composed of many frequencies, shows that the Bandwidth is twice the highest frequency component. 6 For the non- periodic signals, the Bandwidth is also twice the highest frequency component. So how do we know what frequencies are present in a signal? Any periodic function f(t) with period T can be represented by weighted sines and cosines. Specifically, any periodic function with period T can be represented in the frequency domain with specific amplitudes occurring only at specific frequencies. What are the specific frequencies? 1 f0 T and all the integer multiples of the fundamental frequency. These Answer: The fundamental frequency multiples of the fundamental frequency are called the harmonics. So, a periodic signal with period 0.01 seconds will have amplitudes only at the frequencies of 100 Hz, 200 Hz, 300 Hz, etc. Some of these amplitudes might be zero. In this case, 100 Hz is the fundamental frequency, 200 Hz is the second harmonic, 300 Hz is the third harmonic, etc. So, when a periodic signal is represented in the frequency domain, it can only have amplitudes at the fundamental and harmonic frequencies. What are the specific amplitudes? Answer: There is a mathematical technique called Fourier analysis. We will skip the details and just use the results. 7 The Square Wave The Fourier series for a square wave is given by: 4V 1 1 1 3 5 f t sin 2 t sin 2 t sin 2 t ... 3 5 T T T Note the following: The series consists only of odd harmonics. The amplitude of the nth harmonic is (4V/π)*1/n. The more harmonics that are added, the closer the approximation comes to the perfect square wave. Frequency domain representation: Below are time-domain plots of Fourier series approximations using various numbers of harmonics. 8 Square wave using 20 odd harmonics: Demo links: http://www.falstad.com/fourier/ http://ptolemy.eecs.berkeley.edu/eecs20/week8/examples.html You can also experiment with this using your MATLAB skills. The following link provides some code to generate a portion of the Fourier series to approximate a square wave: http://www.mathworks.com/products/matlab/examples.html?file=/products/demos/shipping/matlab/xfourier.ht ml Fourier Series and Filters Recall that filter circuits are designed to pass some frequencies and block others. Consider the application of a square wave to a low-pass filter as shown below. 9 Bandwidth of a Signal Although many Fourier series representations contain an infinite number of harmonics, often only a few significant harmonics are required to obtain a satisfactory representation. Bandwidth is a quantity of fundamental importance in communications systems. Bandwidth is one of the two principle limiting factors in the performance of communication systems (the other limiting factor is noise) The “information capacity” that a signal can carry is directly proportional to its bandwidth. Back to the radio! Consider tuning an FM radio station. Remember what allows your radio to isolate one station from all of the adjacent stations? Do you remember the bandpass filter? Why do we need to restrict the bandwidth of channel? Think about the other stations. So now that we can find the frequency content of our signal and we know the bandwidth we want, we need to design the filter circuit that does the job of tuning our station in. The specific tuned circuit, which we will be investigating, is the passive RLC series circuit. The book describes another passive tuned filter, the parallel RLC circuit, and it describes active tuned circuits, which provide 10 amplification as well as filtering, and it also describes passive low pass and high pass filter circuits. We will use your background from EE331 to analyze just the series filter circuit and this will help us understand the concepts behind all of the circuits, but this is the only analysis you are responsible for. The Series RLC Circuit Suppose an AC circuit contains an inductor of value L. XL What is the value of X L ? What is the value of Z L ? As frequency, f, increases, what happens to X L ? Sketch a picture of XL versus f. f Suppose an AC circuit contains a capacitor of value C. XC What is the value of X C ? What is the value of ZC ? As frequency increases, what happens to Sketch a picture of XC XC ? versus f. f Consider an AC voltage source connected to an inductor, a capacitor, and a resistor all in series. A series RLC circuit is made up of inductance, capacitance, and resistance as shown below. What is the impedance of the circuit as seen by the source? Z R jX L jX C j C 1 R j L 11 C R j L The magnitude of the impedance is: Z Z R X L XC 2 2 1 R L C 2 2 When is the magnitude of Z minimized? Impedance (Z) is minimized when the inductive and capacitive reactances are equal (XL = XC). 1 1 2 fL 0 C 2 fC X L X C L At what frequency f is this true? fr 1 2 LC Resonance The impedance (Z) is minimized when the inductive and capacitive reactances are equal (XL = XC). The frequency where this occurs is called the resonant frequency (f r) and is given by: fr 1 2 LC 12 Resonance is a balanced condition between inductive and capacitive reactance. At resonance, the series RLC impedance is purely resistive. All communications equipment contains tuned circuits like this one: circuits made of capacitors and inductors that resonate at specific frequencies. So what? Why do we care? Let us consider the magnitude of the current I as a function of frequency. VS V Z Z II V 1 R L C 2 2 Below is a plot of the current amplitude versus frequency. So, a tuned circuit (like this) is frequency selective; that is, it has a strong response at the resonant frequency, and a range of frequencies around the resonant frequency (the bandwidth). Half-power Frequencies The average power dissipated by this circuit is: P = I 2 R = V 2/ R which peaks at f = fr . The frequencies f1 and f2 shown above are defined as the half-power or cutoff frequencies. The upper and lower cutoff frequencies f1 and f2 are often called the 3 dB frequencies because at these points the circuit’s power dissipation is down by a factor of one-half from its peak. It can be shown that the resonant frequency is the geometric mean of the cutoff frequencies: fr f1 f 2 13 The bandwidth (BW) of the tuned circuit is defined as the difference between the upper and lower cutoff frequencies. BW f 2 f1 Bandwidth (BW) Quality Factor The “sharpness” of the of the frequency response of a resonant circuit is measured by the quality factor, Q. The quality factor can be defined as the ratio of the resonant frequency to the bandwidth: Q fr BW 14 It can be shown for a series RLC circuit that: Q= fr X 2 f r L L BW R R For a high-Q circuit (Q 10), the upper and lower half-power frequencies (f1, f2) are approximately symmetric about fr so: f1 f r BW , 2 f2 fr 15 BW , 2 Example Problem 1 Calculate the impedance (Z) of the circuit below at f = 2 MHZ with the indicated component values L = 1 H C = 0.01 F Example Problem 2 Suppose you have a series RLC circuit with a 10 pF capacitor that you want to resonate at 40 MHz. What value of inductance should you use? Example Problem 3 (a) What is the resonant frequency fr of the series RLC circuit below? (b) At this frequency, what is the impedance of the circuit? (c) At the resonant frequency, what is the phase difference between the voltage across the circuit and the current through it? Example Problem 4 What is the bandwidth of a resonant circuit with a frequency of 20 MHz and a Q of 50? 16