Page 5 of 6
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 19:37
by Icky
exxos wrote: 27 Jun 2019 17:36
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.
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 19:55
by exxos
Icky wrote: 27 Jun 2019 19:37
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:
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 20:01
by PhilC
Project no 46365335 Exxos Basic for the Atari ST
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 20:04
by exxos
PhilC wrote: 27 Jun 2019 20:01
Project no 46365335 Exxos Basic for the Atari ST
Yeah! :lol: I think I like STOS the best :lol:
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 20:05
by exxos
We now have time and date functioning :)
In fact the whole program is functional now I think :D
IMG_4419.JPG
Re: Reading & write to RTC 12887 ?
Posted: 27 Jun 2019 20:55
by PhilC
exxos wrote: 27 Jun 2019 20:04
PhilC wrote: 27 Jun 2019 20:01
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?
Re: Reading & write to RTC 12887 ?
Posted: 28 Jun 2019 16:18
by exxos
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_4421.JPG
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
Re: Reading & write to RTC 12887 ?
Posted: 28 Jun 2019 18:00
by exxos
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:
Re: Reading & write to RTC 12887 ?
Posted: 28 Jun 2019 19:33
by exxos
Had to write me own DATE decoder :roll: But now the date is reporting correctly :)
IMG_4423.JPG
Re: Reading & write to RTC 12887 ?
Posted: 28 Jun 2019 19:48
by DoG
Great work!