I've attempted to replicate the setup of the 595 tutorial with LEDs, and I'm having a problem. It was going through the count-up, but flashing in between each LED display. I tried to figure out why it was doing it, and I realized that what's happening is that only every other byte shifted out is being displayed, and all the LEDs are off for the byte in between. So, for example, when it's counting up from 0 to 255, only the odd numbers are displayed. The LEDs are all connected, though, because if I set up the for loop to only show even numbers then they get shown, but only every second even number. Similarly, flashing all the LEDs works.
I don't think it's a software problem, because I've both written my own routines, and cut and paste the demo code from the tutorial page. Anybody have any idea what could be causing this?
Oops! I meant improperly (which, in this case, was a euphemism for "not connected at all").
Now I'm confused: I went out and drank a lot of wine, came home and debugged a problem I couldn't fix before having the wine, and then reported it incorrectly afterwards. Is the moral of this story to not drink and work on electronics, or that drinking actually helps debugging?
I'd like to know how it was connected or not. I assume you mean the vcc was disconnected. That would be odd. I would suspect it was getting power from the serial input somehow.
And I've done the tearing my hair out and then quitting only to come back....much later and fixing it. It convinced me to just leave something alone for a while.