In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: Jon / Bean and others, I deeply appologize for this embarassing moment. I found out the problem as operator error for the most part. The BS2 stamp (Experiment 23) shows the following: Clock CON 0 ' shift clock (74HC595.11) DataOut CON 1 ' serial data out (74HC595.14) Latch CON 2 ' output latch (74HC595.12) and the SX SHIFTOUT program shows the following: Dpin VAR RA.0 ' shift data Cpin VAR RA.1 ' shift clock Latch VAR RA.2 ' latch outputs No one noticed this difference including myself. After concentrating on wires for 595 pins 11, 14 and 12 for pins 0, 1 and 2 - I failed to see that the Dpin and Cpin are reversed as compared to the BS2 program. I should have caught something so simple. When I changed the SX code to read: Dpin VAR RA.[b]1[/b] ' shift data Cpin VAR RA.[b]0[/b] ' shift clock Latch VAR RA.2 ' latch outputs It worked fine as it should. Jon, You were right about the clock line as this is when I focused on the clock and saw the problem. Once again - I appologize for all inconviences. Thanks to all Timothy Gilmore PS: I hope I did not kill too much of your Holiday weekend as it did mine. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=97992#m98147 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)