Menu

Binary to String Convert for RS232

Help
2009-11-09
2013-05-30
  • Nobody/Anonymous

    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

     
  • kent_twt4

    kent_twt4 - 2009-11-10

    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

     
  • Nobody/Anonymous

    thank you, that worked perfectly!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.