In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: That looks okay, except that you should shift the byte BEFORE storing the new bit. for counter = 0 to 7 string = string SHR 1 string.7 = RA.0 pauseus 833 next Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=187628#m187637 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)