How can i convert my binary values to strings so i can write to serial as text? i have a variable defined as a word, couting up and need to output it as a string.
DIM time as Word
XMIT_PRINT ("hello") ' works fine
XMIT_PRINT (time) 'doesnt work
Thanks in Advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you just need to use the "Bin2ascii" sub, and make sure it disassembles the word value. Also needed is the XMIT_RS232 sub with both provided in the contributers alternate soft usart routine post.
Bin2ascii time
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI,
How can i convert my binary values to strings so i can write to serial as text? i have a variable defined as a word, couting up and need to output it as a string.
DIM time as Word
XMIT_PRINT ("hello") ' works fine
XMIT_PRINT (time) 'doesnt work
Thanks in Advance
I think you just need to use the "Bin2ascii" sub, and make sure it disassembles the word value. Also needed is the XMIT_RS232 sub with both provided in the contributers alternate soft usart routine post.
Bin2ascii time
thank you, that worked perfectly!