In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: In your mainloop call @get_byte ;received the byte from location "00" mov cmd,byte call @get_byte ;dummy for cls?? i don't know why , but this is working mov w,#$00 ;same as the comment above call @send_byte ; you assume the pink only sends 1 byte after you send it the command !NB0R00 but the pink transmits all bytes from var00 up to a stored binary 0 (the CLS character). So if var00 holds "dog",0 then 4 bytes are returned to the sx. Actually, when no CLS is stored in var00, pink continues to send bytes from the next variable and so on, until it encounters a binary 0. You send a CLS character after you received two bytes. I assume the CLS character terminates the read command but I am not sure about that. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=120259#m120264 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)