BER Calculation of BPSK for custom demodtalor IP core

1 ビュー (過去 30 日間)
brahmi shah
brahmi shah 2021 年 9 月 13 日
コメント済み: brahmi shah 2021 年 9 月 16 日
Hello All,
I am new to MATLAB. I have my own BPSK demodulator IP core. I have transmitter which transmit the data at 4.8ksps and modulate the signal through channel and noisy signal becomes the input to reciever. Receiver demodulates the signal and producing sequence of recovered bits. Up to this all process done through the instrument and the RF+FPGA board. I just want to comapre the received bits to be transmitted bits and tally up the errors using matlab. How could i do this?
Kindly guide me.
Thank you.

回答 (2 件)

Awais Saeed
Awais Saeed 2021 年 9 月 13 日
編集済み: Awais Saeed 2021 年 9 月 13 日
use biterr() and semilogy() to find bit errors and to plot BER curve
close all
% generate data to send
x = 4*rand(1,10000);
x(x<=3) = 0;
x(x>3) = 1;
% Add AWGN, compute BER for the received data
for i=1:length(SNR)
y = awgn(x,i);
% Threshold detection
y(y<=0.5) = 0;
y(y>0.5) = 1;
% Compute bit error of received and transmitted data
[num(i),err(i)] = biterr(x,y);
% plot BER curve

brahmi shah
brahmi shah 2021 年 9 月 13 日
編集済み: brahmi shah 2021 年 9 月 13 日
Thank you for your reply.
I want to verify my demodulator ip by calculating ber of TX and RX data. And i have one fix pattern (1011010110) which is going to be transmit by instrument and recieved by board which has demodulator ip. for this should i use above mentioned code by you?
  6 件のコメント
brahmi shah
brahmi shah 2021 年 9 月 16 日
As you said (% do your operations on x) what should i do here? i am not getting any idea
Kindly guide me
Thank you.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by