Share

Great Cow BASIC

Subscribe

Binary to String Convert for RS232

  1. nobody

    2009-11-09 11:55:15 UTC

    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 XMITPRINT ("hello") ' works fine XMITPRINT (time) 'doesnt work

    Thanks in Advance

  2. 2009-11-10 04:58:32 UTC

    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
    
  3. nobody

    2009-11-10 09:32:08 UTC

    thank you, that worked perfectly!

< Previous | 1 | Next >

Add a Reply

You can use Markdown syntax in your reply.

Preview

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.