Welcome, Guest. Please login or register.

Author Topic: Amiga floppy project status  (Read 6017 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Amiga floppy project status
« on: November 19, 2007, 11:23:22 PM »
HI all,

I've been putting some more work into my DIY Amiga Floppy Project, aka usb-attached external amiga floppy drive controller.

It uses a regular external PC drive to convert low density 880kb amiga floppies to .ADF.  Attaches via USB, and you run a java interface.  Give it a filename, click read, and poof, about 1 minute later you've got your ADF.  It doesn't write ADF's yet.

While it's still in the prototype stage, it works very well, and I've been using it lately to archive my amiga archive of floppy disks.

Everything is completely open source, although everything is so dynamic at this point, there's no easily downloadable .zip package or anything yet.

Here's a couple links, if you are interested:

Graphic Intro
Day-to-Day blog
PCBoard images
Schematic
Java screenshot

I'll probably throw up an image in the image section here too.

Thanks for taking a look.

Keith
 

Offline HenryCase

  • Hero Member
  • *****
  • Join Date: Oct 2007
  • Posts: 800
    • Show only replies by HenryCase
Re: Amiga floppy project status
« Reply #1 on: November 19, 2007, 11:58:55 PM »
@kamiga

I need this! I really hope you get it working fully.
I thought the main reason you can't read Amiga disks in a PC floppy drive was due to the drive speed. Is that right? What issues do you have to overcome?
"OS5 is so fast that only Chuck Norris can use it." AeroMan
 

Offline 1NOM155

  • Full Member
  • ***
  • Join Date: Jul 2006
  • Posts: 184
    • Show only replies by 1NOM155
Re: Amiga floppy project status
« Reply #2 on: November 20, 2007, 12:01:08 AM »
you have my support :)

never give up for that project
3 x Amiga 500 REV. 6A, ROM 1,3 v34.5 (1991) (All Working)
1 x Amiga 600 REV. 1.5, ROM 2,05 v37.300 (1991) (Stand-by for install a Toshiba HDD2718, 2167MB)
----------------
WTB Amiga 1200 or  Amiga 3000 D & T or 4000 D & T.
Any one to sell to Europe?
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Amiga floppy project status
« Reply #3 on: November 20, 2007, 12:31:24 AM »
Well there's a couple different issues, and I don't claim to be expert in any of them.

The main reason you can't read amiga disks inside a PC is because an IBM PC floppy controller is looking for sector gaps.  An Amiga writes tracks with no sector gaps whatsoever, and literally had sector1-sector2-sector3 etc.

The speeds, 300RPM, is the same for most floppy drives.  Older drives were somewhat different, and the Amiga did funky things like half the speed of the drive for Amiga HD disks.

My project works right now for reading low-density disks.  There are other longer term goals, but for now, it does exactly what I intended to do when I started.  Honestly, it took a lot of head-banging to get everything right.  The amount of man-hours involved was ridiculous.  Partially because I'm inexperienced with this stuff, and partially because (sufficient, up to date, fully explained) documentation/help is hard hard hard to find.

Now note (completely different issue) that PC DRIVES can't generally be used without modification as an amiga drive.  This is mainly a cable pinout/jumper issue where the amiga floppy controller (more software than hardware) is expecting certain signals in certain places.  Wrong pinouts means disk change signals don't work, and so on.  There are cable diagrams on this site, description for jumpers all over the place, etc.

My project uses a standard IDC34 pin PC floppy cable, and a standard unmodified PC floppy drive.

There's other hurdles to overcome in a project like this, and my blog spells out the history pretty good.

Thanks

 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Amiga floppy project status
« Reply #4 on: November 20, 2007, 12:36:29 AM »
Quote

1NOM155 wrote:
you have my support :)

never give up for that project


Thanks man.  I haven't given up yet!  Lord knows I wanted to quit on more than one occasion.

I really have enjoyed working through all the issues, and I've had a very small but dedicated clan of people on my blog that throws me hints every now and again.

The good news is that reading low density disks works reliably right now...........so adding features/functionality is sort of the next step.

Thanks again.
 

Offline cecilia

  • Amiga Snob
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 4875
  • Country: 00
    • Show only replies by cecilia
    • http://cecilia.sawneybean.com/
Re: Amiga floppy project status
« Reply #5 on: November 20, 2007, 12:42:41 AM »
that's very cool!

