UART Waveform
Type a character and see exactly what goes onto the TX line, from the start bit to the stop bit.
TXG0x47
HIGH (1)LOW (0)Slowed down: in reality this takes tens of microseconds
Loading the 3D scene
Send
Only letters, digits and symbols can be sent. Other characters do not fit in one byte.
Current frame
The yellow cell is the bit now arriving at the receiver.
Results
- Binary
- Bit time
- Frame time
- Max per second
Try this
- Bits leave the sending MCU and travel along the yellow wire to the receiver. Bright yellow is HIGH (1); dark blue is LOW (0).
- The line rests HIGH. The moment the START bit pulls it LOW, the receiver knows a frame has begun.
- Data bits go out b0 first, least significant bit first. Compare the "LSB first" line on the sender's screen with the order on the wire.
- Set parity to even and press Send: a P bit is added at the end of the frame.
- Change the baud rate and the bit time and frame time below change. At 115200 bps one character passes in about 87 µs.
How to read it
The line idles HIGH. The fall to LOW is the start bit, and the receiver uses that falling edge as its reference to sample each bit in the middle. The final stop bit is HIGH again, which lets the next start bit be recognised.
This lab is also available in Korean. More labs: all 3D labs.