|
|
|
Re: Tiny68K with IDE Hard Drive [message #4626 is a reply to message #4622] |
Thu, 19 April 2018 19:31   |
jbforrer
Messages: 25 Registered: May 2017
|
Junior Member |
|
|
Thanks for the comments.
So far have not seriously played with the RTC except verify it was working. I'll get to writing a couple of C-callable routines for setting date/time also read it.
Right, have both EEPROM sockets populated, one with Tiny68kbug 0.7 (handy for programming EEPROMs), the other with Ide68kbug 0.1 (handy for TRAP #15 calls).
The extra glued-on header is for I2C expansion (VCC, GND, SDA, SCL).
Still finding my way around exploring. Fun stuff.
I've been exploring the RTC and folded the "writespi1.x68" code into a GCC C-Callable subroutine.
Example and output shown.
Also found my crystal oscillator on the DS1302 did not start up reliably. A 12pF cap from pin 3 to ground helped getting this crystal to work.
> ............................................................ .................X
Valid S record received, executing from starting address
Tiny68K RTC
Yr=18 Mon=5 Day=1 -- HH=21 MM=1 SS=50
Set RTC? (Y/N):Y
Yr=18? OK
Mon=5? OK
Day=1? OK
Hrs=21? OK
Min=1? OK
Sec=50? OK
Yr=18 Mon=5 Day=1 -- HH=21 MM=1 SS=50
Set RTC now? (Y/N):N
Yr=18 Mon=5 Day=1 -- HH=21 MM=2 SS=27
-
Attachment: rtc.S
(Size: 10.28KB, Downloaded 431 times)
-
Attachment: RTC.S9
(Size: 19.87KB, Downloaded 411 times)
-
Attachment: RTC.c
(Size: 3.13KB, Downloaded 418 times)
[Updated on: Tue, 01 May 2018 21:55] Report message to a moderator
|
|
|
|
|
Re: Tiny68K with IDE Hard Drive [message #4659 is a reply to message #4643] |
Thu, 26 April 2018 10:33   |
etchedpixels
Messages: 333 Registered: October 2015
|
Senior Member |
|
|
CF cards do their own wear levelling. It varies a lot by card and time how good they are. Some just do randomization, others are really quite sophisticated and know about FAT and some other formats so they can actually use bits of flash with different properties.
Old IDE drives (especially late ones) often outperform CF in retro uses I find. The old Caviar SE's for example have an 8MB cache on them. For CP/M and Fuzix type uses they pretty much act as a RAMdisc with automatic backup 
[Updated on: Thu, 26 April 2018 10:33] Report message to a moderator
|
|
|
|
Re: Tiny68K with IDE Hard Drive [message #4669 is a reply to message #4660] |
Sun, 29 April 2018 11:40   |
etchedpixels
Messages: 333 Registered: October 2015
|
Senior Member |
|
|
At the moment I've got it working on a virtual platform for the simplest case of all where you have a small amount of memory and one process in memory at a time. That works fine but with more than about 128K of RAM doesn't really make sense or scale. The user space should be pretty solid though except for the small and truely horrible matter of daytime saving support. Getting Fuzix working that way on any board ought to be simply enough but it's not the right final way to run on a board with 15MB of RAM.
I've been a bit busy with real life and also various bits of 8bit work - getting Fuzix up on the Microbee, and currently trying to build a Fuzix kernel that uses an MPM or MPM 2 XIOS so you can (in theory) boot Fuzix on anything you've got an MP/M for
Alan
[Updated on: Sun, 29 April 2018 11:42] Report message to a moderator
|
|
|
|