English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware > Hardware mods

 
 
Thread Tools
Old 27 November 2022, 22:11   #1
jasonsbeer
Registered User
 
jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 150
Diagrom Gayle Test

I am working on a 68030 expansion card for the A2000 and all that is left is the pseudo-Gayle ATA port. Diagrom gives me the output in the attached screen shot. Looks to be reading $FF50 from the drive status register, which, according to the ATA specifications, indicates the drive is responding and ready to accept commands. Can someone let me know what value Diagrom is expecting to read? Am I misinterpreting the diagrom information?

Edit to add...A600 vs A1200 Gayle has no effect.
Attached Thumbnails
Click image for larger version

Name:	PXL_20221127_194602998.jpg
Views:	92
Size:	503.4 KB
ID:	77249  
jasonsbeer is offline  
Old 28 November 2022, 16:51   #2
jasonsbeer
Registered User
 
jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 150
Just to follow up...I dug into the diagrom code and I gather it wants the lower byte to be $40. My 68000 assembly is not great.

I have several ATA devices that all assert $50 on the lower byte of the status register. I am not sure why the discrepancy.
jasonsbeer is offline  
Old 28 November 2022, 17:26   #3
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
Is it worth reading the HDL for an open source Gayle IDE controller?

http://www.mklboards.fi/ide/ide68k.html

It's written in ABEL but you can easily convert to Verilog

(I just noticed, this is what I wrote last time you posted, sorry )

Last edited by alexh; 28 November 2022 at 17:38.
alexh is offline  
Old 28 November 2022, 17:50   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,517
$50 is normal result (bit 6 = $40 = Drive Ready, bit 4 = $10 = Drive Seek Complete). $10 is obsolete but most devices still set it (and many old IDE drivers expect it)

Only important bits are 7 (BSY), 6 (DRDY) and 0 (ERR). Other bits should be masked when testing drive ready state.
Toni Wilen is offline  
Old 28 November 2022, 19:54   #5
jasonsbeer
Registered User
 
jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 150
Quote:
Originally Posted by Toni Wilen View Post
$50 is normal result (bit 6 = $40 = Drive Ready, bit 4 = $10 = Drive Seek Complete). $10 is obsolete but most devices still set it (and many old IDE drivers expect it)

Only important bits are 7 (BSY), 6 (DRDY) and 0 (ERR). Other bits should be masked when testing drive ready state.
Excellent information. Thanks for verifying this information. Its good to know I have not gone crazy...yet.

I'll post an issue on the Diagrom github page.
jasonsbeer is offline  
Old 28 November 2022, 23:00   #6
jasonsbeer
Registered User
 
jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 150
So...when Gayle hunts for a ready drive, does it also look for $40 on the status register? If yes, it may explain Gayle's affinity for certain brands/models of ATA devices.

Edit: Maybe not Gayle...but Amiga OS.
jasonsbeer is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A2000 Repair - Help translating diagrom monitor output for chipram test issue snowpile79 support.Hardware 6 02 September 2021 08:23
Gayle in A500+ bebek Hardware mods 14 25 May 2019 00:36
In search for defective custom ICs to test DiagROM Chucky support.Hardware 2 11 May 2015 18:49
Overheating Gayle tygre support.Hardware 9 16 May 2011 05:04
Gayle Datasheet: Thanks Oli_HD support.Hardware 2 05 March 2008 23:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:57.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09173 seconds with 16 queries