Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IDE HDD reading sector problem

Status
Not open for further replies.

v1r05

Newbie level 4
Joined
Aug 19, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,334
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 as 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 and mean everything is working as it should be but unfortunately its not.

here is what am doing basically

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.(from data register certainly)
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 otherwise its the same steps and procedure.

help me am stuck ! :cry:

thanks[/quote]
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top