Step 1 : Theory
The Simple 595 system is designed around a 74HC595N 8-bit shift register IC chip.
The 595 electronics are connected to the computers parallel (LPT) printer port with four wires:
*Clock signal that is sent to all the chips (SH_CP)
*Serial Data signal that is sent to the the first chip (DS)
*Storage Register Clock Input Data that is sent to all the chips (ST-CP)
*Ground
The Clock (SH_CP) signal keeps time like a metronome used by musicians to keep time.
The Serial Data (DS) signal tells the IC chip to grab the next 8 bits.
The Storage Register Clock Input (ST-CP) signal contains the data to instruct the channels to turn on or off.
In the example in Step 2, there are two 74HC595N IC chips connected to the parallel port of the PC (16 channels).
Summary:
All channels are off, then on the first scan, channels 0, 1, 12, 13, 14, and 15 are turned on. On the second scan, Channel 0 is turned off.
Details:
When DS pulses from the PC, you see that Output 0 and Output 1 on IC chip#1, goes high. Then IC chip #1 has determined that 8 pulses have past and it is time to pulse it's Q7' output which is connected to the next IC #2 chip's DS input. When the DS input of IC #2 gets a pulse from the Q7' output of IC #1, outputs 4, 5, 6, and 7 go high on chip #2. When the PC sends a DS pulse to IC #1 again, IC #1 reads the first eight bits from ST_CP and Output 0 on IC #1 turns off but output 1 stays on because it got a pulse and so on...........