16 views

Uploaded by Balamurugan Gopalakrishnan

- CE - 2marks
- EC6402-CT-2-MARKS3.rtf
- MODULATION PART 1 OF 10.pdf
- Ec 2311 Communication Engineering Notes
- amfm108k
- Electronics Circuit II
- Appendix
- Angle Modulation
- BRTSM
- CT QP.pdf
- Ece
- chap5_lec1
- DC Power Line Comunication
- B.E.EEE-SYLLABUS
- IECEP QUIZ BOWL.pdf
- IC-7300-Product-Brochure
- PQ SU2485-SU2164
- Mototrbo Repeater Spec Sheet
- Final Review Class
- Error CD

You are on page 1of 11

%The amplitude modulation(AM)waveform in time and frequency domain.%fm=20HZ,fc=500HZ,Vm=1V,Vc=1V,t=0:0.00001:0.09999 % setting fm=20; fc=500; vm=1; vc=1; % x-axis:Time(second) t=0:0.00001:0.09999; f=0:1:9999; % y-axis:Voltage(volt) wc=2*pi*fc; wm=2*pi*fm; V1=vc+vm*sin(wm*t); V2=-(vc+vm*sin(wm*t)); Vm=vm*sin(wm*t); Vc=vc*sin(wc*t); Vam=(1+sin(wm*t)).*(sin(wc*t)); Vf=abs(fft(Vam,10000))/10000;

% Plot figure in time domain figure; plot(t,Vam); hold on; plot(t,V1,'r'),plot(t,V2,'r'); title('AM waveform time-domain'); xlabel('time'), ylabel('amplitude'); grid on;

plot(f*10,Vf); axis([(fc-2*fm) (fc+2*fm) 0 0.6]); title('AM waveform frequency-domain'); xlabel('frequency'), ylabel('amplitude'); grid on;

%Plot modulating signal figure; plot(t,Vm); title('AM modulating signal'); xlabel('time'), ylabel('amplitude'); grid on;

%Plot carrier signal figure; plot(t, Vc); title('AM carrier signal'); xlabel('time'), ylabel('amplitude'); grid on; clear;

Q. 1. What is modulation? Q. 2. Which are the three discrete frequencies in AM? Q. 3 How many sidebands in AM? Q. 4. What is the unit of modulation index in AM? Q. 5. Where the modulation index lies? Q.1. What is the most commonly used demodulator? ( Envelope , Square law ) Q.2. What is the required oscillator frequency in AM receiver? Q.3. How AM signals with large carrier are detected? (Square law detect low level AM & Vice vers ) Q.4. How much bandwidth required for AM wave? Q.5. List out the advantages of Amplitude modulation.

Q.1. what frequency deviation in FM? Q.2. Which is the useful parameter for determination of bandwidth? Q.3. How many sidebands in FM? Q.4. Which are significant sidebands?. Q.5. What is VCO?

Q.1. what is modulation index in FM? Q.2. Why the power is same in FM modulation and demodulation? Q.3. Write the two types of phase difference discriminator? ( Foster Seeley, Ratio ) Q.4. write the disadvantage of balanced slope discriminator? Q.5. what is the merit of ratio detector? AM Receiver IF 455k FM Receiver IF 10.7M

Program For ASK fc=30; g=[1 1 0 1 0 0 1 1 1 0]; %modulante n=1; while n<=length(g) if g(n)==0 tx=(n-1)*0.1:0.1/100:n*0.1; p=(1)*sin(2*pi*fc*tx); plot(tx,p,'LineWidth',1.5);grid on; hold on; else t=(n-1)*0.1:0.1/100:n*0.1; p=(2)*sin(2*pi*fc*t); plot(tx,p,'LineWidth',1.5);grid on; hold on; end n=n+1; end

