Hello Sougata,

I have got the code up and working for the HC595 and is working good. The clock is up and running and I can enter the alarm timing and trigger segment perfectly, so the problem is not the code help in driving the HC595 but some logic help in setting the clock with 3 pins and 4 digits for Hours and Mins.

I would be working on setting two digits at a time which would be for Hours and Mins, Blank the other two digits so that it does not confuse. 1 switch to shift between Hours , mins , Ack change and come out of the setting mode and the other two switches simply to incr , decr the values of Hours and Mins.

Just wondering if there was any other way of setting the clock with three buttons and 4 digits.

regards