Hi,
I recommend you to read through some "what is a communication protocol" tutorials / documents / internet sites..
In short:
To communicate you need
* an interface: like mouth, lungs, tongue, voice, air, ears .. In your case: this is the UART
(Often UART is falsely named as a protocol)
* a protocol: For human communication it is the language: like English, Mandarin, Spanish ... in your
There are many languages ... each has it´s good and bad .. and it´s the same with data protocols: there are many, each with good and bad.
A data protocol describes the meaning of the bits, whole bytes, or a set of bytes ... but also some communication specifics like a pause.
Equivalent to: tones, letters, words, sentences, signs ..and pauses.
itsdifficulttoreadwithoutspaces
it´s more simple to read with spaces
bu tits mor ehar dtorea dift hespac esarea tthewr ongpo sit ions
(you see what I mean?)
***
Your requirements:
* transfer speed
* what different messages do you like to send?
For example one message could be a single byte. Like 0x41. Which means the integer value of 65 and maybe representing a temperature.
But with a single byte you are limited to 256 different values.
AND you get into trouble if you want to send 65 maybe for representing a voltage of 65V.
So in your case .. if you just want to send text to a 2x16 display ... then the simplest way would be to just transmit the 32 characters in a row (no gap inbetween) then send a pause of let´s say 50ms.
example:
Code:
"First line Second line "[pause> 50ms]
This message needs to have exactly 32 bytes of data.
Klaus
added: Wikipeda list of automation protocols:
https://en.wikipedia.org/wiki/List_of_automation_protocols
Not all are UART based!!
Fun fact:
Fro a mircorcontorler ti si alomst imossipble ot raed scuh scmralbed txet, btu hmunas acn. ;-)