clc; %getting code word size and block size n = input('Enter the length of codeword: '); length = input('Enter the length of input stream: '); trans_bits = input('Enter the bits (zeros and ones): '); block_size = input('Enter the block size (factor of length): '); % to segment the input stream into blocks %creating message vectors no_of_msg_vectors = 2^block_size; disp('no_of_msg_vectors: ') disp(no_of_msg_vectors) msg_vectors=[]; for i=0:1:no_of_msg_vectors-1 msg_vectors=[msg_vectors ; dec2bin(i,block_size)]; end disp('message vectors are: ') disp(msg_vectors) %generating bits to be transmitted parity_column = n-block_size; temp = parity_column; parity_matrix=[ ]; disp('bits to be transmitted: ') %splitting input string into parity rows for i=1:parity_column:length a1=trans_bits(i:temp); for j=1:i+temp:parity_column parity_matrix = [parity_matrix ; a1]; %M=[M ; dec2bin(i,4)]; end temp=temp+parity_column; end disp('parity matrix: ') disp(parity_matrix) %generating identity matrix identity_matrix = eye(block_size) %creating generator matrix g_matrix=[ ]; g_matrix= horzcat(parity_matrix, identity_matrix) %generating codeword codewd_matrix=[]; codewd_matrix=msg_vectors*g_matrix; for i=1:1:no_of_msg_vectors for j=1:1:n if mod(codewd_matrix(i,j),2)==0 codewd_matrix(i,j)=0; else codewd_matrix(i,j)=1; end end end codewd_matrix %transmission of a code word selected_word=input('Enter the codeword to be transmitted'); trans_word=codewd_matrix(selected_word,:) copy_trans=trans_word;

