Although not in one place, the information you seek is within.

For information on code for a picbasic clock (keeping accurate time), see

http://www.picbasic.co.uk/forum/showthread.php?t=2129

For a discussion on using the hc595 for number display, see

http://www.picbasic.co.uk/forum/show...p?threadid=981

If you are open to different display options, you could use a MAX7219 instead of the H595 to drive your display. See for example,

http://www.picbasic.co.uk/forum/show...highlight=7219

You could buy a 4 digit LED display with drivers built in, see

http://www.picbasic.co.uk/forum/showthread.php?t=594

or a 4 Digit LCD display with the drivers built in, see

http://www.picbasic.co.uk/forum/showthread.php?t=1071

Also google search “hc595 clock picbasic” and “hc595 clock basic stamp” for other ideas.

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA