In the previous article we saw about how Passband BPSK modulation and demodulation can be done. This concept is extended further to simulate the performance of BPSK modulation technique over an AWGN. Note that this is a baseband simulation of BPSK modulation and demodulation. Baseband simulation are faster and yields performace results same as that of pass band simulation.
Transmitter:
For the BPSK modulation , a series of binary input message bits are generated of which ’1′s are represented by 1v and ’0′s are translated as ‘-1′ v (equivalent to NRZ coding as discussed in the previous post).
AWGN channel:
For BPSK modulation the channel can be modeled as
where y is the received signal at the input of the BPSK receiver, x is the modulated signal transmitted through the channel , a is a channel amplitude scaling factor for the transmitted signal usually 1. ‘n’ is the Additive Gaussian White Noise random random variable with zero mean and variance σ2.
For AWGN the noise variance in terms of noise power spectral density (N0) is given by,
For M-ARY modulation schemes like M-PSK including BPSK, the symbol energy is given by,
where Es =Symbol energy per modulated bit (x), Rm = log2(M) , (for BPSK M=2, QPSK M=4, 16 QAM M=16 etc..,). Rc is the code rate of the system if a coding scheme is used. In our case since no coding scheme is used Rc = 1. Eb is the Energy per information bit.
Assuming Es=1 for BPSK (Symbol energy normalized to 1) Eb/N0 can be represented as (using above equations),
From the above equation the noise variance for the given Eb/N0 can be calculated as
For the channel model randn function in Matlab is used to generate the noise term. This function generates noise with unit variance and zero mean. In order to generate a noise with sigma σ for the given Eb/N0 ratio , use the above equation , find σ, multiply the ‘randn’ generated noise with this sigma , add this final noise term with the transmitted signal to get the received signal.
Receiver:
BPSK receiver can be a simple threshold detector which categorizes the received signal as ’0′ or ’1′ depending on the threshold that is being set. Calculation of Theoretical BER for BPSK over AWGN is discussed here.
Matlab code:
Simulation Result:
BER Vs Eb/N0 for BPSK
See Also:
Recommended Books
Mathuranathan
Mathuranathan Viswanathan – Founder and Author @ gaussianwaves.com which has garnered worldwide readership. He is a masters in communication engineering and has 7 years of technical expertise in channel modeling and has worked in various technologies ranging from read channel design for hard drives, GSM/EDGE/GPRS, OFDM, MIMO, 3GPP PHY layer and DSL.
He also specializes in tutoring on various subjects like signal processing, random process, digital communication etc..,He can be contacted at support@gaussianwaves.com
Your Thoughts ?
1 comments