1. Alasttt

    Thread Starter Member

    May 13, 2015
    68
    0
    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
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,164
    1,797
    Yes you have it exactly correct. The UART will remove the framing bits and give you the 8 data characters.
     
Loading...