Hello to everyone, i read all the thread, but still have some questions about how these UART encoding system works...
1. I didnt fully undestand the UART system, and there isnt much material about how exactly the bits are sended, soo the main question is, the Start bit is a 0-1 transition, and the stop bit is...? It is an extra bit just to have a 1-0 transition?
2. I made the look-up table for the encoded numbers from 0 to F. It end up like this:
55h, 56h, 59h, 65h, 66h, 69h, 6Ah, 95h, 96h, 99h, 9Ah, A5h, A6h, A9h, AAh.
Is that right?
3.There is just those combinations of bits that are DC balanced(equal number of 0's and 1's), soo the sync and start bytes needs to be one of those in the look-up table?
4. Brian said that using 55h or AAh as a sync byte instead of A6h would not work soo well cuz when you switch to the data packages it would lost sync, but isnt both of them an encoded number? (assuming that my look-up table is right...)
5. Now to see if i understood what as been said here, to successfully send one byte of data from one point to other, using an RF link and the UART, i should make a data package like this : {Sync byte, Sync byte, Sync byte, Start byte, MSB-encoded, LSB-encoded}
Is that right?
Thank you for sharing you knowledge :-D