Calculating Serial Baud Rate from Measured Value

Click For Summary
SUMMARY

The discussion focuses on calculating the baud rate of a serial transmission by measuring the time taken to send the ASCII character 'Z' over a serial port configured at 9600 baud. The measured time for the transmission was 937.5 microseconds, which translates to 9.375 x 10^-4 seconds. The user attempted to derive the time per bit by dividing the total transmission time by the number of bits sent, concluding that the bit rate is the inverse of the time per bit. The correct calculation for the baud rate confirms that the transmission adheres to the expected 9600 baud rate.

PREREQUISITES
  • Understanding of serial communication protocols
  • Familiarity with ASCII encoding
  • Basic knowledge of time measurement in microseconds
  • Concept of inverse relationships in mathematics
NEXT STEPS
  • Research the principles of serial communication and baud rate calculations
  • Learn about the impact of start and stop bits on transmission
  • Explore timing measurements in microcontroller programming
  • Study the differences between various baud rates and their applications
USEFUL FOR

Electronics students, embedded systems developers, and anyone involved in serial communication and data transmission analysis.

sparkie
Messages
51
Reaction score
30

Homework Statement


The problem is to calculate the baud rate of a serial transmission by measuring the length of time required to send the ASCII character 'Z' over a serial port. The serial port settings are 9600 baud with a start and stop bit, no parity and a data size of 8 bits.

Homework Equations


We were given no equation.

The Attempt at a Solution


My measured time to send the 8 bit ASCII character 'Z' was 937.5 microseconds. This is 9.375 x 10^-4 seconds. I took this time, and divided it by the 10 bits we sent over the port to get the amount of time required to send a single bit. Now I'm not really sure how I should get the number of its per second. I multiplied by 9600 bits to get 0.9, which is the length of time required to send 9600 bits at the rate of one bit every 93.75 microseconds, but I'm not sure where to go from here.
 
Physics news on Phys.org
For what it's worth, assuming a continuous stream of bits, the "time per bit" and "bit rate" are inverses of each other.
\mathrm{bit \ rate \ (bits/second)} = \frac{1}{ \mathrm{time \ per \ bit \ (seconds/bit)}}
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
15K
Replies
9
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
25K
Replies
2
Views
3K
Replies
1
Views
1K
Replies
2
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
3K