Clear Filters
Clear Filters

QPSK Transmitter and Receiver in Simulink example question

3 views (last 30 days)
Hello everyone,
I am trying to study on how can I simulate the digital communication using this example "QPSK Transmitter and Receiver in Simulink".
I don't understand why in the example use data bit 2240 bits for 20 "Hello world ###" or 112 bits/message?
For my understanding. Each message is 15 char long (including 2 spaces) and ASCII characters are typically represented using 8 bits (1 byte) of information.
So, It should be 8*15 = 120 bits/ message ?
There is any reason for this? or I just misunderstood the ASCII representation concept?
Best Regards,
Fumihiko Sato

Accepted Answer

Naren
Naren on 28 Feb 2023
The original ASCII table is encoded on 7 bits and extended ASCII table uses 8-bit representation. However, in this example as the text doesn't contain any extended ASCII characters 7 bits are used.
Follow the steps to find out the bit representation used:
  1. Go to the Simulink model of QPSK Transmitter.
  2. Double click on the bit generation block.
  3. Look at the properties of "Signal from Workspace" block.
  4. A parameter named "Samples per frame" will contain the information on number of bits transmitted.
You can try changing the bit representation to 8 bits by editing the 'Samples per frame' parameter.
The length of the text is not 15, it will be 16 which includes the end character.
length = 16;
ASCII_bit_representation = 7;
thats '16*7 = 112 bits/message'.
no_of_messages = 20;
no_of_bits = 20*112 = 2240 bits.
Hope this resolves your problem.
  1 Comment
Fumihiko Sato
Fumihiko Sato on 1 Mar 2023
Dear Naren,
Thank you for your explanation. That's resolved my question.
Really appreciate your help.
Best Regards,
Fumihiko Sato

Sign in to comment.

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!