SPI Interface
Neighborhood Physicist
Posts: 32
Would someone point me in the right direction?
I want to read and write data to and from an SD card.· I don't care about FAT file systems since this is a pure internal data logging app.·
Thanks.
I want to read and write data to and from an SD card.· I don't care about FAT file systems since this is a pure internal data logging app.·
Thanks.
Comments
http://obex.parallax.com/objects/92/
You have to call start first and supply a two long control block, then you call initSDCard to initialize the SD card routines. At that point, you can read and write to your content. It's possible to modify the Spin interface to do overlapped I/O. Currently the I/O routines wait for completion before returning.
With SPI, you also get I2C access including the ability to load and run Spin programs from EEPROM or an SD card area.
The SPI interface SD card is a fall back. I was going (and still may) to use a 256 MByte Micron NAND chip (8 bit parallel), but getting the TSOP soldered to a custom adapter board is a pain.