analog comm lab manual

106
Analog Communications Lab ______________________________________________________ GRIET/ECE 1 of 86

Upload: padmavathi386

Post on 21-Jan-2015

6.481 views

Category:

Documents


5 download

DESCRIPTION

Analog communications lab manual

TRANSCRIPT

Page 1: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 1 of 86

Page 2: Analog comm lab manual

Analog Communications Lab______________________________________________________

Contents1.Amplitude Modulation and Demodulation..............................................................................2

2.Frequency Modulation and Demodulation..............................................................................8

3.Balanced Modulator................................................................................................................15

4.Pre-emphasis and De-emphasis..............................................................................................19

5.Characteristics of mixer..........................................................................................................24

6.Phase detection and Measurement using PLL......................................................................28

7.Synchronous Detector..............................................................................................................32

8.SSB System...............................................................................................................................33

MATLAB PROGRAMS.............................................................................................................36

1.Amplitude Modulation............................................................................................................37

2.Demodulation of AM wave using Hilbert transform............................................................40

3.Demodulation using Diode detector.......................................................................................42

4.DSBSC Modulation..................................................................................................................44

5.DSBSC Demodulation.............................................................................................................44

6.Generation DSBSC using Balanced Modulator....................................................................46

7.SSBSC Modulation..................................................................................................................48

8.Demodulation of SSBSC..........................................................................................................49

9.Frequency Spectrum of Amplitude Modulated Wave..........................................................51

10.Frequency Spectrum of Amplitude Modulated Wave........................................................52

11.Frequency Spectrum of SSBSC............................................................................................53

12.Performing Pre-emphasis and De-emphasis.....................................................................54

13.Frequency Modulation..........................................................................................................55

14.Demodulation of FM wave....................................................................................................56

15.Frequency Spectrum of FM.................................................................................................58

16.Construction of SQUELCH circuit......................................................................................60

GRIET/ECE 2 of 86

Page 3: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 3 of 86

Page 4: Analog comm lab manual

Analog Communications Lab______________________________________________________

1. Amplitude Modulation and Demodulation

Aim: To study amplitude modulation and demodulation and to calculate modulation index by changing the modulating signal’s amplitude.

Equipment required:Analog Communication Kit, CRO, Connecting wires.

Components required:1. Transistors: BC107 (2 nos.)2. Diodes: A79 (1 no.)3. Resistors: 8 K-1 No, 10K-(2nos), 100 K-(4nos)4. Capacitors:0.1µF-(2nos),-0.0015µ-(1no), 1KpF-(2nos),22µF-(1no),0.01 µF-(1no)5. Inductors -2.5mH-(1no)

Theory:In Amplitude modulation of a carrier signal is varied by the modulating voltage whose

frequency is invariably, lower than that of the carrier frequency. In practice, the carrier frequency may be high frequency (HF), while the modulating frequency is audio frequency. Formally AM is defined as a system of modulation in which the amplitude of the carrier signal is made proportional to the instantaneous amplitude of the modulating voltage.Let the carrier voltage and the modulating voltage, Vc and Vm respectively be represented by

Vc = VcSinωctVm= VmSinωmtNote that phase angle has been ignored in both expressions since it is unchanged by the

amplitude modulation process. Its conclusion here would merely complicate the preceding without affecting the result. However, it will certainly not be possible to ignore phase angle when we deal with frequency and phase modulation.

From the definition of AM, it follows that the (max amplitude Vc of the unmodulated carrier will have to be made proportional to the instantaneous modulating voltage VmSinωmt when the carrier is amplitude modulated.Frequency spectrum of the AM wave:

We shall show mathematically that the frequencies present in the AM wave are the carrier frequency and the first pair of side band frequencies, where a sideband frequency is defined as

fSB = fc ±n fm and in first pair n=1When a carrier signal is amplitude modulated, the proportionality constant is made to unity, and the instantaneous modulating voltage variations are superimposed onto carrier amplitude. Thus, when there is temporarily no modulation, the amplitude of the carrier is equal to its unmodulated value. When modulation is present, the amplitude of the carrier is varied by its instantaneous value. This situation is illustrated in fig 1, which shows how the max amplitude of the amplitude- modulated voltage is made to vary in accordance with modulating voltage changes.Fig1 also shows that something unusual (distortion, as it happens) will occur if Vm is

GRIET/ECE 4 of 86

Page 5: Analog comm lab manual

Analog Communications Lab______________________________________________________

greater than Vc.This and the fact that the ratio Vm/Vc often occurs, leads to the following definition of modulation index.

m=Vm/Vc → Eq. 1

GRIET/ECE 5 of 86

Page 6: Analog comm lab manual

Analog Communications Lab______________________________________________________

The modulation index is a number lying between 0 and 1 it is very often expressed as a percentage and called the percentage modulation.It is possible to write an equation for the amplitude of the amplitude-modulated voltages, thus we have

A = Vc+Vm = Vc+VmSinωmt+Vc+ VcSinωctA=Vo(1+m Sinωmt)

The instantaneous value of the resulting amplitude modulated wave is V =A Sinωct = Vc(1+m Sinωmt) Sinωct →Eq. 2

Eq 2 may be expanded by means of the trignometrical relation Sin x Sin y = ½ Cos(x-y) – Cos(x+y) to give V = VcSinωct + mVc/2Cos (ωct-ωmt) - mVc/2Cos (ωct-ωmt) → Eq. 3It has been shown that the eq of an amplitude modulated wave contains three terms. The

first term is identical to eq1 and represents the unmodulated carrier. It is thus apparent that the process of amplitude modulation has the effect of loading to the unmodulated wave , rather than changing it .The two additional terms produced are the two side bands out end . The frequency of the lower side band (LSB) is fc-fm and the frequency of the upper side band (USB) is fc+fm . The very important conclusion to be made at this stage is that the band width required for amplitude modulation is twice the frequency of the modulating signal. In modulation by several sine waves simultaneously, as in the AM broadcasting service, the band width required is twice the highest modulated frequency.

Representation of AMAmplitude modulation may be represented in any of three waves depending on the point of view . Fig 2 shows the frequency spectrum and so illustrates equation 3 . AM is shown simply as consisting three discrete frequencies , of these the central frequency , i.e. the carrier has the highest amplitude , and other two are disposed symmetrically about it , having amplitude which are equal to each other , but which can never exceed half the carrier amplitude.The appearance of the amplitude modulated wave is of great interest, and it is shown in fig2 for one cycle of the modulating sine wave. It is derived from fig1 , which showed an amplitude , or what may now be called the top envelope , is given by the relation A = (Vc + VmSinωmt ) .Similarly , the maximum negative amplitude , or bottom envelope , is given by - A = - (Vc + VmSinωmt ). The modulated wave extends between these two limiting envelopes and has a repretion rate equal to the unmodulated carrier frequency.It will be recalled that Vm= mVc and it is now possible to use this relation to calculate the index (or depth ) of modulation from the wave form of fig 2 as follows.

Vm = (Vmax – Vmin)/2Vc = Vmax – Vm = Vmax – ( (Vmax – Vmin)/2 ) = (Vmax – Vmin) / 2 M = Vm / Vc = ( (Vmax – Vmin) / 2) / ( (Vmax – Vmin) / 2) M=(Vmax – Vmin) / (Vmax + Vmin)

GRIET/ECE 6 of 86

Page 7: Analog comm lab manual

Analog Communications Lab______________________________________________________

Circuit Diagram :

Procedure:1) Connect the circuit as shown in the circuit diagram.2) Apply the 100 KHz carrier signal and amplitude of 6V(p-p) to the input of AM modulator at 100 KΩ pot and 1 KHz of modulating signal to the AM modulator at 100 KΩ pot as shown in the circuit diagram.3) Apply the power supply of 12V as shown in the circuit diagram.4) Observe the amplitude modulated wave synchronization with the modulating signal on a dual trace CRO following figure shown the connections.

