Saturday, 3 June 2017

Amiga A1200 Real-time Clock Module (RTC)

The Amiga 1200 doesn't have a battery backed real-time clock fitted by default.  It's shown in the schematics as an optional item but was never installed in any of the board revisions to my knowledge.

Some trapdoor expansions have a battery backed RTC fitted but I don't have one as yet.  I opted for a small battery backed RTC that's installed on the clock header next to the Kickstart ROMs.  I went for the Individual Computers RTC as I particularly like the products Jens produces.

Here is the board...

A1200 battery backed real-time clock module

And here it is installed in an Amiga 1200 with a Rev 1A board.  This 1A board has the full width header pins installed so the board is installed using the right most pins.


A1200 with battery backed real-time clock fitted

Firing up the Amiga I was able to set the time & date and save it to the RTC with "setclock save".  AmigaOS was able to see the fitted RTC and read back the correct time/date with "setclock load".

However, the following day when I started up the Amiga, the clock had jumped back to an earlier date as shown below.  The 3.1 ROM behaviour appears to be loading the clock from the battery backed RTC module, but if it returns a default value because the hardware has reset, the OS instead uses the DATESTAMP of the boot disk instead, which in my case was the installation time of the hard disk drive device DH0.


Amiga setclock with failed real-time clock battery

As the 3V battery was brand new, I initially suspected the RTC had a failed oscillator and wasn't incrementing when the unit was powered off.  However, this is easy to test by writing the correct date/time to the RTC (setclock save) and then periodically reading it back (setclock load) and checking the OS clock with "date".  In this case the RTC was working fine but was losing it's settings when the Amiga was powered down which indicates a problem with the battery backup.

Removing the RTC board I measured good battery voltage (3V) but wasn't reading any backup voltage on the clock IC itself.  On closer inspection it appears the battery holder possibly wasn't soldered to the board properly as shown...

Re-solder the tabs on the battery holder
After the repair I was able to measure 2.4V on the clock IC (there's 0.6V drop across D1).  The Amiga now seems to remember its clock properly on a cold boot as shown.

Amiga setclock with correctly working RTC

No comments:

Post a Comment