Electronic – Can we calculate the baud rate of RS232 communication from the TX output signal

rs232uart

Can we calculate the baud rate or communication speed of RS232 communication from the X output signal?

The below image is from an RS232 communication output signal. I took this picture with 0xaa, and the time period between highs is 100.us.

I heard that the external oscillator's frequency is 8Mhz. Can we calculate the baud rate from that?

Oscilloscope trace showing RS232 signal

Best Answer

It looks like you have about 2.4 bit times per division, which are 250 µs. That puts each bit time at 104 µs. Inverting that yields 9.6 kBaud. That's one of the standard baud rates, so this sounds quite plausible.