Show HN: Apple II clock using interrupts from physical pendulum clock (github.com)
A clock app for my Apple ][ clone in 6502 assembly, using interrupts generated by an inductive proximity sensor and a physical pendulum clock. I wanted to polish the code a bit more before sharing (I especially dislike the self modifying code part), but the computer seems to have developed a hardware problem lately and it keeps crashing (bad RAM chip most likely), so I am sharing as is.
29 comments
[ 2.7 ms ] story [ 74.4 ms ] threadAlso, a heads-up to OP: the personal website linked from your GitHub account appears to be down.
example: https://electronics.stackexchange.com/questions/685779/elect...
And now I'm wondering how accurate someone could make a reference signal from a physical pendulum like this—or what strange quirks you could introduce into a system using such a 'weighty' clock source!
http://leapsecond.com/ten/
Here is a world record setting pendulum clock from a few years ago:
http://leapsecond.com/pend/clockb/
Precision pendulum clocks are a very deep rabbit hole.
> The Shortt was the first clock to be a more accurate timekeeper than the Earth itself; it was used in 1926 to detect tiny seasonal changes in the Earth's rotation rate. Shortt clocks achieved accuracy of around a second per year
If my math is right, thats about 30ppb
Say, weren't there some issues with interrupts on the Apple II, due to both the 6502 as well as buggy ROMs? Basically, none of the I/O in the stock system with Apple parts used interrupts whatsoever. Not disks, not serial communication.
Another problem was with in the original Apple IIe. Its firmware interrupt handler was not updated to handle the new auxiliary memory and 80-column video configurations.
ProDOS provided proper support for interrupts, even on older Apple IIs (needed for mouse-based GUI apps and realtime clocks), and the firmware was eventually updated in the IIc and Enhanced IIe.