News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Real Time Clock Board

Started by dxs, 19:14, 10 February 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Would you be interested in buying a RTC board?

Yes. Definitely, as a complete standalone.
16 (30.2%)
Only if usable in parallel with the X-MEM.
23 (43.4%)
Only as a module to plug on my physical ROMBOARD I already have.
3 (5.7%)
No thanks.
11 (20.8%)

Total Members Voted: 53

Prodatron

I wonder if it's possible to optimize the READ routine like this:

;### DSWRED -> read 8 bytes from the Dobbertin Smart Watch
;### Input      DE=destination address
;###            ROM is already selected
;### Destroyed  AF,BC,DE,HL
dswred  ld b,8
        lh hl,#c004
        di
dswred1 ld a,128
dswred2 rr (hl)
        rra
        jr nc,dswred2
        ld (de),a
        inc de
        djnz dswred1
        ei
        ret


The RR (HL) command will do a write to #c004, would this disturb the communication??

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

TFM

#151

Looks good. Of course it's the most fun to make own routines.  ;D   IIRC I unlooped it to speed it a bit up. But it's basically the same...


Ok, now on my own PC I could dig that out...


;TFM of FutureSoft - part of FutureOS
;All rights reserved and other bla, bla, bla

;Dobb.Uhr Daten ins RAM ab UHR_00 ; AKT_ROM ein
;Mani; AF,BC,DE,HL

LUHR LD BC,(UHR_ROM)

OUT  (C),C
LD   A,(&C004)
LD   DE,&C000
LD   HL,&C001
CALL KOAS
CALL KOAS
LD   E,4  ;DE=&C004

     LD HL,UHR_00
     LD B,8
RDUL LD A,(DE)

RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  A,(DE)
RRA
RR  C
LD  (HL),C
INC HL

DJNZ RDUL
LD   BC,(AKT_ROM)
OUT  (C),C
RET

KOAS LD A,(HL)

LD A,(DE)
LD A,(HL)
LD A,(DE)
LD A,(DE)
LD A,(DE)
LD A,(HL)
LD A,(HL)
LD A,(DE)
LD A,(HL)
LD A,(DE)
LD A,(HL)
LD A,(HL)
LD A,(HL)
LD A,(DE)
LD A,(DE)
LD A,(HL)
LD A,(HL)
LD A,(DE)
LD A,(DE)
LD A,(DE)
LD A,(HL)
LD A,(DE)
LD A,(HL)
LD A,(DE)
LD A,(DE)
LD A,(HL)
LD A,(HL)
LD A,(HL)
LD A,(DE)
LD A,(HL)
LD A,(DE)

RET


;Uhr-Daten schreiben
;-------------------
;DE=8 Bytes in.Page, Dobb.komp
;Mani; AF,BC,E,HL,BC',DE',HL'
;AKT_ROM aktiv

SUHR EXX

LD BC,(UHR_ROM):OUT (C),C
LD A,(&C004)
LD DE,&C000
LD HL,&C001
CALL KOAS
CALL KOAS
EXX
LD BC,&0800
LD H,&C0

SUGL LD A,(DE):SCF
SUNB RR A:JR Z,SUZZ

LD L,C
RL L
LD L,(HL)
JR SUNB

SUZZ INC E

DJNZ SUGL
LD BC,(AKT_ROM):OUT (C),C
RET

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

Quote from: TFM on 21:18, 26 June 15
Ok here is a patched TIMEROM+ which scans ROMs 1-127. I call it TIMEROM#  [emoji23]


Let me know it it works please!  :)
I am not sure if anyone else has tested this. So I did.

As you can see it works [emoji3]  but the year is screwed up, unless " ;5 " is an unusual way of writing 2015 or 15 that I am not aware of [emoji6]
IRC:  #Retro4All on Freenode

TFM

#153
That's expected. There are versions of DATE.COM including the year 2K patch. I can upload this later on from my own Laptop.


Oh, my CP/M ROMs do contain the Y2K bugfree version IIRC. Let me check later...
EDIT: No, they don't .. yet... but I fix that. (Problem: The ROM CP/M Plus uses an internal DATE command, so how to override that? We'll see ... ;) ).
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Bryce

Aaaaarrrrgggghhh! The Y2K bug has finally got us! 15 years later.

Bryce.

TFM

And here is the fix: (see attachment)


Please use all the new programs, especially when using date stamping. Enjoy!  :)

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

IRC:  #Retro4All on Freenode

TFM

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

dxs

Thanks TFM for your help, as usual!

TFM

Quote from: dxs on 09:37, 19 August 15
Thanks TFM for your help, as usual!


Thanks for your thanks!  :)


fun mode on...
But don't like me posting CP/M stuff, move that like over to my FutureOS source code sniplet!
fun mode off...


Well you did a great job with the RTC. Actually it THE ONLY ONE currently available somehow (maybe one day Dr. Zed will make a new batch of SF2's though). So it's of course the communities duty to support you.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

dxs

Yeah well don't forget only 20 were made,  not to mention some people bought more than one  ;D

TFM

TBH... I have hope that you make a 2nd batch.  ;D   :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Prodatron

#162
The Dobbertin Smart Watch is now supported in SymbOS, including autodetection :)
[attach=2]
[attach=3]
It will be included in the next Beta version, which will be available for download probably end of September or beginning of October.
Thanks again to Poliander, CraigsBar and TotO for the donation and of course to  DXS for this nice piece of hardware!!

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

