Reading & write to RTC 12887 ?

General discussions or ideas about hardware.
User avatar
Icky
Moderator
Moderator
Posts: 1375
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: Reading & write to RTC 12887 ?

Post by Icky » Thu Jun 27, 2019 7:37 pm

exxos wrote:
Thu Jun 27, 2019 5:36 pm
Why is it always me who runs into issues when the datasheets wrong :lol: :roll:
You just have the knack of finding out all these weird issues.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Thu Jun 27, 2019 7:55 pm

Icky wrote:
Thu Jun 27, 2019 7:37 pm
You just have the knack of finding out all these weird issues.
Does it also count that in hisoft basic, the classic "X,Y" order is actually "Y,X"... that drove me nuts as well :roll:
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
PhilC
Moderator
Moderator
Posts: 1822
Joined: Fri Mar 23, 2018 8:22 pm

Re: Reading & write to RTC 12887 ?

Post by PhilC » Thu Jun 27, 2019 8:01 pm

Project no 46365335 Exxos Basic for the Atari ST
If it ain't broke, test it to Destruction.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Thu Jun 27, 2019 8:04 pm

PhilC wrote:
Thu Jun 27, 2019 8:01 pm
Project no 46365335 Exxos Basic for the Atari ST
Yeah! :lol: I think I like STOS the best :lol:
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Thu Jun 27, 2019 8:05 pm

We now have time and date functioning :)


In fact the whole program is functional now I think :D

IMG_4419.JPG
IMG_4419.JPG (406.94 KiB) Viewed 571 times
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
PhilC
Moderator
Moderator
Posts: 1822
Joined: Fri Mar 23, 2018 8:22 pm

Re: Reading & write to RTC 12887 ?

Post by PhilC » Thu Jun 27, 2019 8:55 pm

exxos wrote:
Thu Jun 27, 2019 8:04 pm
PhilC wrote:
Thu Jun 27, 2019 8:01 pm
Project no 46365335 Exxos Basic for the Atari ST
Yeah! :lol: I think I like STOS the best :lol:
Ok, how about exSTOS? not only can you program with it but it reminds you to drink Vodka?
If it ain't broke, test it to Destruction.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Fri Jun 28, 2019 4:18 pm

Probably last update for the week..

Adding in a new option to set the ST's time & date from the RTC clock... "almost" works :lol:

Really I need someone to do a simple version in ASM which can access the RTC registers and set the ST's clock.. like a small AUTO folder program..

IMG_4420.JPG
IMG_4420.JPG (423.71 KiB) Viewed 537 times
IMG_4421.JPG
IMG_4421.JPG (190.41 KiB) Viewed 537 times

EDIT:

Fixed the date bug.. but no matter what I put in as the year, it always reads (from the ST) "20;9"... I tried putting in "2019", "20", "19" but makes no odds.... I'm assuming the internal ST clock just doesn't work with these numbers :shrug:

IMG_4422.JPG
IMG_4422.JPG (36.13 KiB) Viewed 534 times
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Fri Jun 28, 2019 6:00 pm

I tried using the TSETDATE function and it worked in that I could set 1/1/1980, but again setting 2019 resulted in "20;9" :roll: So its not a bug in hisoft in setting the date.. so maybe reading the date is wrong.. will try a system call for that next...

EDIT:

The value I write to the ST clock comes back the same, so I think its a bug in reading the time in hisoft basic :roll:
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
exxos
Site Admin
Site Admin
Posts: 7891
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reading & write to RTC 12887 ?

Post by exxos » Fri Jun 28, 2019 7:33 pm

Had to write me own DATE decoder :roll: But now the date is reporting correctly :)

IMG_4423.JPG
IMG_4423.JPG (42.48 KiB) Viewed 522 times
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

DoG
Posts: 110
Joined: Sat Apr 07, 2018 12:26 pm

Re: Reading & write to RTC 12887 ?

Post by DoG » Fri Jun 28, 2019 7:48 pm

Great work!

Post Reply

Return to “HARDWARE DISCUSSIONS”