6
\$\begingroup\$

Is it possible to format an SPI EEPROM (such as AT24C128) to be used as an SD card? So format it with FAT 32 and have a 16MB drive appear in windows?

Thanks

\$\endgroup\$

2 Answers 2

5
\$\begingroup\$

Yes, it is possible, but you'd need some kind of controller, you couldn't just wire the eeprom directly. This is because the EEPROM does not speak SD card protocol. I would probably bypass SD completely, and just use USB. So something like:

SPI EEPROM <-SPI-> AVR <-USB-> PC

Look into the examples provided with the AVR USB library, Lufa, one of the examples shows exactly the above setup...except it's using an Atmel DataFlash instead of a SPI EEPROM. But it's possible, you'd just need to change the code which accesses the Flash to instead access the EEPROM.

\$\endgroup\$
2
\$\begingroup\$

Microchip also has an example of how to implement a USB mass storage device.

AN1189 - Implementing a Mass Storage Device

\$\endgroup\$
1
  • \$\begingroup\$ Link rotted. Here's a new one for AN1189: link \$\endgroup\$ Commented Sep 11, 2020 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.