This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bit rate calculation from baudrate

Other Parts Discussed in Thread: CC430F5137

Hello,

I am using the cc430f5137 with a baudrate of 115200 and sampling the signal at 64Hz.

can someone explain me how to calculate bit rate.

Thanks.

  • Sorry, I don’t really understand what you need.

    For the end-to-end transfer, the baudrate is the same as the bitrate. On RF layer, where depending on the modulation, multiple bits are expressed by e.g. phase, the baudrate is less than the bit rate (by this ‘multiple bits’ factor). On a serial connection of TTL UART type, baudrate and bitrate are the same.
    Throughput, however, is a different thing. On a normal serial UART connection, throughput is only 80% of the bit (or baud) rate due to the overhead of start and stop bit. For RF, I don’t know. Maybe individual start and stop bits are unnecessary, but then there might be a preamble before a data block. And the software protocol may add additional overhead.

     The information of ‘sampling the signal with 64Hz) doesn’t help, as long as there is no information about what is sampled and how large the data per sample is.

    Also, there are two bitrates in your question. One you have, by picking 115200baud, and one you need, based on the (unknown) amount of sample data you want to transmit. Well, the second should be lower than the first, that’s for sure.

  • Sorry such not explaning the things clearly.Now I will explain them cleary here

    1)UART serial communication

    I am sampling the signal using a sampling rate of 64Hz and using a baudrate of 115200 to transmitt the collected data through UART serial line.

    2)RF communication

    The same method is used here as well(Sampling the signal with a sampling rate of 64Hz and using a baudrate of 115200 for trasnsmitting the collected data)

    The modualtion technique used is GFSK.

    From your reply, I understood that for the case of UART serial communication the bitrate is 115200bits/sec (same as the used baudarte=115200).

    Can I know how to calculte the bitrate for RF communication.

    Thanks.

  • stefan 12 said:

    The modualtion technique used is GFSK.

    [...]

    Can I know how to calculte the bitrate for RF communication.

    GFSK is two level modulation so raw RF bitrate is equal to RF symbol rate. Some radios have fixed configuration thus symbol rate, some have configurable RF parameters including symbol rate. For details please refer to RF transceiver documentation

  • stefan 12 said:
    From your reply, I understood that for the case of UART serial communication the bitrate is 115200bits/sec (same as the used baudarte=115200).

    Not exactly. The baud rate may be 115200 bps, but that includes the overhead of a start and stop bit (at a minimum). If we assume your configuration is 8 data bits and no parity as well, then the bit rate is 0.8 * 115200 (92,160 max theoretical bits per second).

    You usually need some protocol on top of the data to packetize your transmission, so that will further decrease the throughput available for the raw data on the link.

    You mention a sample rate of 64 Hz but don't say what that means. Are you sampling the binary logic value of a digital pin or are you talking about an analog input using the ADC10/ADC12 components. The former has quite low bandwidth requirements, the latter requires (realistically) 16 times that (even though it's only 10 or 12 bits, the UART is byte oriented, so at least 2 bytes if samples are sent over the link individually). If we assume ADC12 samples, then 16 bits * 64 samples/second  = 1024 bits per second, well within the range of what the UART can provide (even 2400 baud would work for that with no layered protocol).

**Attention** This is a public forum