In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJ Allen wrote: The shift register data advances on the LO-to-HI (positive-going) transition of the clock. CLK should be set = 0 from the start. Where you have: CLK = 0 CLK = 1 value1 = value1 >> 1 NEXT NEXT [code]Change this to: [code] CLK = 1 CLK = 0 value1 = value1 >> 1 NEXT NEXT [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=273480#m275823 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)