Shop OBEX P1 Docs P2 Docs Learn Events
32 bit number simultaion — Parallax Forums

32 bit number simultaion

ArchiverArchiver Posts: 46,084
edited 2000-06-06 23:10 in General Discussion
I am needing to send another program via serout
a positive number greater than 65535 in 4 bytes.
Any ideas would be appreciated.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-06-06 23:10
    > I am needing to send another program via serout
    > a positive number greater than 65535 in 4 bytes.
    > Any ideas would be appreciated.

    In what form is the number you want to send out? Double precision binary?

    serout spin,baudmode,[noparse][[/noparse]most.byte1,most.byte0,least.byte1,least.byte0]

    sends 32 bit, 2-word, four byte number, most significant word first.
Sign In or Register to comment.