Have you noticed the lack of availability and prices of RTC chips lately? A simple DS1307 RTC is simply not available right now. Last year I purchased DS1307s for less than a buck. Now they are $4+ and on backorder. So I am looking into implementing my own RTC in an interrupt handler using AC line input to provide 60 Hz synchronization. I remember my office mate back in the dinosaur ages before RTCs were available coming up with a simple circuit which sampled 120 VAC line input and generated 8.33 ms DC pulses output. He borrowed this circuit from an old Intel 8048 app note. This output was fed into an 8051 interrupt where an interrupt handler implemented a firmware RTC. Evidently power generation stations must keep an average of 60 Hz over time so this provided an excellent accurate long term choice for a digital clock.
I remember his circuit used only simple passive components (resistors & capacitors) to produce this 5 VDC 8.33 ms pulse train. I remember an input capacitor isolating the AC input, but cannot remember how the 5 VDC pulses were generated.
Google has been of no help this afternoon. Does anyone have any suggestions on reviving this circuit? TIA.