GRIET/ECE 7 of 86

AM Modulator

AM Demodulator

Page 8: Analog comm lab manual

Analog Communications Lab______________________________________________________

5) Adjust the 10 KΩ linear pot for carrier suppression and 100KΩ linear pot for proper modulation.i.e. 100%.6) Now by varying the amplitude of the modulating signal , the depth of modulation varies.Calculate the maxima and minima points of modulated wave on the CRO and calculate the depth of modulation using formula.

GRIET/ECE 8 of 86

Page 9: Analog comm lab manual

Analog Communications Lab______________________________________________________

Waveforms:

Result:Amplitude modulated signal is generated and original signal is demodulated from AM

signal Depth of modulation is calculated for various amplitude levels of modulating signals.

GRIET/ECE 9 of 86

Page 10: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 10 of 86

Page 11: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach one Graph Sheet here

GRIET/ECE 11 of 86

Page 12: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 12 of 86

Page 13: Analog comm lab manual

Analog Communications Lab______________________________________________________

2.Frequency Modulation and DemodulationAim:

To study the process of frequency modulation and demodulation and to calculate the depth of modulation by varying the modulating voltage.

Equipment Required:Analog communication kit , CRO, connecting wires.

Components Required:

1. IC’s:8083,LM-565,TL08IC(OR)TL0842. Resistors:4.7kΩ-(2nos),10kΩ-(5nos),15kΩ-(1nos),30kΩ-(1nos),300kΩ-(2nos)3. Capacitors:0.1µF-(2nos),0.001µF-(3nos),0.0022µF-(1no)

Theory:The general equation of an unmodulated wave, or carrier, may be written as X=A sin (ωt+ф)Where X = instantaneous value of voltage or current.

A = (maximum) amplitudeω = angular velocity (rad/s)ф = phase angle, rad

Note that we represent an angle in radians.If any one of these three parameters is varied in accordance with another signal, normally of a lower frequency, then the second signal is called the modulation and the first is said to modulated by the second. In the frequency modulation, frequency of the carrier is made to vary. For simplicity, it is again assumed that the modulation, signal is sinusoidal. This signal has two important parameters which must be represented by the modulation process without distortion: namely, its amplitude and frequency. It is assumed that the phase relations of a complex modulation signal will be preserved. By the definition of frequency modulation, the amount by which the carrier frequency is varied from its unmodulated value, called the deviation, is made proportional to the instantaneous value of the modulating voltage. The rate at which this frequency variations or oscillations takes place is naturally equal to the modulating frequency.The situation is illustrated in fig 1, which shows the modulating voltage and the resulting frequency-modulate wave. Fig -1 also shows the frequency variation with time which is seen to be identical to the variation with time of the modulating voltage. As an example of FM, all signals having the same amplitude will deviate the frequency by the same amount, says 45 kHz, no matters what their frequencies. Similarly, all signals of the same frequency, says 2 kHz, will deviate the carrier at the same rate of 2000 times per second, no matter what their individual amplitudes. The amplitudes of the frequency modulated wave remains constants at all times, this is , in fact the greatest signal advantage of FM.

GRIET/ECE 13 of 86

Page 14: Analog comm lab manual

Analog Communications Lab______________________________________________________

Fig 1:

Mathematical Representation of FM:The instantaneous frequency of the frequency modulated wave is given by

f = fc (1+k Vmcosωmt)Where fc = unmodulated (or average carrier frequency)

K = proportional constantVmcosωmt = instantaneous modulating voltage (cosine being preferred for simplicity in calculations)

The maximum deviation for this particular signal will occur when the cosine term has its maximum value, that is +(or)-1. under these conditions, the instantaneous frequency will be

f =fc(1+KVm) so that the maximum deviationδ=KVmfc

The instantaneous amplitude of the FM signal will be given by a formula of the formV = A sin F ωc ωm = A sin ф equation1

Where F (ωc ωm), is some function, as yet undetermined, of the carrier and modulating frequencies. This function represents an angle and will be called for convenience. The problem now is to determine the instantaneous value for this angle.

Fig -2

GRIET/ECE 14 of 86

Page 15: Analog comm lab manual

Analog Communications Lab______________________________________________________

As fig-2 shows, ф is the angle traced out by the vector A in time t.If A were rotating with a constant angular velocity, say p.This angle ф would be given by P t in radians.In this instance,however the angular velocity is anything but constant. It is, in fact, governed by the formula for ω=ωc(1+kVmcos ωmt).in order to find f, ω must be integrated with respect to time. Thus

θ = ∫ωdt= ωc (1+KVmcosωmt)dtθ = ωc∫(1+KVmcosωmt)dtθ = ωct+ KVmsinωmt/ωm

θ = ωct+ KVmsinωmt/fm

θ = ωct+ δ /fmsinωmtThe deviation utilized, in turn the fact that ωc is constanst,the formula.

∫cosnx dx = (sinnx/n), which had shown that K Vm fc = δ.Equation 1 may now be subdivided to give the instantaneous value of the FM voltage, thus V = A Sin(ωct+δ/fm Sinωct)Mf= max.frequency deviation / modulating frequency= δ/fm

