I have recently bought some 74HC595N (datasheet) shift registers to play with using my Raspberry Pi. The Raspberry Pi has a general purpose clock that I think I should be able to make use of, however I am unsure how this would work.
Should I have to programaticaly tell the data pin to go high, then tell the clock pin to go high, then pull the clock pin low again just to shift a 1 into the register?
I have written some code that uses the standard GPIO pins to send the data pin either high or low and then pulse the clock to shift the bit into the shift register, which seems to be working (although it is acting a little strange sometimes which is why I'm asking if I have the right idea about using the clock?)
I feel that I've worded the question rather poorly, but I cant think how else to explain my issue. If you have any questions I'll do my best to answer them.
EDIT: I'm wondering now if it could be acting up because of my voltage levels. The data sheet says that if you are powering the chip using 4.5v the minimum HIGH voltage is 3.15v. I'm using 5v to power it (not listed on the datasheet). It also says that if you're powering it with 6v the minimum HIGH voltave is 4.2v, so maybe I'm just not hitting the voltage threshold occasionally? I'm still interested in how to use the clock correctly though.