I tried to make 2 buttons that can fill a shift register with bits. I work it out in Proteus before soldering.
Description:
- one can press one of two buttons.
- pressing the left button shifts in LOW (D) (red LED lights up).
- the right button shifts in HIGH (D) (green LED lights up).
- both buttons set CLK to HIGH (CLK) (blue LED lights up).
VCC is 5V
switch circuit:
shift-register:
Datasheet SN74LS595
The buttons seem to work, however, (in Proteus) when pressed HIGH at start the first bit is always missing in the shift register (it doesn't go to HIGH) the second bit shifted in (HIGH or LOW) appears . when pressed LOW at start, or a sequention of lows, do not appear.
It only deliver expected results when I start with a HIGH. Is there a way to solve this, has it something to do with the latching?