V = A Sin (ωct+mf Sinωct) It is important to note as the modulated frequency decrease and the modulating voltage amplitude i.e. δ remains constant, the modulation index increase. This will be basis for distinguishing frequency modulation from phase modulation. Note also that m f,which is the ratio of two frequencies is measured in radians.

Circuit description:In this kit, frequency modulation is generated by using IC

8038.The frequency of the waveform generator is a direct function of the DC voltage at terminal 8 (measured from V+).By altering this voltage, frequency modulation is performed. For small deviations (e.g.+ (or) – 10%) the modulating signal can be applied directly to pin 8,merely providing DC decoupling with a capacitor as in Fig 3.An external resistor between pins 7 and 8 is not necessary, but it can be used to increase input impedance from about 8KΩ (pin 7 and 8 connected together) to about (R=8KΩ).

GRIET/ECE 15 of 86

Page 16: Analog comm lab manual

Analog Communications Lab______________________________________________________

For larger FM deviations or for frequency sweeping, the modulating signal is applied between the positive supply voltage at pin 8.During the demodulation,FM output is given to a phase lock loop(565).We have seen that, during lock, the average dc level of the phase comparator output is directly proportional to the frequency of the input signal.As the frequency shifts, it is the output which causes the VCO to shift and key tracking. In other words,the phase comparator output is an exact replica of the original modulating audio signal .Fig-4 shows connections of 565 as FM Demodulator. The component values shown are for a carrier frequency of 82KHZ approx. The demodulated output is followed by a three stage filter to remove Rf component. A small capacitor of 0.01µF as connected between pins 7 and 8 to eliminate possible oscillations in the current source.

Circuit Diagram:

GRIET/ECE 16 of 86

Page 17: Analog comm lab manual

Analog Communications Lab______________________________________________________

Procedure:Step 1: connect the circuit as shown in the circuit diagram.Step 2: check the circuit properly and apply the power supply to the circuitStep 3: observe the carrier signal from the FM modulator at pin 2 of the

IC 8083, which is 82KHZ.Step 4: apply the modulating signal frequency of 4KHZ, 6Volts(p-p) from the function generator to the FM input at pin 8 as shown in the figure below.Fig:

Step 5: Trigger CRO with respect to CH1.adjust amplitude of the modulating signal until we get undistorted FM output. It is difficult to trigger FM on analog CRO.That is why you adjust modulating signal amplitude until small distortions notified in Fm output.

GRIET/ECE 17 of 86

Page 18: Analog comm lab manual

Analog Communications Lab______________________________________________________

Step 6: Calculate maximum frequency and minimum frequency from the FM output and calculate modulating index using table shown in below

Demodulation fig:

STEP7:Connect the FM output to the demodulator input as shown in figure.

Step8 :In this condition decrease the amplitude if the modulating signal generator until we get undistorted demodulated output(1 Vp-p).

Observations:S.NO AMP

(p-pV)fmax

fc+∆ffmin(Hz)fc+∆f

∆f(Hz)β =

Result:The frequency modulated signal is generated and original signal is demodulated and modulation index is calculated for Fm signal

GRIET/ECE 18 of 86

FM Demodulation

Page 19: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach one normal graph sheet here

GRIET/ECE 19 of 86

Page 20: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 20 of 86

Page 21: Analog comm lab manual

Analog Communications Lab______________________________________________________

3.Balanced ModulatorAim:

1. To construct and properly adjust a balanced modulator and study its operation.2. To observe that the output is a double sideband with a suppressed carrier signal.3. To adjust it for optimum carrier suppression.4. To verify that the output audio level directly affects the double side-band output amplitude.5. To observe that the output is maximum with zero audio input.6. To measure carrier only output and the peak side- band output and to calculate the carrier suppression.

Equipment Required: Analog communication kit, CRO connecting wires.Component Required:1. IC’S:1496- (1no)2. Resistors:100Ω-(1no),820Ω-(1no),1kΩ-(1no)1.2kΩ-(1no),2.7kΩ-(1no),10kΩ-(3nos),47kΩ-

(1nos),5OkΩ-POT3. Capacitors: 1µF-(1no),22µF-(1no),100µF-(2nos)Theory:One circuit that lends itself extremely well to balanced modulator application is the differential amplifier. A simplified diagram of a differential amplifier is shown in figure 1.

FIG 1: A Differential amplifier used as a balanced modulator

GRIET/ECE 21 of 86

Page 22: Analog comm lab manual

Analog Communications Lab______________________________________________________

Q3 acts as the current source for Q1 and Q2 .If the RF input is applied to the bases of Q1 and Q2 in phase, current through both transistors will be identical and the voltage difference across the output will be zero. This is the common mode rejection of the differential amplifier and it has balanced modulator out the carrier. The audio input is applied to the base of Q3.This upsets the circuits balance. As a result, the audio mixing and RF signals are mixed across Q1 and Q2 .This is non linear mixing and, therefore, side bands appear at the output. However, the carrier or RF input does not. Since it is a common mode signal, it is rejected.A differential amplifier must be constructed of transistors whose characteristics are very closely matched. Forming the transistors on a single chip of silicon as done with ICs ensure this necessary match.Therefore, the differential amplifier is ideally suited to integrated circuit construction.

Fig 2

IC Balanced Modulators:Fig-2 shows IC that has been specifically designed for use as balanced modulators. Fig-2 is the 1496 balanced modulator, which is manufactured by Motorola, National and Signetics. This device uses a differential amplifier configuration similar to what was previously described. Its carrier suppression is rated at a minimum of -5db with a typical value of -65db at 500 kHz.

GRIET/ECE 22 of 86

Page 23: Analog comm lab manual

Analog Communications Lab______________________________________________________

Step-By–Step Procedure:A balanced modulator using a 1496 integrated circuit .You will verify that it does suppress the carrier and also adjust it for optimum carrier suppression.1. Balanced modulation circuit is designed using 1496 integrated circuit, and connect balanced modulator circuit as per the circuit diagram.2. Apply the power supply =12 to the pin No.8 of IC 1496.3. Give the Audio frequency of 200 Hz sine wave from Function Generator 1 and 100KHZ Sine wave form from the Function Generator 2 which are provided on the Analog Communication Laboratory Kit as a inputs. Adjust R1 (1k Ω linear pot) and R2 (50k Ω linear pot) for mid –range which are provided on the Analog Communication Kit. Connect your oscilloscope to the output and set the vertical input control to 1v/cm and the sweep to 1ms.cm.4. Check the circuit diagram properly and switch on the Analog Communication Kit. Adjust Oscilloscope’s trigger control for a stable display. You may use square as carrier wave and observe the output waveform.5. Vary R1 (1K) both clockwise, counter clockwise, what effect does it have on the output =_____________6.Disconnect the modulating wave input R1 (1KΩ) .The output should now be close to zero. Set your Oscilloscope vertical input to 0.2 v/cm. Now adjust R2 for minimum output. If possible, increase the Oscilloscope’s vertical input sensitivity to measure the output voltage. EOUT CARRIER ONLY =___________________7. Set the vertical input control to 1v/cm. Connect the sine input to R1(1K) and adjust R1 for maximum output without producing clipping. Measure the peak sideband output voltage.EPK SIDEBANDS =____________________8.Calculate the carrier suppression in DB.

DB =20LOG

DB =______________________9.Turn off your experiment and disconnected your circuit.OBSERVATIONS:1. AF signal frequency= 200 Hz.2. RF signal frequency = 100 KHZ.3. Varying R1 ↑, DSBC amplitude (p-p) ↑ proportionally.4. After disconnecting Sine input to R1.5. Eout carrier only = 20 mV (p-p).6. Epk sidebands = 2.4V (p-p).7. Carrier suppression in db = 20 log EPK Sideband / Eout carrier only =41.5

GRIET/ECE 23 of 86

Page 24: Analog comm lab manual

Analog Communications Lab______________________________________________________

Waveforms:

Input and output waveforms of balanced modulatorResult: 1. The Double side band suppressed carrier signal is obtained (Balanced output i.e.,100% modulation is obtained).2. Carrier Suppression in DB is calculatedi.e.,41.5db

GRIET/ECE 24 of 86

Page 25: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach normal graph sheet here

GRIET/ECE 25 of 86

Page 26: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 26 of 86

Page 27: Analog comm lab manual

Analog Communications Lab______________________________________________________

4.Pre-emphasis and De-emphasisAim: To study the frequency response of the Pre-emphasis and De-emphasis circuits and draw the graphs.

Equipment Required:Analog communication kit, C.R.O, connecting wires

Components Required:1. Resistors: 47Ω, 100Ω, 1kΩ, 50k Ω-pot2. Capacitors: 0.1µf, 0.01µf, 0.001µf, 0.047µf

Theory:Frequency modulation is much more to noise than amplitude modulation and is

significantly more immune than phase modulation. A single noise frequency will effect the out put of a receiver only if it falls with in its pass band .The carrier and noise voltages will mix and if the difference is audible, it will naturally interfere with the reception of wanted signals.

The noise has a greater effect on the higher modulating frequencies than on lower ones. Thus, if the higher frequencies were artificially boosted at the transmitter and correspondingly cut at the receiver, improvement in noise immunity could be expected. This boosting of higher modulating frequencies, in accordance with a prearranged curve, is termed pre-emphasis, and the compensation at the receiver is called de-emphasis.

If two modulating signals have the same initial amplitude, and one of them is pre-emphasized to (say) twice this amplitude, where as the other is unaffected (being at a much lower frequency), then the receiver will naturally have to do de-emphasize the first signal by a factor of 2, to ensure that both signals have the same amplitude in the output of the receiver. Before demodulation, i.e., while susceptible to noise interference the emphasized signal had twice the deviation it would have had without pre-emphasis, and was thus more immune to noise. Side band voltages are de-emphasized with it, and therefore have correspondingly lower amplitude than they would have had without emphasis again their effect on the output is reduced.

The amount of pre emphasis U.S FM broadcasting, and in the sound transmission accompanying television, has been standardized at 75 micro seconds, whereas a number of the other services, notably CCIR and Australian TV sound transmission, use 50 micro seconds. The usage of microseconds for defining emphasis is standard. A 75 microsecond’s de-emphasis

Corresponds to a frequency response curve that is 3 db down at the frequency whose time constant RC is 75 microseconds. This frequency is given by f=1/2ΠRC and is therefore 2120HZ: with 50-micro seconds de-emphasis it would have been 3180HZ.If emphasis is applied to amplitude modulation, some improvement will also result, but it is not as great as in FM because the highest modulating frequencies in AM are no more affected by noise than any others. Apart from that, it would be difficult to introduce pre-emphasis and de-emphasis in existing AM services since extensive modifications would be needed, particularly in view of the huge numbers of receivers in use.

GRIET/ECE 27 of 86

Page 28: Analog comm lab manual

Analog Communications Lab______________________________________________________

Circuit Diagrams:

Procedure:1. Construct the circuit as shown in the circuit diagram.2. Observe the 3. I/P waveform on the CRO in channel 1.4. Adjust the amplitude of the sine wave using the amplitude knob to a particular voltage, say

4V or 6V or 10V etc. 5. Measure the O/P voltage in the CRO and note down in the observation table.6. Calculate the attenuation and Log f values as shown in the observation table.7. Draw the graph frequency (X-axis) and attenuation in db (Y-axis) to show the emphasis

curves on a semi log graph.8. Various values of R and C are available so that the time constant in suitably selected

depending upon the application.Pre-Emphasisi/p voltage=4volts

GRIET/ECE 28 of 86

Frequency(Hz)

Output(volts)

Log f Attenuation (db)20 log eo/ei

Page 29: Analog comm lab manual

Analog Communications Lab______________________________________________________

De-Emphasis I/p Voltage=10volts

Frequency in Hz Output in volts Logf Attenuation in db20 log eo/ei

Figure 1Frequency response of Pre-emphasis &De-emphasis

Result: The frequency response of Pre-emphasis and De-emphasis circuits obtained.

GRIET/ECE 29 of 86

Page 30: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 30 of 86

Page 31: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach one semilog graph Sheet here

GRIET/ECE 31 of 86

Page 32: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 32 of 86

Page 33: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 33 of 86

Page 34: Analog comm lab manual

Analog Communications Lab______________________________________________________

5.Characteristics of mixerAim:To measure the following parameters of mixer of the signal band (Medium wave: 550 kHz to 1.5MHz) Radio Receiver.1 Conversion gain2 Image suppression (or) rejection3 Sensitivity of the mixerEquipment Required:1 AM-FM signal generator (AP-LAB)2 Audio signal generator3 Oscilloscope4 Radio Receiver Dynamic demonstrator5 Wires for subsystems interconnection6 Spectrum analyzers.Theory:

