English Amiga Board


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

 
 
Thread Tools
Old 27 November 2022, 23:11   #1
jasonsbeer
Registered User

jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 135
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:	74
Size:	503.4 KB
ID:	77249  
jasonsbeer is offline  
Old 28 November 2022, 17:51   #2
jasonsbeer
Registered User

jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 135
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, 18:26   #3
alexh
Thalion Webshrine
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 13,570
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 18:38.
alexh is offline  
Old 28 November 2022, 18:50   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 47
Posts: 25,735
$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, 20:54   #5
jasonsbeer
Registered User

jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 135
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 29 November 2022, 00:00   #6
jasonsbeer
Registered User

jasonsbeer's Avatar
 
Join Date: May 2020
Location: Iowa, USA
Posts: 135
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 09:23
Gayle in A500+ bebek Hardware mods 14 25 May 2019 01:36
In search for defective custom ICs to test DiagROM Chucky support.Hardware 2 11 May 2015 19:49
Overheating Gayle tygre support.Hardware 9 16 May 2011 06:04
Gayle Datasheet: Thanks Oli_HD support.Hardware 2 06 March 2008 00: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 16:20.


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