TFM

Ah, good to see this thread coming up agian.  :)  Now I got my CPC working again in the USA and I had time to verify the TIMEROM#.COM I posted here before, it does work find. I also included it in the CP/M Plus ROMs collection I made (see download on my homepage),


The RTC behaves excellent, and at least as well as the original.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

Awesome news. I did see yesterday that the rtc rom corrupts fw3.15 mode 2 startup screen, and that it breaks the hxc v3 app from either autoboot hfe or rom. Will test further and confirm later.

Sent from my A3-A30 using Tapatalk

IRC:  #Retro4All on Freenode

TFM

Quote from: CraigsBar on 16:11, 21 September 15
Awesome news. I did see yesterday that the rtc rom corrupts fw3.15 mode 2 startup screen, and that it breaks the hxc v3 app from either autoboot hfe or rom. Will test further and confirm later.

Sent from my A3-A30 using Tapatalk


The documentation of the RTC stated that it's important to put the jumpers from int to ext when using an x-MEM. In this case you put the TimeROM in one 16 KB slot of the X-MEM. If there are problems, please describe the hardware configuration you're using. I got no problems here, but my setup will be different.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

#166
Quote from: TFM on 17:26, 21 September 15

The documentation of the RTC stated that it's important to put the jumpers from int to ext when using an x-MEM. In this case you put the TimeROM in one 16 KB slot of the X-MEM. If there are problems, please describe the hardware configuration you're using. I got no problems here, but my setup will be different.
Yes I know that. It makes no difference if the rom is internal or external. See screenshots linked below.

https://www.dropbox.com/s/f6ec501a78m4tbo/2015-09-21%2022.15.58.jpg?dl=0
https://www.dropbox.com/s/hs0fihtch1b3hg3/2015-09-21%2022.17.45.jpg?dl=0
IRC:  #Retro4All on Freenode

Singaja

I'd be interested in a next batch  ;)

TFM

Quote from: CraigsBar on 00:03, 22 September 15
Yes I know that. It makes no difference if the rom is internal or external. See screenshots linked below.

Dropbox - 2015-09-21 22.15.58.jpg
Dropbox - 2015-09-21 22.17.45.jpg


For FW 3.15 thsi was expected, because it suppresses the sign on message. Therefore the TimeROM can't show you the graphic clock symbol, nor time, nor date. Clearly a FW3.15 problem.


About the HxC ROM... it's buggy anyway! I have the HxC as B drive and it always tries to fuck up my A drive by moving the head to track 255, that really suxx. The solution I found it to start the HxC tool from the autoboot.hfe file on drive B.


Sorry, for not being able to help more, but in this case the problems are somewhat in the cases nature. And there is no source for the HxC ROM out there (or I just don't know about it. Else a fix would be doable).

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

TotO

#169
Quote from: TFM on 18:55, 22 September 15For FW 3.15 thsi was expected, because it suppresses the sign on message. Therefore the TimeROM can't show you the graphic clock symbol, nor time, nor date. Clearly a FW3.15 problem.
It is a feature...  ;D
With 30 ROM, that avoid messages scrolling the screens, making things impossible to read and taking close to 5 seconds to get READY!  :-\

I should update the X-MEM Install for asking about a QUIET or VERBOSE Firmware 3.15...
By the way, you can replace "CD 57 BB" by "CD 54 BB" for that. (offset $264E)
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

CraigsBar

Quote from: TotO on 20:28, 22 September 15
It is a feature...  ;D
With 30 ROM, that avoid messages scrolling the screens, making things impossible to read and taking close to 5 seconds to get READY!  :-\

I should update the X-MEM Install for asking about a QUIET or VERBOSE Firmware 3.15...
By the way, you can replace "CD 57 BB" by "CD 54 BB" for that. (offset $264E)
I understand why the date and time don't show, and to be honest I prefer it quiet.... BUT with it quiet why does the clock face creep in. that was more the question.


Craig
IRC:  #Retro4All on Freenode

TFM

As told, it is GFX not character.  :)


@TotO : A verbose / quiet mode selection would be nice. But even nicer would be the selection of MODE 1 / 2.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

Quote from: TFM on 21:57, 22 September 15
As told, it is GFX not character.  :)


@TotO : A verbose / quiet mode selection would be nice. But even nicer would be the selection of MODE 1 / 2.  :)
Hmmmm. But the symbos logo is also a graphic not characters and that is suppressed. Also, on the rtc rom, only the clock graphic is shown, and not the calendar one. Sorry, I don't buy your answer ;)

Sent from my A3-A30 using Tapatalk
IRC:  #Retro4All on Freenode

TFM

Then ask somebody else. Or look into the source code.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CraigsBar

Quote from: TFM on 23:37, 22 September 15
Then ask somebody else. Or look into the source code.
Yes, helpful
IRC:  #Retro4All on Freenode

Powered by SMFPacks Menu Editor Mod