Re: ATAPI interrupt problem
Posted: Fri Jul 08, 2016 11:39 pm
Depending on the device, the specs say that it could take up to 30 seconds for the drive to be ready.
The ATAPI 6.0 specs say that you must have bit 2 set for no less than 5uS, then wait no less than 2uS after clearing it.
Then the device should move to the "HSR2: Check_status State". This is where the busy bit will be set until the drive is ready and then will move to the "HI0: Host_Idle State".
If you are reading a zero from the status register, then I don't know what to tell you other than check your delay code to make sure you are waiting that long.
The specs also say to read the Error Register to see if there was a successful reset (ending status).
Ben
The ATAPI 6.0 specs say that you must have bit 2 set for no less than 5uS, then wait no less than 2uS after clearing it.
Then the device should move to the "HSR2: Check_status State". This is where the busy bit will be set until the drive is ready and then will move to the "HI0: Host_Idle State".
If you are reading a zero from the status register, then I don't know what to tell you other than check your delay code to make sure you are waiting that long.
The specs also say to read the Error Register to see if there was a successful reset (ending status).
Ben