In SX Microcontrollers, SX/B Compiler and SX-Key Tool, stef wrote: Hi I'm working on a little project that is reading pulses on an input an generating pulses after modification on an output. I'm using shift to read from a pin into an byte. I'm using also shift to shift a byte back out to an other pin. Now my question. Is thier a way to schift from on byte to an other byte. (not to a hardware output) example. myvar = 10001100 ( this can be any number depending on what I read) I want to create 8 byte var where the first is bit 1 of myvar (0) and the last is bit 8 of myvar (1) (var1=0, var2=0, var3=1, var4=1, var5=0, var6=0, var7=0,var8=1) This I need in a routine that when I read myvar i can automatic change var1 until var8 depending on the value in myvar. Is this possible in a sx28 using sx/b??? stef ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=168499 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)