Afternoon all,
I've been experimenting with physically byte swapping the IDE interface in my Falcon such that the I can access the partitions directly on other systems without slow-down on the Falcon from logical byteswapping.
All works brilliantly with EmuTOS -- as you'd expect, EmuTOS always works ;) -- but neither HDDriver or my PPutnik software can detect the drive properly. HDDriver goes so far as to stop the floppy working after boot!
I assume this is because not only is the data byte-swapped, but all the IDE control channels too.
Has anyone played with physical byte-swapping before and know of any tricks to logically swap the control information being fed into the drivers? Any option I'm not seeing?
I know HDDriver has a Suska variant, which I presume allows for fully swapped information, but I don't know how to trigger that.
Am I correct in my assumption it's the control data being swapped that's the issue?
Cheers,
BW
Physically byte-swapped IDE [AKA twisted cable]
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Physically byte-swapped IDE [AKA twisted cable]
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
Steve
- Posts: 3305
- Joined: 15 Sep 2017 11:49
Re: Physically byte-swapped IDE
This might be worth asking directly on the HD Driver forum, Uwe is usually very receptive to questions on his driver.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Physically byte-swapped IDE
@Badwolf
I was fighting with this a while back as well and gave up in the end https://exxosforum.co.uk/forum/viewtopi ... 322#p94322
I was trying to make the CF card Falcon and PC compatible so I could transfer larger stuff over.
I was fighting with this a while back as well and gave up in the end https://exxosforum.co.uk/forum/viewtopi ... 322#p94322
I was trying to make the CF card Falcon and PC compatible so I could transfer larger stuff over.
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: Physically byte-swapped IDE
Yeah, that was logical byte-swapping though, I think. That works, but you can't boot from it.exxos wrote: 21 Mar 2023 12:52 @Badwolf
I was fighting with this a while back as well and gave up in the end https://exxosforum.co.uk/forum/viewtopi ... 322#p94322
I was trying to make the CF card Falcon and PC compatible so I could transfer larger stuff over.
Here, the physical (ie. on the connector) high and low bytes are swapped.
HDDriver just detects gibberish. My guess is because everything (all the drive meta data included) is inverted to what HDDriver is expecting.
I'm trying to find a reference manual for the IDE specification circa 1992 such that I can verify that. Anyone know where to look?
BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: Physically byte-swapped IDE
One thing I've learned is to only go there when you already know the answer and can prove it. ;)Steve wrote: 21 Mar 2023 12:37 This might be worth asking directly on the HD Driver forum, Uwe is usually very receptive to questions on his driver.
I'm trying to thoroughly research how the IDE protocol actually works at low level before I even consider that.
BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Physically byte-swapped IDE
Yep had that happen when I developed Trudie. I really don't know how anyone ever got a physical cable swap to ever work.Badwolf wrote: 21 Mar 2023 13:05 HDDriver just detects gibberish. My guess is because everything (all the drive meta data included) is inverted to what HDDriver is expecting.
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: Physically byte-swapped IDE
So I'm looking at https://web.archive.org/web/20120321035 ... -ATA-1.pdfexxos wrote: 21 Mar 2023 13:07Yep had that happen when I developed Trudie. I really don't know how anyone ever got a physical cable swap to ever work.Badwolf wrote: 21 Mar 2023 13:05 HDDriver just detects gibberish. My guess is because everything (all the drive meta data included) is inverted to what HDDriver is expecting.
And http://cd.textfiles.com/ataricompendium ... PPENDB.PDF
And I'm seeing a lot of byte commands -- which will be on the wrong half of the bus. Those feel eminently patchable.
Reading more...
BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
stephen_usher
- Site sponsor

- Posts: 7376
- Joined: 13 Nov 2017 19:19
- Location: Oxford, UK.
Re: Physically byte-swapped IDE
Of course you also have the issues of whether the drive supports 8 bit transfers/ 16 bit transfers, UDMA or sync I/O etc. and which level of the ATA/IDE procotols. (ATA being the mark 2 protocol which is mostly backwards compatible with IDE.)
I have a CF card which just gives garbage when the TF536 talks to it, byte swapping the cable stops it working. It works on a PC with the same adapter, but it looks like it's 16 bit only.
I have a CF card which just gives garbage when the TF536 talks to it, byte swapping the cable stops it working. It works on a PC with the same adapter, but it looks like it's 16 bit only.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
-
alexh
- Site sponsor

- Posts: 1335
- Joined: 17 Oct 2017 16:51
- Location: Oxfordshire
Re: Physically byte-swapped IDE
I've never tried on on the Atari Falcon 030 but I've done it on my STe with Mario Becroft IDE interface.
I used the "special" PPera HDD driver for "twisted" cables.
https://atari.8bitchip.info/idepc.htm
I believe the latest "Paid" driver has HW byte-swap support too.
I used the "special" PPera HDD driver for "twisted" cables.
https://atari.8bitchip.info/idepc.htm
I believe the latest "Paid" driver has HW byte-swap support too.
Senior Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
-
mfro
- Posts: 124
- Joined: 13 Dec 2018 07:32
Re: Physically byte-swapped IDE
Sure. IDE registers ($F00000-$F00039) aren't located somewhere on the Falcon PCB, but on the disk itself.Badwolf wrote: 21 Mar 2023 12:32 I assume this is because not only is the data byte-swapped, but all the IDE control channels too.
Consequently, if you twist the cables, you also swap hardware registers and software that isn't designed for that will not be able to do anything meaningful to them anymore.
And remember: Beethoven wrote his first symphony in C.
Who is online
Users browsing this forum: ClaudeBot and 7 guests