{"id":546,"date":"2011-09-03T15:04:04","date_gmt":"2011-09-03T15:04:04","guid":{"rendered":"http:\/\/www.raymaps.com\/?p=546"},"modified":"2022-05-31T08:52:30","modified_gmt":"2022-05-31T08:52:30","slug":"ber-of-64-qam-ofdm-in-fading","status":"publish","type":"post","link":"https:\/\/www.raymaps.com\/index.php\/ber-of-64-qam-ofdm-in-fading\/","title":{"rendered":"BER of 64-QAM OFDM in Frequency Selective Fading"},"content":{"rendered":"<p style=\"text-align: justify;\">The real benefits of OFDM become apparent in a frequency selective channel. The introduction of the cyclic prefix (guard period) allows us to remove the Intersymbol Interference (ISI) in the time domain and frequency domain equalization allows us to overcome the channel variations in the frequency domain.<\/p>\n<p style=\"text-align: justify;\">We consider a simple FIR filter for our channel model with coefficients ht=[0.8 0.54 0.24 0.10 0.04]. This is a simplistic approach since the channel coefficients are all real which means that all multipath components are co-phase. To model a more realistic channel we then introduce a uniform phase shift to all the channel coefficients.<\/p>\n<figure id=\"attachment_548\" aria-describedby=\"caption-attachment-548\" style=\"width: 633px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.raymaps.com\/index.php\/ber-of-64-qam-ofdm-in-fading\/lte_basics-2\/\" rel=\"attachment wp-att-548\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-548\" title=\"LTE Physical Layer Parameters\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/LTE_basics1.jpg\" alt=\"LTE Physical Layer Parameters\" width=\"633\" height=\"310\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/LTE_basics1.jpg 633w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/LTE_basics1-300x146.jpg 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><figcaption id=\"caption-attachment-548\" class=\"wp-caption-text\">LTE Physical Layer Parameters<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">We use an FFT size of 128 and cyclic prefix of 32 samples (16.67usec) in the simulation given below.<\/p>\n<pre lang=\"matlab\">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% FUNCTION TO SIMULATE THE PERFORMANCE OF 64-QAM OFDM IN STATIC FREQUENCY SELECTIVE CHANNEL\n% n_bits: Input, length of binary sequence\n% n_fft: Input, length of FFT (Fast Fourier Transform)\n% EbNodB: Input, energy per bit to noise power spectral density ratio\n% ber: Output, bit error rate\n% Copyright RAYmaps (www.raymaps.com)\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\nfunction[ber]= M_QAM_OFDM_fading(n_bits,n_fft,EbNodB)\n\nEb=7;\nM=64;\nk=log2(M);\nn_cyc=32;\nEbNo=10^(EbNodB\/10);\nx=transpose(round(rand(1,n_bits)));\nh1=modem.qammod(M);\nh1.inputtype='bit';\nh1.symbolorder='gray';\ny=modulate(h1,x);\nn_sym=length(y)\/n_fft;\n\nfor n=1:n_sym;\n    s_ofdm=sqrt(n_fft)*ifft(y((n-1)*n_fft+1:n*n_fft),n_fft);\n    s_ofdm_cyc=[s_ofdm(n_fft-n_cyc+1:n_fft); s_ofdm];\n    ht=[0.8 0.54 0.24 0.10 0.04];\n    Hf=fft(ht,n_fft);\n    r_ofdm_cyc=conv(s_ofdm_cyc,ht);\n    r_ofdm_cyc=(r_ofdm_cyc(1:n_fft+n_cyc));\n    wn=sqrt((n_fft+n_cyc)\/n_fft)*(randn(1,n_fft+n_cyc)+j*randn(1,n_fft+n_cyc));\n    r_ofdm_cyc=r_ofdm_cyc+sqrt(Eb\/(2*EbNo))*wn.';\n    r_ofdm=r_ofdm_cyc(n_cyc+1:n_fft+n_cyc);\n    s_est((n-1)*n_fft+1:n*n_fft)=(fft(r_ofdm,n_fft)\/sqrt(n_fft)).\/Hf.';\nend\n\nh2=modem.qamdemod(M);\nh2.outputtype='bit';\nh2.symbolorder='gray';\nh2.decisiontype='hard decision';\nz=demodulate(h2,s_est.');\nber=(n_bits-sum(x==z))\/n_bits\nreturn\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n<\/pre>\n<p style=\"text-align: justify;\">We also have accounted for the extra energy transmitted for the cyclic prefix in our signal to noise calibration.<\/p>\n<figure id=\"attachment_552\" aria-describedby=\"caption-attachment-552\" style=\"width: 583px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.raymaps.com\/index.php\/ber-of-64-qam-ofdm-in-fading\/64qam_ber_fading\/\" rel=\"attachment wp-att-552\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-552\" title=\"64-QAM OFDM BER\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/64QAM_BER_fading.jpg\" alt=\"64-QAM OFDM BER\" width=\"583\" height=\"432\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/64QAM_BER_fading.jpg 583w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2011\/09\/64QAM_BER_fading-300x222.jpg 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><figcaption id=\"caption-attachment-552\" class=\"wp-caption-text\">64-QAM OFDM BER<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">It can be seen that up to 12dB the BER performance for the two cases is quite similar, however, after 12dB the BER for the real case drops significantly whereas the BER for the complex case goes down in linear fashion. The error rate can be significantly improved by employing channel coding and antenna diversity schemes.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The real benefits of OFDM become apparent in a frequency selective channel. The introduction of the cyclic prefix (guard period) allows us to remove the Intersymbol Interference (ISI) in the time domain and frequency domain equalization allows us to overcome the channel variations in the frequency domain.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189,11,18,219,15],"tags":[34,114],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-5g","category-berp","category-lte","category-modulation","category-wimax","tag-ber","tag-lte"],"_links":{"self":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":24,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":4254,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions\/4254"}],"wp:attachment":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}