Re: CF Driver for AVR

I need to plug in a CF card to an ATMega128 design. Does anyone know the

>best way to go about this, or at least the best place to start looking?

There are many open projects available in the internet that connect CF's to microcontrollers. A good source is i.e. one of the application notes from SanDisk which showes several ways to do this.

In short, it boils down to connecting A0-A2 D0-D7 /IOR, /IOW and /CS and following the protocol specs available from

formatting link
The only potential difficulty is to make sure that the timeing requierements form the CF are met and that the lines to the CF are reasonably short.

HTH

Markus

Reply to
Markus Zingg
Loading thread data ...

the

looking?

ethernut look on the hardware page

formatting link

or edtp.com 's ide interface

formatting link

Also think I saw a project for this on avrfreaks.com but I may be wrong.

Alex

Reply to
Alex Gibson

I'll recomand to use a MMC card. They are SPI compatible.

Reply to
www.ttdown.com

Where is the interface spec for MMC?

Reply to
James Dabbs

Fred Eady did an ATA hard drive controller design using the ATmega128 in the January 2003 issue of Circuit Cellar. The article is on-line at:

formatting link

--

Regards
David Milne
Reply to
dmmilne

Isn't CF basically IDE interface? Still works in 8-bit mode?

Reply to
""honeypot"

Basically yes. IDE used to work with 8 bit too. Problem these days is that you no longer find drives that can do it. CF cards however do support 8 bit mode which makes perfectly sense considering that they are most often used in embedded devices.

Markus

Reply to
Markus Zingg

As far as I know, IDE works in 8 bit software mode. I.e. just ignore the high byte. CF works in 8 bit hardware mode. You have to enable it with a hardware signal. In another word, can't do 8 bit IDE-CF.

IDE Compact Flash Drive

formatting link

Reply to
Sales for IDE-CF flash drive

CF work with True-IDE with 8 bits without hardware signal. by sending Set Feature Command ( EF h) Feature Register (01 h) : turn on 8 bits IDE Mode Feature Register (81 h) : turn off 8 bits IDE Mode

If You have the CF specification on your hand, you can take a look on Set Feature Command.

"Sales for IDE-CF flash drive" ??? news: snipped-for-privacy@posting.google.com ???...

Reply to
ellope (ALOP)

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.