RTC guide?

Current solutions and designs.
User avatar
Bikerbob
Posts: 222
Joined: Fri Nov 10, 2017 7:30 pm
Location: Mississauga, ON
Contact:

Re: RTC guide?

Post by Bikerbob » Sun Nov 10, 2019 2:29 pm

SO.... is it just me? OR am I getting the sense from all these postings that coming up with a guide? or making a wiki page or something might be a really good idea.

Having a new person, try something.. set the cock.. reboot (which we have to often) have it then write the new files with order file dates than the last ones.. and not understanding why an ST.. is not an STE, or not a MegaST when it comes to this.. OH and this device or that device.

I am totally for helping.. with what I can. I guess I could start writing and ask for corrections or contributions??

James

tzok
Posts: 192
Joined: Sat Dec 30, 2017 2:27 pm

Re: RTC guide?

Post by tzok » Sun Nov 10, 2019 2:44 pm

stephen_usher wrote:
Sun Nov 10, 2019 1:04 pm
A complication to all this is that different TOS versions seem to use different start dates.
This is due to the fact that TOS 1.0 doesn't support IKBD clock through GEMDOS functions at all, and won't initialize GEMDOS clock from IKBD no matter what, TOS 1.2-1.4 won't initialize GemDOS clock from IKBD unless CONTROL.ACC is loaded, TOS 1.6-1.62 need STE_FIX.PRG for that, and TOS 2.06 initializes GemDOS clock from IKBD by default. According to Peter Putnik this is a bug in 1.x TOS as they all contain code required to initialize GemDOS clock from IKBD, but this code is not executed.

User avatar
rubber_jonnie
Moderator
Moderator
Posts: 2683
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: RTC guide?

Post by rubber_jonnie » Sun Nov 10, 2019 6:37 pm

tzok wrote:
Sun Nov 10, 2019 11:11 am
I'm not sure if Ricoch chip in MST is Y2K compilant. If it doesn't work you either have to use some autoloaded software patch or a TOS patch to use it. Alternative is to disable it and build/buy another RTC solution (UltraSATAN, ComosEx).

Ricoh RP5C15 for sure uses only 2 digits for year in BCD format, but I'm not sure if it could handle pseudo-BCD years like B9.
Yep, it's a Ricoh RP5C15, just had a look under the hood.
Collector of old Atari things:
800XL + Ultimate 1MB, 2x 1010 cassette, 1050 + Happy mod, 65XE (128k +APE Warp) & XC12, SIO2SD, 2600jr, 7800 and Lynx II
Atari 520ST (1Meg), 1040STF long button floppy, 2x 1040 STFMs + Gotek, 2x 4160STE with 32Mhz booster, ROM switcher, Mega ST1, Mega ST4, not to mention various bare ST boards for testing including a PAK 68/2 :)
Plus the rest..
Amiga stuff, Mac stuff, Sinclair stuff etc...
www.electronicnothingness.co.uk

stephen_usher
Trusted Guru
Trusted Guru
Posts: 620
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: RTC guide?

Post by stephen_usher » Sun Nov 10, 2019 6:41 pm

This shouldn't affect the clock setting code though. The clock is read correctly from the UltraSATAN it's just that when it sets the clock the year is 9 years in the future when running TOS 2.06.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

tzok
Posts: 192
Joined: Sat Dec 30, 2017 2:27 pm

Re: RTC guide?

Post by tzok » Sun Nov 10, 2019 8:36 pm

I have checked it, and I can confirm this bug in UltraSATAN clock. It tries to set IKBD clock with year 0xB9 and fails to do this, then he reads IKBD clock and receives 0xC8 (no matter which year after 0x99 you'd set). I've tested this on TOS 2.06 and 1.62.

With my IKBD RTC supplicant module it works correctly (but it has no sense, as my module basically is a battery backed-up RTC).

User avatar
Bikerbob
Posts: 222
Joined: Fri Nov 10, 2017 7:30 pm
Location: Mississauga, ON
Contact:

Re: RTC guide?

Post by Bikerbob » Mon Nov 11, 2019 2:10 pm

Ok, I am going to take everything in here so far and start writing a guide. please help me with corrections and omissions.

James

User avatar
Bikerbob
Posts: 222
Joined: Fri Nov 10, 2017 7:30 pm
Location: Mississauga, ON
Contact:

Re: RTC guide?

Post by Bikerbob » Tue Nov 12, 2019 5:03 am

tzok wrote:
Sun Nov 10, 2019 8:36 pm
I have checked it, and I can confirm this bug in UltraSATAN clock. It tries to set IKBD clock with year 0xB9 and fails to do this, then he reads IKBD clock and receives 0xC8 (no matter which year after 0x99 you'd set). I've tested this on TOS 2.06 and 1.62.

With my IKBD RTC supplicant module it works correctly (but it has no sense, as my module basically is a battery backed-up RTC).
So in reading your post.. are you suggesting there is a fix? or your just saying your confirming a bug. Weird since this is THE most popular HDD replacement for the Atari ST line that no one has fixed this bug.

There is also this Y2k.prg program.. that sets things 20 years back then forward.. but I am not sure when and when not to use it?

James

tzok
Posts: 192
Joined: Sat Dec 30, 2017 2:27 pm

Re: RTC guide?

Post by tzok » Tue Nov 12, 2019 6:16 pm

There is a (kind of) fix - a plug in module that intercepts RTC calls to the IKBD and substitutes own responses to them. In my case this module not only makes IKBD RTC Y2K compilant, but also has the battery backed up RTC, so using one from UltraSATAN together with it is obsolete.
viewtopic.php?t=544

User avatar
ari.tao
Posts: 45
Joined: Tue Sep 18, 2018 8:50 am

Re: RTC guide?

Post by ari.tao » Sun Nov 17, 2019 10:06 am

Recently there were made some new clocks of different fashion, have a look into
https://forum.atari-home.de/index.php/t ... 263.0.html
Unfortunately the type I liked to prefer, namely the GPS one, seems not to work in my environment, may be the GPS signal doesn´t find it´s way into my cave.
Falcon, TT & some more

User avatar
Bikerbob
Posts: 222
Joined: Fri Nov 10, 2017 7:30 pm
Location: Mississauga, ON
Contact:

Re: RTC guide?

Post by Bikerbob » Sun Nov 17, 2019 3:53 pm

tzok wrote:
Tue Nov 12, 2019 6:16 pm
There is a (kind of) fix - a plug in module that intercepts RTC calls to the IKBD and substitutes own responses to them. In my case this module not only makes IKBD RTC Y2K compilant, but also has the battery backed up RTC, so using one from UltraSATAN together with it is obsolete.
viewtopic.php?t=544
Thanks Tzok, I have started reading your thread.. funny that I just bought 6 days ago one of those Aduro RTC modules thinking I could make something out of it.. not your exact one.. but I think they all have the same 5pin output. Anyway.. I will most definitely add that to the RTC guide as a fairly easy DIY solution for most people.

James

Post Reply

Return to “RTC (Real time clock)”