This program demostrates the use of the DS1302 RTC. Coded for the ATmega8 the RTC is initialized on a certain time and on the port B of the mcu seconds can be apreciable
References: http://salvador.maciashernandez.com/Escolares/AstraZeneca/DS1302/DS1302.html