e_pos=input('Enter the bit position to be changed '); if(copy_trans(1,e_pos)==0) copy_trans(1,e_pos)=1; else copy_trans(1,e_pos)=0; end %decoding the received word received_word=copy_trans parity_t=parity_matrix' identity_mat1=eye(n-block_size) hamming_matrix=[identity_mat1,parity_t] %Error Detection syndrome=received_word*hamming_matrix'; disp('Transpose of Hamming Matrix: ') disp(hamming_matrix') hamming_transpose=hamming_matrix'; for i=1:1:parity_column if mod(syndrome(i),2)==0 syndrome(i)=0; else syndrome(i)=1; end end syndrome for i=1:1:n if syndrome(1,:)==hamming_transpose(i,:) e_bit =i; %errored bit end end disp('The corrupted bit is ') e_bit %Error Correction if received_word(1,e_bit)==1 received_word(1,e_bit)=0; else received_word(1,e_bit)=1; end disp('Corrected Code Word'); received_word disp('Original Code word'); trans_word OUTPUT: Enter the length of codeword: 7 Enter the length of parity stream: 12 Enter the bits (zeros and ones): [1 1 0 0 1 1 1 1 1 0 0 1] Enter the block size (factor of length): 4 no_of_msg_vectors: 16

message vectors are: 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 parity matrix: 110 011 111 001 identity_matrix = 1000 0100 0010 0001

g_matrix = 1101000 0110100 1110010 0010001 codewd_matrix = 0000000 0010001 1110010 1100011 0110100 0100101 1000110 1010111 1101000 1111001 0011010 0001011 1011100 1001101 0101110 0111111 Enter the codeword to be transmitted 6 trans_word = 0100101 Enter the bit position to be changed 4 received_word =

0101101 parity_t = 1010 1110 0111 identity_mat1 = 100 010 001 hamming_matrix = 1001010 0101110 0010111 Transpose of Hamming Matrix: 100 010 001 110 011 111 001 syndrome = 110 The corrupted bit is e_bit = 4 Corrected Code Word

- CE - 2marksUploaded byNaga Rajan
- EC6402-CT-2-MARKS3.rtfUploaded byDinesh Kumar R
- MODULATION PART 1 OF 10.pdfUploaded bynonotjen
- Ec 2311 Communication Engineering NotesUploaded bypadmavathy2k
- amfm108kUploaded byhectorsr
- Electronics Circuit IIUploaded byMtende Moses
- AppendixUploaded byBashir Idris
- Angle ModulationUploaded byahasan
- BRTSMUploaded byGalani Mothobi
- CT QP.pdfUploaded byIlavarasan Tamizh
- EceUploaded byaditya_pundir
- chap5_lec1Uploaded byFetsum Lakew
- DC Power Line ComunicationUploaded byJorgeluis Fernandez
- B.E.EEE-SYLLABUSUploaded byJoe Joseph Suresh
- IECEP QUIZ BOWL.pdfUploaded byChester Kyles Colita
- IC-7300-Product-BrochureUploaded byAnonymous YDF1ID15zJ
- PQ SU2485-SU2164Uploaded bykarwan chawmar
- Mototrbo Repeater Spec SheetUploaded byEdwinWibisana
- Final Review ClassUploaded byAtul Dwivedi
- Error CDUploaded byVivekanandhan Vijayan
- 332675871 Heathkit Schematic and Manual Archive InDICEUploaded byGautam Balhara
- r5220406 Analog CommunicationsUploaded bySaitheja Sharma
- Fault Tolerant Parallel Filters Based on Error Correction Codes (1)Uploaded bySijo Mathew
- House ReportUploaded byshuhuan84
- Fb 25943948Uploaded byAnonymous 7VPPkWS8O
- SstvUploaded bygabicelbun
- Broadband Repeat Jamming of Monopulse Receivers in Missile Borne Tracking RadarUploaded byijcsn
- Single Sideband SystemsUploaded byFeiya Miguel
- 901325_chapter 10Uploaded bynarendra29000
- kenwood_krf-v7772d_vr-3080_sm.pdfUploaded byheidesw

- Ch5ModArithUploaded byBalamurugan Gopalakrishnan
- 05675277Uploaded byBalamurugan Gopalakrishnan
- V8_DSSSmodulationUploaded byBalamurugan Gopalakrishnan
- V8_DSSSmodulationUploaded byBalamurugan Gopalakrishnan
- V8_DSSSmodulationUploaded byBalamurugan Gopalakrishnan
- 10 WSN IntrodUploaded byBalamurugan Gopalakrishnan
- 06949978Uploaded byBalamurugan Gopalakrishnan
- a5-houUploaded byBalamurugan Gopalakrishnan
- 05708173Uploaded byBalamurugan Gopalakrishnan
- jnca2011Uploaded byBalamurugan Gopalakrishnan
- Jamming AttackUploaded byBalamurugan Gopalakrishnan
- Channel Surfing_defence Against DoSUploaded byBalamurugan Gopalakrishnan
- g 0261041046Uploaded byBalamurugan Gopalakrishnan
- Cryptography and Network Security 2Uploaded byBalamurugan Gopalakrishnan

- irconUploaded byAjay Goel
- CPM Data Required and Steps in Updating -15 Roll No. Construction Management TPUploaded byAtish Kumar
- biomedical instrumentationUploaded byNutan Niraula
- Orion Whats NewUploaded byAnthony Quintua Patino
- IntroUploaded bysapatitocaro
- Brosjyre Niton XL5Uploaded byJorge Gonzalez
- Handbook of International Electrical Safety PracticesUploaded byUrney Robern
- General Arrangement DockingPlanUploaded byiris2326
- Lab 1 Vensim TutorialUploaded byPard Teekasap
- Home M2M SurveyUploaded byNusrat Hussain Fatema
- YTC Technical Document (3 February 2015)Uploaded byLụa
- Prefixes 3Uploaded byahmad firdaus
- Lecture 3 Channel CapacityUploaded byFiras Abdel Nour
- ETDSP Technical DescriptionUploaded bywalkerproductions20009116
- UntitledUploaded byanon-579447
- sub duction Corrected BOQ_24_R2.xlsxUploaded byjalal
- Md4000 BrochureUploaded byMistah Cuteako
- True SpellfireUploaded byDavid
- 2.Fibonacci SearchingUploaded byanand
- Design of Pile FoundationUploaded byNarnindi Venkata Ramananda Sagar
- Rane Audio ReferenceUploaded byArtist Recording
- Enerpack PA133 L1252_kUploaded byGustavo Morales
- IPR 2Uploaded bypeweaje
- A Study of the Air Quality in Underground Car ParksUploaded byFairus Muhamad Darus
- Sulfone Processing GuideUploaded byjai1779
- msds n hexana.pdfUploaded byMuhamadJaganurdinEl-Sarawi
- Precast ConcreteUploaded bykannanperiyanan
- Introduction to SimulinkUploaded byAlemat Tesfay
- Bmw 323i 328i Owner s ManualUploaded byFran Aguilar
- Process Plant Simulation BabuUploaded bythakreneeraj