the clock drifts significantly
Is there a relation between the amount of time the machine is off, and the amount of time that the clock is behind by?I will set the time, turn off the machine, turn it on again later, and the clock will be the wrong time, behind by several hours or more.
Wouldn't a bad crystal also affect the time while the computer is on?Assuming the battery is good, then I suspect the crystal. That is Y1 right next to the RTC (real-time clock)
Wouldn't a bad crystal also affect the time while the computer is on?
Yesa normal 3v CR2032 is adequate
When the computer is turned on, the clock is kept in a low memory global which is advanced by the interrupt timer. Then, it is written back to the clock chip at shutdown.
I'm a bit confused here also. I'm understanding the responses from @cheesestraws and @David Cook as indicating that the crystal has no bearing on time keeping when the computer is on. That is different than my experience (on the Macintosh Classic) (https://68kmla.org/bb/index.php?thr...r-needs-to-be-jump-started.35352/#post-382220). In that case, I had a Mac where the clock would not increment (when the computer was on) unless the crystal was essentially jump started. I don't recall if I ever got back to finalizing a repair on that machine - I bought some flux cleaner thinking that maybe some residual flux was messing with the oscillator circuit capacitance but I don't think I never followed through.Without the intent to derail lesca’s thread, what sort of failure would cause the inverse condition? Meaning, perfect time is kept while the machine is off but the clock is frozen while the machine is on?
I'm a bit confused here also. I'm understanding the responses from @cheesestraws and @David Cook as indicating that the crystal has no bearing on time keeping when the computer is on.
Thanks @David Cook. I was reading your response in the context of what you had quoted ("Wouldn't a bad crystal also affect the time while the computer is on?") to mean that, generally no, a bad crystal would not affect the time when the computer is on. I may have misunderstood, and I am still not clear on whether this is the case or not. If, for example, the ~32khz crystal from the computer we're talking about here (Macintosh SE) was removed from the motherboard completely, would the clock (i.e. the clock in the menu bar, or General CDEV) still advance after the computer boots? I've been trying to Google an answer here without success.Hi @superjer2000,
My actual quote was a little more general: "When the computer is turned on, the clock is kept in a low memory global which is advanced by the interrupt timer." Depending on the Mac hardware, that interrupt timer may be generated by a number of different sources. The Mac Classic has significantly redesigned hardware. Perhaps the interrupt is generated by the RTC/crystal on the Mac Classic? If that's what you're seeing -- then that makes sense.
For that example on a Mac Classic, perhaps a broken trace between the RTC and a VIA (or similar chip) is preventing the interrupt and thus the clock stops advancing when running. But, otherwise, the RTC may be running fine and sends an updated time when the computer first asks for it when first turned on. (If the time doesn't advance when turned on, that non-advanced time will be written back to the RTC on shutdown.) In otherwords, maybe the communication lines and crystal are working, just not the interrupt line.
- David
Well, this is embarrassing. Seems I had installed a dead battery! Not sure how it was keeping any settings at all with <1v, but I went through my stock and found that a few had gone flat. Found one with a little under 3.2v output, and it now seems to be keeping time when off.
I will check one more time leaving it off overnight, but that seems to have been all that was wrong. D'oh!