so if I understand this correctly, one needs your special 'black box' between a PC and a floppy drive.

what if there's already a floppy drive on the PC?
the no CARB diet- no Cheney, Ashcroft, Rumsfeld or Bush.
IFX CD Tutorial
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Amiga floppy project status
« Reply #6 on: November 20, 2007, 12:52:21 AM »
Quote

cecilia wrote:
that's very cool!


Thanks. I think so too!


Quote


so if I understand this correctly, one needs your special 'black box' between a PC and a floppy drive.


That's right.  You need my magic box in the middle.  This is what makes everything possible.  It's the microcontroller, the memory, and the USB interface.

Quote
what if there's already a floppy drive on the PC?


It doesn't help you. :)  The magic box is outside the PC, the drive will be outside the PC.  Unless you get creative and mount the PCB inside the PC, connect to internal USB headers/conncetors, and the drive itself. NEVERMIND. :)

My USB external controller REPLACES or is used in place of the standard built-in (northbridge on a PC, I think) floppy drive controller.

Thanks
 

Offline da9000

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 922
    • Show only replies by da9000
Re: Amiga floppy project status
« Reply #7 on: November 20, 2007, 12:52:39 AM »
Nice work! Keep it up. Great pages too! (schems, photos, blog)

Cheers
 

Offline alexh

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 3644
    • Show only replies by alexh
    • http://thalion.atari.org
Re: Amiga floppy project status
« Reply #8 on: November 20, 2007, 01:07:31 AM »
Quote

cecilia wrote:
what if there's already a floppy drive on the PC?

If you already have a floppy drive on the PC, all you need is another floppy drive connected using the same cable.

One is used for the Amiga disk, the other is used with a blank disk as a control sync disk. It works fine for reading Amiga disks to ADF.

The software you need is fdrawcmd and ADFread

 

Offline cecilia

  • Amiga Snob
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 4875
  • Country: 00
    • Show only replies by cecilia
    • http://cecilia.sawneybean.com/
Re: Amiga floppy project status
« Reply #9 on: November 20, 2007, 01:29:59 AM »
Quote

alexh wrote:
Quote

cecilia wrote:
what if there's already a floppy drive on the PC?

If you already have a floppy drive on the PC, all you need is another floppy drive connected using the same cable.

One is used for the Amiga disk, the other is used with a blank disk as a control sync disk. It works fine for reading Amiga disks to ADF.

The software you need is fdrawcmd and ADFread

does that solution include a laptop? I mean my laptop has a floppy drive - probably one of the last of a dying breed  :lol:
the no CARB diet- no Cheney, Ashcroft, Rumsfeld or Bush.
IFX CD Tutorial
 

Offline HenryCase

  • Hero Member
  • *****
  • Join Date: Oct 2007
  • Posts: 800
    • Show only replies by HenryCase
Re: Amiga floppy project status
« Reply #10 on: November 20, 2007, 01:49:25 AM »
Quote
kamiga wrote:
The main reason you can't read amiga disks inside a PC is because an IBM PC floppy controller is looking for sector gaps.  An Amiga writes tracks with no sector gaps whatsoever, and literally had sector1-sector2-sector3 etc.


I'm assuming that IBM PC floppy drives read the first sector of an Amiga disk as usual then flag up an error when it can't find a sector gap? Or does the PC drive stop working when it doesn't recognise the file format?
"OS5 is so fast that only Chuck Norris can use it." AeroMan
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Amiga floppy project status
« Reply #11 on: November 20, 2007, 02:11:33 AM »
Quote

HenryCase wrote:

I'm assuming that IBM PC floppy drives read the first sector of an Amiga disk as usual then flag up an error when it can't find a sector gap? Or does the PC drive stop working when it doesn't recognise the file format?


You know, I honestly don't know.  I've never actually attempted to read from the PC, and didn't have any experience prior to this with PC FDC's.

I have read a few things that indicate that the entire track is returned as the first sector, but I'm guessing it sees this as a "giant" sector.  It might over-run any available buffer space.  It might try to continue to read for other sectors..... just all guesses.  I dunno if the information is delivered track-by-track(probably) basis or sector by sector.  In either cases, the sizes are going to be all wrong which could really screw up addressing, timing, etc.

