Welcome, Guest. Please login or register.

Author Topic: (moved) Battery backed up clock won't work!  (Read 7082 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: (moved) Battery backed up clock won't work!
« on: February 24, 2010, 08:00:08 AM »
Quote from: ShaneAirplane;544793
Any other ideas as to why it will not work.


Perhaps it's just stuck. Open a shell window and enter Setclock Reset. If it still does not work, try this: http://thomas-rapp.homepage.t-online.de/download/RestartClock.lha

Offline Thomas

Re: (moved) Battery backed up clock won't work!
« Reply #1 on: February 24, 2010, 09:15:23 PM »
One feature of the clock chip is a register which will cause the clock to stop if it is set to 1. On the other hand the method to detect if a clock is present is to read the time once, wait a second and then check if the time has changed. This means if a program stops the clock (maybe by accident), it is no longer recognised until the register is reset to 0 (which will not be done by the OS because the OS thinks there is no clock).

Whatever, I didn't know all that when I wrote the RestartClock program. It just uses the brute force method: it fills the entire address space of the clock with zeroes. It does not care if there is a clock or not.

Offline Thomas

Re: (moved) Battery backed up clock won't work!
« Reply #2 on: March 01, 2010, 07:47:01 AM »
The program was written for WB 1.3, it uses setclock opt load instead of setclock load. Don't worry, just check if the clock is running again.