Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!grr From: grr@cbmvax.cbm.UUCP (George Robbins) Newsgroups: comp.sys.amiga Subject: Re: Amiga 500/2000 Clock... Message-ID: <1761@cbmvax.cbmvax.cbm.UUCP> Date: Mon, 27-Apr-87 03:10:25 EDT Article-I.D.: cbmvax.1761 Posted: Mon Apr 27 03:10:25 1987 Date-Received: Tue, 28-Apr-87 01:03:50 EDT References: <2300005@hpsadla.HP> Reply-To: grr@cbmvax.UUCP (George Robbins) Organization: Commodore Technology, West Chester, PA Lines: 36 In article <2300005@hpsadla.HP> jimh@hpsadla.HP (Jim Horn) writes: > > Does anyone know how the battery-backed real time clock in the Amiga >500 and 2000 is addressed? I assume it is used to set the interrupt-driven >clock used by the operating system after /Reset, but am curious about where >the code resides - is it called by the s/Startup-Sequence, or is the code >in the Kickstart ROMs? The clock code is present only in a utility invoked by that startup sequence. It sets the normal system time of day which rules until the utility is invoked again. > Since I'm kludging up a 2Meg RAM board with a clock on it, I'd like it >to look the same as the 500's (and 2000's) clock to the system. We now >have a more complete standard in the new machines, and I'd like to follow >it (yes, I have the old Schematics & Expansion Specs). The clock chip is an OKI MSM6242B Bus Attached Clock Chip. It is selected in the address range starting at DC0000, however the four address lines are attached to A2 thru A5 and the data lines are attached to D0 thru D3 which (if I'm not confused) means the registers are addressed at DC0001, DC0005, DC0009.... On a machine not equipped with a real-time clock, these locations will normally be occupied by a tiling of the custom chip registers. This means a certain degree of care is needed in verifying the presence of the clock. Hardware-wise, to make your clock chip appear at this location, you will either have to use the (officially not supported for this purpose) OVR line or modify the system decode PALs. -- George Robbins - now working for, uucp: {ihnp4|seismo|rutgers}!cbmvax!grr but no way officially representing arpa: cbmvax!grr@seismo.css.GOV Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)