A Frequency changer(mixer or converter) is a nonlinear resistance having two sets of input frequency (FR and LO) and one set of output (IF)a mixer is used to shift the input received RF signal (Frequency band of 550kHZ to 1.5KHz) to low frequency Intermediate Frequency (IF) of 455kHz.The block diagram of the mixer is as follows. Fig:

Image frequency and its rejection:The frequency of the local oscillator f0 in majority of receivers, is kept higher than the

signal frequency fs and is given by f0 = fs + fi (where fi is the intermediate frequency) of fs = f0-fi. When fs and f0 are mixed together in the mixer, they produce the difference frequency f i and it is the only frequency that is amplified by the IF stage.

If still higher frequency fsi=f0+fi manages to reach the mixer, then this will also produce f i

when mixer with f0. This spurious If signal will also be amplified by the IF stage, and will therefore produce interference. This results in two stations being received simultaneously, which is undesirable fsi is called the image frequency and is defined by

fsi=fs+2fi

The rejection of this image frequency by a single tuned circuit is measured by ‘α’ the rejection ratio. it is the ratio of gain at the signal frequency to the gain at the image frequency and given by α =√1+q²ρ²Where ρ=(fsi/fs)-(fs/fsi)

GRIET/ECE 34 of 86

Page 35: Analog comm lab manual

Analog Communications Lab______________________________________________________

If the receiver has an RF stage, then there will be two tuned circuits tuned to fs,the rejection will be calculated by the same formula and the total rejection will be the product of the two. image rejection depends on the front end selectivity of the receiver and must be achieved before the IF stage, because after the unwanted frequency enters the IF amplifier, it is impossible to remove it from the unwanted signal. For short wave range ,an RF stage is essential for frequency rejection.RadioReceiverDynamicDemonstrator

GRIET/ECE 35 of 86

Page 36: Analog comm lab manual

Analog Communications Lab______________________________________________________

Procedure:(i)Conversion Gain:(a) set the RF signal level to about 100mv at a frequency of 100KHZ from an AM-FM signal generator and noted as v1 volts.(b) Apply the RF signal at the antenna input of the antenna stage.(c) As transistor T1 acts both as LO stage with sufficient output power and mixer, the IF output is selected by IF-T in IF amplifier stage.(d) Tune the gang condenser to tune antenna stage and also tune the coiling mixer-Local oscillator stage for maximum output at IF-T1 of IF stages.(e) Measure the IF level(V2 volts) at the point of IF-T1 without connection to the base of T2.If the level of IF is low at this point, measure the IF level at the output coil of IF-T3(without connecting detector diode OA79) and subtract the IF amplifier gain to get the IF detected level(V2 volts).(f) The conversion gain/loss is calculated as 20logV2/V1db (if V2 is less than v1then it is conversion loss).(g) The level of V1 and V2 can be measured either with oscilloscope or spectrum analyzer.

(ii) Image Suppression/Rejection:(a) As L.O frequency in radio receiver is above the RF signal by IF frequency (455 KHz), the image frequency is above L.O frequency by IF frequency.Image frequency = L.O frequency + IF frequency.(b) Apply the RF signal of 1000KHz,from AM-FM signal generator at a level of about 50 or 100mV at the antenna terminal of the antenna stag and note the level as V1.(c) Measure the IF output level at IF-T1 of IF amplifier as V2.(d) Calculate RF(or desired input) gain as 20logV2/V1db.(e) Select the image signal (RF+2IF =1000+2*455=1910KHZ)from AM-FM signal generator and repeat steps (b) and (c) above and measure v2(Im)(f) Calculate Receiver gain/loss at image frequency, as 20log V2 (Im)/V1(Im) is a level of input signal of 1910KHz to the receiver at image frequency. This value should be less than RF gain for better performance of the receiver

(iii) Sensitivity of The Receiver:(a) Apply 1000 KHz RF signal at level of 100mV at the input of the receiver(either at antenna input or base input of T1)(b) Measure the (S/N)ratio of the audio output across the loud speaker(c) Decrease the RF input level of AM-FM signal generator till (S/N)ratio of step(b) above, decrease by 3db or till the unacceptable level of audio tone is heard in the speaker. The RF level at this point is the sensitivity of the mixture and measured as db µV or dbmV.Observations:A. Conversion gain:

RF (100 KHz) input = 150Mv(a)If output (at IF – T3) = 9.2V = A(b)If input level (at IF – T1) at 455 KHz required to get the same IF output of 9.2 V = 150 mV = B.

If B ≥A then conversion gain = 20 log (A/B)If B <A then conversion gain = 20 log (A/B)

GRIET/ECE 36 of 86

Page 37: Analog comm lab manual

Analog Communications Lab______________________________________________________

As same levels are obtained in case (a) and (b) above, the conversion gain = 0 db.B.Image suppression (or) rejection:RF input = 50mV (at 1000KHz)IF output voltage = 9V.Image = 1000 + 910 = 1910KHzIF output (at input of 910 KHz) = 0.2V.g1 = RF to IF gain = 20 log (9V/50mV) = 45.1dbg2 = Image to IF gain = 20 log (0.2V/50mV) = 12db

Image rejection = (g1 – g2)db = 33.1dbC.Sensitivity of the mixer:RF input level at 1000 KHz = 50mV.Measure AF output level impedance switch position of AF power meter at 6Ω position.AF output level = 4vp-p (or) 0.35watts.RF (100KHz) input level required for half power level of AF p-p measured above (2Vp-p or 0.175mW)= 2.5mV.Sensitivity = 20log (2.5mV/1µV) = 67.95dbµV.Result:Characteristics of mixer are studied. Conversion gain, Image suppression and Sensitivity of mixer are obtained.

GRIET/ECE 37 of 86

Page 38: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 38 of 86

Page 39: Analog comm lab manual

Analog Communications Lab______________________________________________________

6.Phase detection and Measurement using PLLAim: To determine the phase difference in capture range using PLL.

Equipment Required:Analog communication kit, CRO, connecting wires.

Components Required:I.C’S:4046-(1no).Resistors:560Ω-(1no),4k7Ω-(1no),100kΩ-(1no),27kΩ-(1no)Capacitors: 0.1µ F-(1no), 0.01µF-(1no), 0.001µF-(1no), 4.7µF-1No.

Theory:As same as the theory written in voltage Controlled Oscillator using PLL. (I.E., Experiment no: 2)Circuit Diagram :

GRIET/ECE 39 of 86

Page 40: Analog comm lab manual

Analog Communications Lab______________________________________________________

