pawan kumar
Member level 4
Hi Friends,
I got this doubt when I had to capture the UART transmission through an oscilloscope as an assignment. My Understanding :
I have setup a baud rate of 9600bps with 1 start bit, 1 stop bit, no pairity bit and 8 data bits.
In this entire discussion, I refer to the Voltage levels and polarity of a Microcontroller (5V).
So, a single frame consists of 10 bits. On measuring, I get a data bit to be 104us wide.(Not sure about this).
My understanding is that Start bit is a High to low transition, lasting for a time interval which is more than the time of a single bit. Likewise, a stop bit is a low to high transition.
Every frame starts with a start bit and ends with a stop.
Now my question is :
1)What is the exact duration of start/stop bit? (What does it mean when they say 1 start bit and show its width exactly the same as data bits in a few tutorials)
2)Consider a case where D0.......D7 is this : 10001001 (0x91). here, how does the computer not get fooled on sensing the 1000? ( I am unable to distinguish this sequence with the start bit).
As soon as I am clear, I would like to post a nice diagram which would be helpful for other beginners like me.
Thanks,
Pawan
I got this doubt when I had to capture the UART transmission through an oscilloscope as an assignment. My Understanding :
I have setup a baud rate of 9600bps with 1 start bit, 1 stop bit, no pairity bit and 8 data bits.
In this entire discussion, I refer to the Voltage levels and polarity of a Microcontroller (5V).
So, a single frame consists of 10 bits. On measuring, I get a data bit to be 104us wide.(Not sure about this).
My understanding is that Start bit is a High to low transition, lasting for a time interval which is more than the time of a single bit. Likewise, a stop bit is a low to high transition.
Every frame starts with a start bit and ends with a stop.
Now my question is :
1)What is the exact duration of start/stop bit? (What does it mean when they say 1 start bit and show its width exactly the same as data bits in a few tutorials)
2)Consider a case where D0.......D7 is this : 10001001 (0x91). here, how does the computer not get fooled on sensing the 1000? ( I am unable to distinguish this sequence with the start bit).
As soon as I am clear, I would like to post a nice diagram which would be helpful for other beginners like me.
Thanks,
Pawan