RTC Implementation

I already had similar problems, it could be due to a failure in the pulses that enters a blockage or due to lack of microcontroller resources