Procedure:Step 1:Connect the circuit as per the circuit diagram as shown in figure give the input at pin 14, i.e. sine wave of 1KHZ and peak to peak of 6 volts . And observe the input sine wave in channel 1 of CRO.Step 2:Now connect the pin 3 and pin 4 to channel 2 of CRO which is the output of the IC 4046. And measure the output frequency on CRO (channel 2) which is equal to the input frequency (i.e. 1KHZ).Step 3:Now connect the pin -9 to ground of the 4046 with piece of wire, and record the resultant output frequency of the phase locked loop.F1 =____________HzThis output frequency is the lower range of VCO which is determined by the 0.1µF capacitor connected between pins 6 and 7 and 100KW resistor connected between pin 12 and ground.Step 4:Now with same wire connect the pin 9 to +5 volts supply, record the output which is higher than the one you measured in step 3.Fh=_____________HzThis frequency is the upper range of VCO which is determined by the 0.1µF capacitor connected between pin 6 and 7 and the 560Ω resistor connected pins 11 and ground.Step 5:Now remove the connection between pin 9 and the +5 volts supply and measure the output which is the same as the input.

GRIET/ECE 40 of 86

Page 41: Analog comm lab manual

Analog Communications Lab______________________________________________________

Step 6:Now slowly increase the input frequency; you should observe that, the output frequencies also increase. In fact, the output frequencies follow the changes of the input frequency and should be exactly equal. Check the input frequency to confirm this.Step 7:Continue to slowly increase the input frequency of PLL and stop when the output frequency of the PLL does not continue to increase. Measure the input frequency and record result Fin(H)=___________Hz. This is the upper range of VCO which is same as measured in step4 .The phase locked loop then follows input frequency changes for frequencies below this upper range.Step 8:Now decrease the input frequency, At some point the output frequency will remain constant. Measure the input frequency and record the result.Fin (L) =____________Hz

This frequency is lower range of VCO and which is same as measured in step 3.Consequqntly the PLL circuit follow changes in the input frequency for any frequency between the lower and upper range of the VCO. There for the loop is locked.Fin(H)- Fin(L). Which is lock range, =_____________HzStep 9:Measure the frequency just below the lowest range of the lock range, which is termed as capture range.Step 10:In capture range observe and measure the phase difference between the i/p and o/p waveforms at the same frequencies. Δф =t1-t2/T *360°=_______OBSERVATIONS:

RESULT:Lock range=_________________Capture range=_______________Phase detection=______________

GRIET/ECE 41 of 86

Page 42: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 42 of 86

Page 43: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach normal graph sheet here

GRIET/ECE 43 of 86

Page 44: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 44 of 86

Page 45: Analog comm lab manual

Analog Communications Lab______________________________________________________

7.Synchronous DetectorAim:To obtain the demodulating (or) message signal using DSB or SSB synchronous or coherent detector.

Equipment Required:Analog communication kit , CRO , Connecting wires.

Components Required:1. IC’s:1496–2No.2.Resistors:100Ω-(2nos),10Ω-(1no),820Ω-(2nos)47KΩ-(1nos),1KΩ-(2nos),1K-Pot(2nos),1.2KΩ(3nos),50KΩPot-(2nos),2.7KΩ-(2nos),7.3296KΩ-(1nos)3. Capacitors: 0.047µF, 0.1mF, 22mF, 100mF.

Block Diagram:

Procedure:1. A connection was made as per circuit diagram.2. A balanced modulator circuit was connected for both Transmitter and Receiver.3. Carrier signal was same and was applied to two balanced modulator circuits.4. Apply the power +12V to pin 8 of both the circuits.5. The output of the Receiver balanced modulator circuit was connected to low pass filter.6. Low pass filter circuit was designed according to the requirement.7. And the modulating signal was obtained at the LPF.

GRIET/ECE 45 of 86

Page 46: Analog comm lab manual

Analog Communications Lab______________________________________________________

Observations:Transmitter Receiverfc=15 KHz fc=15 KHzfm=462Hz T=2.3msec.

After Filter:T=2.3msec.fm = 434.78 Hz.Designing LPFfm = 462HZ = 1/2∏RCLet c = 0.047µF.R= 1/( 2∏ ×0.047×10 -6× 462)R = 7.3296K Ω

Result:Thus the modulating signal obtained from the DSB detector.

GRIET/ECE 46 of 86

Page 47: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach normal graph sheet here

GRIET/ECE 47 of 86

Page 48: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 48 of 86

Page 49: Analog comm lab manual

Analog Communications Lab______________________________________________________

8.SSB SystemAim:To generate a SSB signal using Balanced Modulator.

Equipment Required:Analog communication kit, CRO, Connecting wires.Components Required:1. IC’s 1496–1No.2. Resistors: 100Ω-1, 10Ω-1820Ω-1, 47KΩ-1, 1KΩ-1, 1KΩ-Pot-1, 2.7KΩ-1.3. Capacitors: 0.047µF-1, 0.1mF-1, 22mF-1,100mF–1.

Block Diagram:

Procedure:1. Obtain a DSB-SC signal using balanced modulator2. Design a Band pass filter (BPF) for a given specifications to eliminate one of the side band from DSB signal.3. Connect the output of balanced modulator to the input of BPF.4. Obtain the output from BPF to get SSB signal which is either LSB or USB.5. Note down its frequency.Wide Band BPF Circuit Diagram :

GRIET/ECE 49 of 86

Page 50: Analog comm lab manual

Analog Communications Lab______________________________________________________

Observations:Design of BPFWe consider wide band BPF, Which is a cascade of HPF & LPFfc=6.3 KHz fm = 200HzLet us consider USB/SSB = fc + fm = 6.5 Hz.

fL=6.3 KHzfO=6.5KHzfH=6.7 KHz

HPF LPFfL= 1/2∏RC=6.3 kHz Fh= 1/2∏RC=6.7 KHzChoose C=.047uf Let C=.01ufRL=537 ohms Rh=2.37K ohms

Result:Thus the SSB signal was generated using balanced modulator

GRIET/ECE 50 of 86

Page 51: Analog comm lab manual

Analog Communications Lab______________________________________________________

Attach semilog graph sheet here

GRIET/ECE 51 of 86

Page 52: Analog comm lab manual

Analog Communications Lab______________________________________________________

MATLAB PROGRAMS

GRIET/ECE 52 of 86

Page 53: Analog comm lab manual

Analog Communications Lab______________________________________________________

