I have a modulator that through an inductive link, I send my ASK modulated data to the secondary coil and on the secondary part, with some circuit I detect my data, now I want to compare two transmitted data and received data together and calculate bit error rate, as a transmitted data I put an LFSR circuit in the transmitter circuit and use PBRS5 (a pattern of random data producer) .I think that I need some digital electronics information that determine to me how to get data and compare it to the transmitted data. I used serial port for example RS232 to get data. but because of start and stop bit of serial port it was not true(because my random data is not in serial format, it is millions bits of random). so what port should I use and how calculate the bit error rate. I want a true and simple method to calculate this parameter practically.