In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: You're getting four groups of two bits, right? Well, then, you're going to have to do a multi-step process: result = 0 result = result | (bitsIn1 << 6) <-- these are the highest bits result = result | (bitsIn2 << 4) result = result | (bitsIn3 << 2) result = result | (bitsIn4) <-- these are the lowest bits Please understand that this is pseudo-code to demonstrate the process; you'll have to clean it up to actually run it through the SX/B compiler. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=94462#m94498 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)