In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: Your missing the Latch signal which occurs after the SHIFTOUT. [code] ' ------------------------------------------------------------------------- ' Device Settings ' ------------------------------------------------------------------------- DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 ID "SHIFTOUT" ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- Dpin PIN RA.0 OUTPUT ' shift data Cpin PIN RA.1 OUTPUT ' shift clock [b]Lpin PIN RA.2 OUTPUT ' latch it[/b] LEDs VAR RB TRIS_LEDs VAR TRIS_B ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- tmpB1 VAR Byte i VAR Byte ' ========================================================================= PROGRAM Start ' ========================================================================= Start: TRIS_LEDs = %00000000 DO FOR i = 0 to 255 SHIFTOUT Dpin, Cpin, LSBFIRST, i LEDs = i PAUSE 1000 [b]Pulsout Lpin, 1[/b] NEXT LOOP [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=457478#m458067 Need assistance? Send an email to the Forum Administrator at sysadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)