1.Amplitude Modulationt=0:0.0001:0.02msg=10*cos(2*pi*100*t)carr=20*cos(2*pi*1000*t)amw=(20+msg).*cos(2*pi*1000*t)subplot(2,1,1)plot(t,msg)title('Message signal')subplot(2,1,2)plot(t,carr)title('Carrier signal')figure;subplot(3,1,1)plot(t,amw)title('Under Modulation')msg=30*cos(2*pi*100*t)amw=(20+msg).*cos(2*pi*1000*t)subplot(3,1,2)plot(t,amw)title('over modulation')msg=20*cos(2*pi*100*t)amw=(20+msg).*cos(2*pi*1000*t)subplot(3,1,3)plot(t,amw)title('100 % modulation')

GRIET/ECE 53 of 86

Page 54: Analog comm lab manual

Analog Communications Lab______________________________________________________

OUTPUT WAVEFORMS

GRIET/ECE 54 of 86

Page 55: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 55 of 86

Page 56: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 56 of 86

Page 57: Analog comm lab manual

Analog Communications Lab______________________________________________________

2.Demodulation of AM wave using Hilbert transformt=0:0.0001:0.02fc=1000Ec=7Carr=Ec*sin(2*pi*fc*t)fm=100Em=7Mod=Em*sin(2*pi*fm*t)Am=(Ec+Mod).*(sin(2*pi*fc*t))disp('Performing Amplitude Demodulation using Hilbert transform');Am_hil=hilbert(Am)Am_abs=abs(Am_hil)Am_Demod=Am_abs-mean(Am_abs)disp('plotting the results');figure;subplot(4,1,1);plot(t,Mod);title('Message Waveform');%xlabel('Time(sec)');ylabel('Amplitude'); subplot(4,1,2);plot(t,Carr);title('carrier waveform');%xlabel('Time(Sec)');ylabel('Amplitude');subplot(4,1,3);plot(t,Am);title('amplitude modulated wave form');%xlabel('Time(sec)');ylabel('Amplitude');subplot(4,1,4);plot(t,Am_Demod);title('Amplitude demodulated waveform');%xlabel('Time(sec)');ylabel('Amplitude');

GRIET/ECE 57 of 86

Page 58: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 58 of 86

Page 59: Analog comm lab manual

Analog Communications Lab______________________________________________________

3.Demodulation using Diode detectort=0:0.0001:0.02msg=16*cos(2*pi*200*t)carr=10*cos(2*pi*1000*t)subplot(4,1,1)plot(t,msg)title('Message waveform')subplot(4,1,2)plot(t,carr)title('Carrier waveform')amw=(10+msg).*cos(2*pi*1000*t)subplot(4,1,3)plot(t,amw)title('AM wave')for tim=1:200;if(amw(tim)<0)amw(tim)=0;endend[den,num]=butter(1,2*pi*0.025)for i=1:20amw=filter(den,num,amw);endsubplot(4,1,4)plot(t,amw)title('Demodulated waveform')

GRIET/ECE 59 of 86

Page 60: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 60 of 86

Page 61: Analog comm lab manual

Analog Communications Lab______________________________________________________

4.DSBSC Modulationt=0:0.0001:0.02;fc=1000Ec=3Carr=Ec*sin(2*pi*fc*t)fm=100Em=7Mod=Em*sin(2*pi*fm*t)DSBSC=Mod.*Carrsubplot(3,1,1)plot(t,Mod)title('Message waveform')subplot(3,1,2)plot(t,Carr)title('Carrier waveform')subplot(3,1,3)plot(t,DSBSC)title('DSBSC modulated waveform')

Output Waveforms

GRIET/ECE 61 of 86

Page 62: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 62 of 86

Page 63: Analog comm lab manual

Analog Communications Lab______________________________________________________

5.DSBSC Demodulationt=0:0.0001:0.02;fc=1000Ec=3Carr=Ec*sin(2*pi*fc*t)fm=100Em=7Mod=Em*sin(2*pi*fm*t)DSBSC=Mod.*Carrx=DSBSC.*sin(2*pi*fc*t)R=1000;C=1.59*power(10,-6);h=(1/(R*C))*exp(-t/(R*C))y=conv(x,h)subplot(3,1,1)plot(t,Mod)title('Modulating Signal')subplot(3,1,2)plot(t,DSBSC)title('Double Side Band Suppressed Carrier')subplot(3,1,3)plot(y)axis([0 200 -1.5*power(10,5) 1.5*power(10,5)])title('DSBSC after Demodulation')

GRIET/ECE 63 of 86

Page 64: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveform

GRIET/ECE 64 of 86

Page 65: Analog comm lab manual

Analog Communications Lab______________________________________________________

6.Generation DSBSC using Balanced Modulatort=0:0.0001:0.02fc=1000Ec=3fm=100m=3s1=Ec*(1+(m*cos(2*pi*fm*t))).*cos(2*pi*fc*t)s2=Ec*(1-(m*cos(2*pi*fm*t))).*cos(2*pi*fc*t)s=s1-s2subplot(3,1,1)plot(t,s1)title('Amplitude Modulated Signal 1')subplot(3,1,2)plot(t,s2)title('Amplitude Modulated Signal 2')subplot(3,1,3)plot(t,s)title('DSBSC')

GRIET/ECE 65 of 86

Page 66: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 66 of 86

Page 67: Analog comm lab manual

Analog Communications Lab______________________________________________________

7.SSBSC Modulationt=0:0.0001:0.04msg=5*cos(2*pi*200*t)carr=10*cos(2*pi*1000*t)ht=imag(Hilbert(msg))subplot(3,1,1)plot(t,msg)title('Message waveform')subplot(3,1,2)plot(t,carr)title('Carrier Waveform')ssb1=(msg.*(carr/10))+(ht.*sin(2*pi*1000*t))subplot(3,1,3)plot(t,ssb1)title('SSBSC')

Output Waveforms

GRIET/ECE 67 of 86

Page 68: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 68 of 86

Page 69: Analog comm lab manual

Analog Communications Lab______________________________________________________

8.Demodulation of SSBSCt=0:0.0001:0.04msg=5*cos(2*pi*200*t)carr=10*cos(2*pi*1000*t)ht=imag(Hilbert(msg))subplot(4,1,1)plot(t,msg)title('Message waveform')subplot(4,1,2)plot(t,carr)title('Carrier Waveform')ssb1=(msg.*(carr/10))+(ht.*sin(2*pi*1000*t))subplot(4,1,3)plot(t,ssb1)title('SSBSC Modulated wave')impres=(400*pi)*exp(-t*400*pi)demd=conv((ssb1.*(carr/10)),impres)k=0:0.0001:0.08subplot(4,1,4)plot(k,demd)title('Demodulated waveform')

