rastan
- 26th March 2005, 23:08
hi ive been trying to interface my 16f877a with a samsung shd-30560A hard disk drive. its ATA-2 spec at 560MB.
the attatched code does not read properly from the drive, a previous test (also attatched) where it requests the drives information does work.
For the program that doesnt work, i got the following output
Ready to Initialize
head register = 0
Writing: 11100000
head register = 11100000
LBA Mode Activated
System Initialized and ready
Writing to number of sectors register
Writing to LBA
Writing to command register
Information:
error register = 0
Spin down
as you can see, there is no information being passed back, but the error register is still empty. as if the wrong command is being passed.
unfortunatly i couldnt upload the ata2 standard paper for reference because the filesize was too big. it can be found easily on the net. cant remember where i got it from though :)
thanks everyone for the help
phil
the attatched code does not read properly from the drive, a previous test (also attatched) where it requests the drives information does work.
For the program that doesnt work, i got the following output
Ready to Initialize
head register = 0
Writing: 11100000
head register = 11100000
LBA Mode Activated
System Initialized and ready
Writing to number of sectors register
Writing to LBA
Writing to command register
Information:
error register = 0
Spin down
as you can see, there is no information being passed back, but the error register is still empty. as if the wrong command is being passed.
unfortunatly i couldnt upload the ata2 standard paper for reference because the filesize was too big. it can be found easily on the net. cant remember where i got it from though :)
thanks everyone for the help
phil