Avr Uart

Thread Starter

Alasttt

Joined May 13, 2015
68
Hi,

Just a general question about the avrs uart. To transmit some data say '1' (after setting all the registers) you jus write UDR0 = '1'.
The data sheet talks about sending 10 bits. Your data in 8 bit format plus a low start bit and high start bit. Does this mean that the PC will recieve 0100000001?

Assuming ASCII '1' to binary is 1000000.
And I then have to remove the 1st and 10th bit and convert the 8 bits back to ASCII to get my data ?

Thanks
 

Papabravo

Joined Feb 24, 2006
14,201
Hi,

Just a general question about the avrs uart. To transmit some data say '1' (after setting all the registers) you jus write UDR0 = '1'.
The data sheet talks about sending 10 bits. Your data in 8 bit format plus a low start bit and high start bit. Does this mean that the PC will recieve 0100000001?

Assuming ASCII '1' to binary is 1000000.
And I then have to remove the 1st and 10th bit and convert the 8 bits back to ASCII to get my data ?

Thanks
Yes you have it exactly correct. The UART will remove the framing bits and give you the 8 data characters.
 
Top