I am trying to read 16bit integers sent to an Analog Discovery 2 over UART using the Protocol section in waveforms. The integers are sent in two bytes, 8 bit high byte then 8 bit low byte.
When I set the RX to binary and the bits to 8, I can receive all the bytes correctly. When I set it to receive 16 bits, then errors occur because I am sending the data as two 8 bit messages.
I want to be able to set RX to decimal and have the Protocol correctly convert two 8 bit transmissions to a single 16 bit decimal integer. Is this possible?
Note: I cannot send a full 16 bit message, my microcontroller registers are limited to sending 8 bits at a time. I only want to do this so that I do not have to manually change the pairs of 8 bit values into 16 bit decimals.
Example:
Correct values in decimal: 2 64 128 2048
RX Binary, 8 bit:
00000000 00000010 00000000 01000000 00000000 10000000 00001000 00000000
RX Binary, 16 bit:
0000100100000000 0000000100000000 0000010000000001 0000000100001000
RX Decimal, 8 bit: 0 0 2 0 64 0 128 8 0
RX Decimal, 16 bit: 0 2304 256 1025 264