Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 27th January 2008, 07:27 AM   (permalink)
Default IDE HDD reading sector

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 !
v1r05 is offline   Reply With Quote
Old 27th January 2008, 02:00 PM   (permalink)
Default

Why torture youself?

The best way is to buy a mini-motherboard and install a small OS on the hard drive.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
Hero999 is offline   Reply With Quote
Old 27th January 2008, 02:21 PM   (permalink)
Default

Quote:
Originally Posted by Hero999
Why torture youself?

The best way is to buy a mini-motherboard and install a small OS on the hard drive.
You don't think a PC motherboard is a little 'overkill' for an MP3 player?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 27th January 2008, 04:22 PM   (permalink)
Default

yeah a whole computer is a total overkill + i want to learn new things and yeah its fun, but being stuck is bad, sad and woefully depressing.

how can i resolve this ?
v1r05 is offline   Reply With Quote
Old 27th January 2008, 04:38 PM   (permalink)
Default

You might try googling, there were a LOT of sites that had projects for accessing IDE HDD and CDROM's from PIC's - but I fear that a lot of the sites are no longer there!
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 27th January 2008, 09:49 PM   (permalink)
Default

Futz just posted some links to IDE drives on this thread:
http://www.electro-tech-online.com/m...rough-pic.html
BeeBop is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Eclipse IDE for ARM, AVR, and PIC? linuxguy Micro Controllers 9 29th September 2007 05:13 PM
ADC reading hjl4 Micro Controllers 37 13th April 2007 11:28 AM
rms reading mpj111 General Electronics Chat 3 10th July 2006 12:36 PM
is reading lots of schematics the best way to learn? psasidisrcum General Electronics Chat 17 18th April 2005 08:57 PM
Specifications Applied Caltech General Electronics Chat 1 25th December 2003 05:00 PM



All times are GMT. The time now is 05:27 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.