RetroBrew Computers Forum
Discussion forum for the RetroBrew Computers community.

Home » RBC Forums » General Discussion » Tiny68K with IDE Hard Drive
Tiny68K with IDE Hard Drive [message #4617] Thu, 19 April 2018 15:16 Go to next message
jbforrer is currently offline  jbforrer
Messages: 24
Registered: May 2017
Junior Member
Greetings,

With Plasmo's encouragement, decided to explore attaching an ATA hard drive.
Amazing, it worked the first time. Still early, but I have not had any issues yet.

A PC's ATA hard drive cable are used to make up a 2mm pitch 40-pin male header.
Simply a 1:1 correspondence using the first 40 lines of the CF interface.

Please see attached picture.

Of course, a hard drive require its own external 12V and 5V supplies. I am using an old PC PSU for that.

Tiny68K has a lot of potential and an ingenious design.


Cheers.
  • Attachment: DSCN6356.JPG
    (Size: 236.48KB, Downloaded 607 times)
Re: Tiny68K with IDE Hard Drive [message #4618 is a reply to message #4617] Thu, 19 April 2018 17:09 Go to previous messageGo to next message
b1ackmai1er is currently offline  b1ackmai1er
Messages: 396
Registered: November 2017
Senior Member
Wow very nice work.
Re: Tiny68K with IDE Hard Drive [message #4622 is a reply to message #4618] Thu, 19 April 2018 18:22 Go to previous messageGo to next message
plasmo is currently offline  plasmo
Messages: 876
Registered: March 2017
Location: New Mexico, USA
Senior Member
Very nice!
Beside the IDE cable, I noticed you've also added the DS1302 RTC. Does it keeps time accurately? Mine runs fast but I believe it is due to a mismatched crystal. I'm waiting for a packet of 6pF crystal in the mail.
Both serial EEPROM are populated to give you two modes of operations. Is two modes of peration adequate?
What is the 2x5 header glued next to the 7-seg display? Is it an UEXT connector?
Re: Tiny68K with IDE Hard Drive [message #4626 is a reply to message #4622] Thu, 19 April 2018 19:31 Go to previous messageGo to next message
jbforrer is currently offline  jbforrer
Messages: 24
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 338 times)
  • Attachment: RTC.S9
    (Size: 19.87KB, Downloaded 312 times)
  • Attachment: RTC.c
    (Size: 3.13KB, Downloaded 316 times)

[Updated on: Tue, 01 May 2018 21:55]

Report message to a moderator

Re: Tiny68K with IDE Hard Drive [message #4637 is a reply to message #4626] Sun, 22 April 2018 07:51 Go to previous messageGo to next message
etchedpixels is currently offline  etchedpixels
Messages: 333
Registered: October 2015
Senior Member
The other option might be to use a 2.5" drive as the 44pin cable isn't a 'CF' thing it's a 'high density IDE' cable which is also used by 2.5" drives. Another advantage is that generally 2.5" drives don't need anything but 5v/0v (ditto many 3.5" drives). You can also buy convertor boards that allow you to plug a SATA drive into a PATA port.

For example: http://www.dx.com/p/kitbon-2-5-ssd-hdd-driver-sata-7-15-pin- to-44-pin-ide-adapter-green-462463

which is sufficient to attach even a modern SSD to your 68000, not that there's a lot of point Cool

Alan
Re: Tiny68K with IDE Hard Drive [message #4643 is a reply to message #4637] Mon, 23 April 2018 18:30 Go to previous messageGo to next message
jbforrer is currently offline  jbforrer
Messages: 24
Registered: May 2017
Junior Member
etchedpixels --- I have a couple of those SATA-to-PATA convertors and will try it out.
My convertors have a chip doing the translation, hopefully transparent.

Compact Flash is more convenient, just happen to have a bunch of old IDE hard drives available.
Otherwise, am curious whether CF also require "wear level" considerations. I don't think CP/M does care about that?
Perhaps a solid state drive like you mention would be perfect for serious work.
Re: Tiny68K with IDE Hard Drive [message #4659 is a reply to message #4643] Thu, 26 April 2018 10:33 Go to previous messageGo to next message
etchedpixels is currently offline  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 Cool

[Updated on: Thu, 26 April 2018 10:33]

Report message to a moderator

Re: Tiny68K with IDE Hard Drive [message #4660 is a reply to message #4659] Thu, 26 April 2018 11:00 Go to previous messageGo to next message
jbforrer is currently offline  jbforrer
Messages: 24
Registered: May 2017
Junior Member
etchedpixels: Thanks, good to know about CF and wear leveling.
How far along is the Fuzix port for Tiny68K? I am interested in that. The 6809 port works just great.
Please let me know if I can be of any help.

Cheers.

Re: Tiny68K with IDE Hard Drive [message #4669 is a reply to message #4660] Sun, 29 April 2018 11:40 Go to previous messageGo to next message
etchedpixels is currently offline  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

Re: Tiny68K with IDE Hard Drive [message #7836 is a reply to message #4617] Wed, 24 June 2020 20:14 Go to previous message
newjes250 is currently offline  newjes250
Messages: 13
Registered: May 2020
Junior Member
To jbforrer:

What size hard drive would be useable to add to the Tiny68k ide port?
Or what would be too big?

newjes250
Previous Topic: Xilinx XC9572 vs Altera EPM7128S 5v
Next Topic: ECB-to-S100 bridge board


Current Time: Thu Apr 18 21:25:00 PDT 2024

Total time taken to generate the page: 0.00789 seconds