GRIET/ECE 69 of 86

Page 70: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 70 of 86

Page 71: Analog comm lab manual

Analog Communications Lab______________________________________________________

9.Frequency Spectrum of Amplitude Modulated Wavet=0:0.0001:0.02fc=1000Ec=7Carr=Ec*sin(2*pi*fc*t)fm=100Em=3Mod=Em*sin(2*pi*fm*t)Am=(Ec+Mod).*(sin(2*pi*fc*t))FA=fft(Am,1024)subplot(1,1,1)plot(fftshift(abs(FA)))axis([375 700 0 1000])title('frequency Spectrum of AmplitudeModulated Wave')

Output Waveform

GRIET/ECE 71 of 86

Page 72: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 72 of 86

Page 73: Analog comm lab manual

Analog Communications Lab______________________________________________________

10.Frequency Spectrum of Amplitude Modulated Wavet=0:0.0001:0.02fc=1000Ec=7Carr=Ec*sin(2*pi*fc*t)fm=100Em=3Mod=Em*sin(2*pi*fm*t)DSBSC=Carr.*ModFA=fft(DSBSC,1024)subplot(1,1,1)plot(fftshift(abs(FA)))axis([375 700 0 1000])title('frequency Spectrum of DSBSC Wave')

Output Waveform

GRIET/ECE 73 of 86

Page 74: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 74 of 86

Page 75: Analog comm lab manual

Analog Communications Lab______________________________________________________

11.Frequency Spectrum of SSBSCt=0:0.0001:0.04msg=5*cos(2*pi*200*t)carr=10*cos(2*pi*1000*t)ht=imag(Hilbert(msg))ssb1=(msg.*(carr/10))+(ht.*sin(2*pi*1000*t))FT=fft(ssb1)plot(abs(FT))title(‘Frequency Spectrum of SSBSC wave’)

Output Waveforms

GRIET/ECE 75 of 86

Page 76: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 76 of 86

Page 77: Analog comm lab manual

Analog Communications Lab______________________________________________________

12.Performing Pre-emphasis and De-emphasisf1=10;for f=1:50x(f)=(1/sqrt(1+(f1/f)^2));f2(f)=f;endsubplot(2,1,1);plot(f2,x);title('Pre-emphasis waveform')for f=1:50y(f)=(1/sqrt(1+(f/f1)^2));f3(f)=f;endsubplot(2,1,2);plot(f3,y);title('De-emphasis waveform')

Output Waveforms

GRIET/ECE 77 of 86

Page 78: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 78 of 86

Page 79: Analog comm lab manual

Analog Communications Lab______________________________________________________

13.Frequency ModulationAm=1; Ac=2fc=500; fm=200; fs=400kf=30dt=1/fsT=20e-3t=0:T/fs:Tmod=Am*cos(2*pi*fm*t)FM=Ac*cos(2*pi*fc*t+(2*pi*kf*(cumsum(mod)*dt)))subplot(2,1,1)plot(t,mod)axis([0 0.02 -5 5])title('Message Signal')subplot(2,1,2)plot(t,FM)axis([0 0.02 -5 5])title('FM Signal')

Output Waveforms

GRIET/ECE 79 of 86

Page 80: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 80 of 86

Page 81: Analog comm lab manual

Analog Communications Lab______________________________________________________

14.Demodulation of FM wave

Am=1;Ac=2;fc=500;fm=200;fs=400;kf=30dt=1/fsT=20e-3t=0:T/fs:Tmod=Am*cos(2*pi*fm*t)FM=Ac*cos(2*pi*fc*t+(2*pi*kf*(cumsum(mod)*dt)))AM=diff(FM)lengthC=400;FM_Diode_out=AMfor time_indx=1:lengthC; if(FM_Diode_out(time_indx)<0) FM_Diode_out(time_indx)=0; endendfs1=8000;[den,num]=butter(1,2*pi*fm/fs1);FM_Demod=filter(den,num,FM_Diode_out);for n=1:100 FM_Demod=filter(den,num,FM_Demod) endsubplot(3,1,1)plot(t,mod);axis([0 0.01 -5 5])title('Message Signal')subplot(3,1,2)plot(t,FM);axis([0 0.01 -5 5])title('FM Signal')subplot(3,1,3)plot(FM_Demod);axis([200 400 0 0.4])title('FM demodulated signal')

GRIET/ECE 81 of 86

Page 82: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 82 of 86

Page 83: Analog comm lab manual

Analog Communications Lab______________________________________________________

15.Frequency Spectrum of FMAm=1Ac=2fc=500fm=200fs=400kf=30dt=1/fsT=20e-3t=0:T/fs:Tmod=Am*cos(2*pi*fm*t)FM=Ac*cos(2*pi*fc*t+(2*pi*kf*(cumsum(mod)*dt)))FFM=fft(FM)plot(abs(FFM))title('Frequency Spectrum')

Output Waveforms

GRIET/ECE 83 of 86

Page 84: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 84 of 86

Page 85: Analog comm lab manual

Analog Communications Lab______________________________________________________

16.Construction of SQUELCH circuitt=0:0.0001:0.02fc=1000;Ec=7Carr=Ec*sin(2*pi*fc*t)fm=100;Em=5Mod=Em*sin(2*pi*fm*t)Am=(Ec+Mod).*(sin(2*pi*fc*t))for t1=1:200 Am1(t1)=Am(t1)endfor t1=201:400 Am1(t1)=0endfor t1=401:600 Am1(t1)=Am(t1-400)enddisp(' Amplitude Demodulation using diode detector')lengthC=600;AM_Diode_out=Am1for time_indx=1:lengthC; if(AM_Diode_out(time_indx)<0) AM_Diode_out(time_indx)=0; endendfs=8000;[den,num]=butter(1,2*pi*fm/fs);AM_Demod=filter(den,num,AM_Diode_out);for n=1:10 AM_Demod=filter(den,num,AM_Demod) endsubplot(2,1,1);plot(Am1)title('Transmitted Signal')subplot(2,1,2);plot(AM_Demod)title('Squelch Circuit i.e after Quieting')

GRIET/ECE 85 of 86

Page 86: Analog comm lab manual

Analog Communications Lab______________________________________________________

Output Waveforms

GRIET/ECE 86 of 86

Page 87: Analog comm lab manual

Analog Communications Lab______________________________________________________

GRIET/ECE 87 of 86