I am sending 16-bit data (2 bytes) from one enhanced mid-range PIC to another using the EUSART module in each. I am asking for ideas to ensure that the two bytes are received and/or recognized in the proper order. I could establish two-way communication but want to avoid doing that for the present. Baud is 9600.
Some possibilities I have considered are:
1) Send one byte in duplicate;
2) Require that both bytes be received within a limited period (say 2.2 mS) with a delay between transmission of each pair (say 1 mS); and
3) Gate the transmission (say once every 5 mS) and require a period with no data (say 1 mS) to initiate a "true" read (very similar to #2 above).
Any other approaches? I am currently favoring approach #1.
Thank you.
John
Some possibilities I have considered are:
1) Send one byte in duplicate;
2) Require that both bytes be received within a limited period (say 2.2 mS) with a delay between transmission of each pair (say 1 mS); and
3) Gate the transmission (say once every 5 mS) and require a period with no data (say 1 mS) to initiate a "true" read (very similar to #2 above).
Any other approaches? I am currently favoring approach #1.
Thank you.
John