How to send raw hex data asynchronously using software UART
jamitchell
Posts: 8
in Propeller 1
Hello!
I have run into a bit of a road block where I am trying to send raw hex data from the Propeller using software UART in C. I am using a dprint statement and even though I tell it to format as a hexadecimal, it is sending it as ascii characters, which I think is due to the nature of the dprint. What is the best way to send raw hex asynchronously where it does not get converted to a ascii character?
Thanks in advance!
James
I have run into a bit of a road block where I am trying to send raw hex data from the Propeller using software UART in C. I am using a dprint statement and even though I tell it to format as a hexadecimal, it is sending it as ascii characters, which I think is due to the nature of the dprint. What is the best way to send raw hex asynchronously where it does not get converted to a ascii character?
Thanks in advance!
James
Comments
-Phil
Yes I mean raw binary
Examples: ...sends the byte $30 (0x30). If it lands on a terminal you will see "0".
...sends the two-byte string "30".
Keep in mind that all values in a computer are stored in binary format. Other notations, e.g. hex, are for humans.