I know pretty much nothing about electronics (as has been proven in various threads) but I was wondering if it would be feasible to connect one of those cheap battery backed RTC i2c (designed for Arduino, Pi etc) to an i2c to rs232 converter and then connect that into SER2 and be able to query the date/time to set the QL clock at boot
Any thoughts please?
Many thanks
RTC Query
Re: RTC Query
Maybe it would be better to build a rs232 to WiFi modem bridge as the 2 parts needed are dirt cheap and widely available
But i’m going to use a laptop as a temporary bridge initially, to test setting the QL clock via an internet timeserver over rs232/wifi
But i’m going to use a laptop as a temporary bridge initially, to test setting the QL clock via an internet timeserver over rs232/wifi
Re: RTC Query
There seem to be simple I2C-to-RS232 adapters that allow you to connect I2C devices to RS232 serial interfaces.
Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html
(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)
Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html
(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: RTC Query
The Minerva MKII has I2C interface and does have an on board I2C RTC and RAM chip.
There is a project ongoing on here to recreate the PCB for that - the code is already in the Minerva ROM
There is a project ongoing on here to recreate the PCB for that - the code is already in the Minerva ROM
Re: RTC Query
Thanks, have ordered one to have a playtofro wrote: Tue Mar 12, 2024 8:32 am There seem to be simple I2C-to-RS232 adapters that allow you to connect I2C devices to RS232 serial interfaces.
Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html
(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)
Re: RTC Query
Minerva 2 would interest me for the RTC element, though I prefer to run JS rom (I have a Minerva 1 for memory diagnostics, but it lives in an anti-static bag)Pr0f wrote: Tue Mar 12, 2024 8:51 am The Minerva MKII has I2C interface and does have an on board I2C RTC and RAM chip.
There is a project ongoing on here to recreate the PCB for that - the code is already in the Minerva ROM
Many thanks
Re: RTC Query
The other approach would be to use an RTC chip that actually does have a "seconds counter" and just disable the ZX8302 whenever a read access to those RTC addresses is made - and provide the data from the seconds counter RTC chip instead. No I2C needed - as the code in the QL is already setup to read the RTC and process the format.
What you would need to do is provide some function to set the RTC - but I am guessing that doesn't need to be done that often, and a BASIC program offering that may suffice.
What you would need to do is provide some function to set the RTC - but I am guessing that doesn't need to be done that often, and a BASIC program offering that may suffice.
Re: RTC Query
That sounds way above my pay grade!Pr0f wrote: Tue Mar 12, 2024 9:53 am The other approach would be to use an RTC chip that actually does have a "seconds counter" and just disable the ZX8302 whenever a read access to those RTC addresses is made - and provide the data from the seconds counter RTC chip instead. No I2C needed - as the code in the QL is already setup to read the RTC and process the format.
What you would need to do is provide some function to set the RTC - but I am guessing that doesn't need to be done that often, and a BASIC program offering that may suffice.

Also, I don’t really want to modify the mobo (other than necessary repairs)
Adding RAM, changing ROM to JS and attaching plug-in storage/other solutions are as far as I want to go really.
Many thanks
Re: RTC Query
I have the I2C/RS232 adapter, an I2C RTC and some QL serial leads all ordered.
May need some other odd bits I haven’t thought of yet though too
Whether I’ll be able to achieve what I want is a different matter!
May need some other odd bits I haven’t thought of yet though too
Whether I’ll be able to achieve what I want is a different matter!
Re: RTC Query
Won't work directly, since it uses the DSR line which the QL does not provide.tofro wrote: Tue Mar 12, 2024 8:32 am Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html
(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)