hello everybody
i am trying to build an mp3 player from the ground up. its similar to those you find on the net. currently am trying to do is getting data off the harddrive and no its not as easy i though it would be. faced a lot of problems in this stage including power problem, drive locking up (seagate).. .etc.
now after all those problem been sorted out, when i try reading a sector everything goes smooth except am getting all zeros. 512 bytes of it from any sector i read. + the activity led goes out when i read a full sector and the sector count register decrements by 1, which is good.
here is what am doing
1- setting up LBA address + (sector count =1).
2- issuing read sector command.
3- waiting for DRQ bit to be asserted.
4- reading 256 words into an array.
5- printing the array.
now some might suspect its a wiring problem, ive ruled that out because when i issue the drive a ID drive command it works great. reading drive ID data is same as reading a sector the difference is just in the command issued to the drive.
help me am stuck !