I initially did some research, a couple years back, read about the NEC 765 (IIRC) FDC, and nothing looked promising.  It's not as simple as just "ignoring the errors."  The FDC hardware/firmware itself appears to be the limitation.  I took the lack of available working software-only-solutions to mean that it's been looked at by smarter people, and found impossible.

Newer OS's do hardware-abstraction stuff and they really don't cooperate easily when you try to get to the hardware.  Big difference from 95/98...

USB is convenient, friendly, modern, and so forth.  I like it.

Here we are now, practically 2008, with still no software-only solution.

Besides, I would have never learned how this darn thing they call electronics and microcontrollers worked had I not attempted it! :)

My solution also provides a platform for ever-expanding features including the ability to write disks, support for other OS's disks, etc......

While I don't know yet about the practicality of building my device, I'm taking efforts to reduce the complexity, cost, and so on.  The raw pieces and parts are actually negligible in terms of costs, but the device needs assembled and programmed.  Programmers are expensive, but I thought of offering a free/cost-only programming "service." to eliminate that as a requirement.

Or perhaps sell a prototype board with SMT memory pre installed, and mcu programmed.....

Thanks

Keith
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: Amiga floppy project status
« Reply #12 on: November 20, 2007, 04:40:57 AM »
So if I read this correctly, you're using some kind of 34-pin FDC connected to the PC via USB?

Could this work with a straight USB floppy drive, for instance the NEC drives sold for Dell laptops, etc.?
 

Offline kamigaTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2005
  • Posts: 165
    • Show only replies by kamiga
Re: Amiga floppy project status
« Reply #13 on: November 20, 2007, 05:03:55 AM »
Quote

LoadWB wrote:
So if I read this correctly, you're using some kind of 34-pin FDC connected to the PC via USB?


Well, yes, some kind of FDC :)  It's _my_ floppy drive controller, that I created from the ground up.  It's more or less a Parallax SX28 Microcontroller with my custom firmware, with serial memory for track-storage, and a device that converts TTL level voltages to USB.  I access FTDI's USB functions via their .DLL, through Java.  FTDI has library support for other OS's as well.

Quote

Could this work with a straight USB floppy drive, for instance the NEC drives sold for Dell laptops, etc.?


No, probably not.  Those USB drives are probably (I haven't taken one apart to look) some type of glue-logic between USB and a standard floppy drive.  I wouldn't be surprised to see a 34-pin (or similar) connector on a laptop-sized floppy.  I think laptop sized drives use a slightly smaller connector, but heck if I remember what it is.  The floppy interface includes like 17-ground leads, completely unnecessary --- so you actually only need perhaps 10-15 leads.....

I would imagine the FDC that is integrated into the actual USB floppy case, and I'm _sure_ they would have used a standard PC based 765-ish/Intel 8272-ish FDC.  So the FDC located in the drive is more or less what's integrated into your motherboard on a standard desktop. (read:same limitations as on a normal PC)

I've actually seen USB->floppy interface chips that are available, and some of them even have replaceable firmware.  But there are some hurdles regarding learning the particular processor/controller/core or whatever you want to call it on those chips.  It also requires specialized compilers, etc, that are either expensive, or hard to properly configure in *nix world.  Ideally, this might be the approach a pro might use.  My way was a lot more affordable and reachable by a DIY'r.  Parallax's SX Tech Tool plus kit is like $100 for everything you need except the $10 power supply.

Thanks

Keith
 

Offline 1NOM155

  • Full Member
  • ***
  • Join Date: Jul 2006
  • Posts: 184
    • Show only replies by 1NOM155
Re: Amiga floppy project status
« Reply #14 on: November 23, 2007, 09:42:08 AM »
kamiga,

I found magazines of the elektor "Jun 2007 - Portuguese edition" based on article "Universal USB Device - Mach 2007 - English edition"

An Universal USB Device (driver), with free code, maybe can help you on the project. If you are interested, send me an PM.

By the way have a look at this sites:
http://libusb-win32.sourceforge.net
http://gcc.gnu.org
http://sourceforge.net/forum/?group_id=78138
3 x Amiga 500 REV. 6A, ROM 1,3 v34.5 (1991) (All Working)
1 x Amiga 600 REV. 1.5, ROM 2,05 v37.300 (1991) (Stand-by for install a Toshiba HDD2718, 2167MB)
----------------
WTB Amiga 1200 or  Amiga 3000 D & T or 4000 D & T.
Any one to sell to Europe?