In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [quote="originator99"] ( trying to arrive at 11110000 if 0-3 are high.) [/quote]You need to realize that bit numbering goes from right to left. In other words: %11110000 <- Value 76543210 <- Bit number So 11110000 has 0-3 low, and 4-7 high. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=146108#m146152 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)