<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IDE ATA Hard Drive with ATmega328p MCU as Controller Question</title><link>/products/arduino/b/blog/posts/ide-ata-hard-drive-with-atmega328p-mcu-as-controller-question</link><description>Hi All, I tried to open a discussion but the website wouldn&amp;#39;t publish it so I just created a quick blog about this project. I was planning to make a quick IDE hard drive controller with an ATmega328p, and was wondering if anyone might know ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: IDE ATA Hard Drive with ATmega328p MCU as Controller Question</title><link>https://community.element14.com/products/arduino/b/blog/posts/ide-ata-hard-drive-with-atmega328p-mcu-as-controller-question</link><pubDate>Thu, 01 Jan 2015 10:49:56 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8eded5c3-b8c0-4079-8ab6-57f366a03ead</guid><dc:creator>clem57</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Originally I tried to access the hard drive using Cylinder/Head/Sector (CHS) addressing, and it would not work properly. All of these early attempts were with a Western Digital 1.2 gig drive. I could read the first sector, C=0, S=0, H=0, also known as the Master Boot Record (MBR), but reading from other parts of the drive would not work. After much frustration,&lt;strong&gt; I discovered that the drive wanted to receive the Initialize Drive Parameters (0x91) command&lt;/strong&gt;. I didn&amp;#39;t find much documentation about this command on-line. I deleted all the code I wrote for CHS (except for printing info from the drive ID command).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sounds like that may be your problem!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Clem &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19586&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: IDE ATA Hard Drive with ATmega328p MCU as Controller Question</title><link>https://community.element14.com/products/arduino/b/blog/posts/ide-ata-hard-drive-with-atmega328p-mcu-as-controller-question</link><pubDate>Tue, 30 Dec 2014 07:13:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8eded5c3-b8c0-4079-8ab6-57f366a03ead</guid><dc:creator>iexpress</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;After trying for a few hours, I managed to be able to read the first set of data after issuing read device id command.&lt;/p&gt;&lt;p&gt;Still unsure what the sequence is to write sectors, but when I try to read a sector, it only hands me the first entry.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In this screenshot, the last entry in the terminal shows as 0xED which is the lower 8 bits of the first entry of the Device ID command.&lt;/p&gt;&lt;p&gt;Supposedly we&amp;#39;re supposed to read the data from register 0, but when I go to toggle the Read pin and reselect the Read pin, all entries after that are 0xFF, as if the entire device is disabled.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas what the proper sequence is for reading or writing to an IDE drive?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x388/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-8eded5c3-b8c0-4079-8ab6-57f366a03ead/4251.contentimage_5F00_182666.png:620:388]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19586&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>