Any interest in an ARM version of SdFat

That would work fast enough to save an image I do not own the camera module yet as I am still learning alot and will save that for latter and it appears you are getting more out of your library than I am maybe it is the way I am reading the data maybe instead of just doing

OCR2B = myfile.read();

I should have 2 buffers and I could play buffer 1 while playing buffer 2.

Is this for real? This won't give you any performance.

OCR2B = myfile.read();

I am trying to understand. Are you a young student trying to learn electronics?

I am not a young student but I am a beginner to electronics and programming and I did come up with a solution by using 2 512 byte buffers and I can play buffer one while loading data into buffer 2.

I did come up with a solution by using 2 512 byte buffers and I can play buffer one while loading data into buffer 2.

Sorry that idea is from the 1960s and I was there. Actually we used circular buffers which is a better idea. If you want to be more than a dabbler go to school.

You need to learn about the internals of SD cards and how that relates to file systems. That's how you get performance.

Fyi - SDIO and SPI pinout (from pinouts.ru) I-input, O-output, PP-push-pull, OD-open drain, S-power

sdcardpinout.jpg

That's the full SD pinout and I'm using microSD.

Is SDIO not compatible with microSD then?


Rob

Of course microSD does support SDIO. The microSD omits pin 3 (VSS). So as the above pinout:
1 2 4 5 6 7 8 9 (contacs side view 9 1 2 4 5 6 7 8 then).

OK from that it seems that the following is the pin mapping for the two using the microSD pinout I've got from several sources.

microSD SDIO
1 DAT2 DAT3
2 DAT3 CMD
3 CMD GND1
4 VCC VCC
5 CLK CLK
6 GND GND2
7 DAT0 DAT0
8 DAT1 DAT1
9 DAT2

So while very similar they are not physically compatible which I find unbelievable if true.

EDIT: It looks like SDIO is not compatible with microSD, from the "Simplified SDIO Card Spec"

The SDIO definition encompasses different form factors:
• Full-Size SDIO — compatible with host sockets designed for SD memory cards
• miniSDIO — compatible with host sockets designed for miniSD memory cards

No mention of microSD.

MicroSD cards are SDIO devices.

That's what the adapter you get with a MicroSD shows. It connects the correct MicroSD pins to the SD connector and a PC/Mac used the SDIO to access it.

MicroSD cards are SDIO devices.

Sorry but I'm being a bit thick with this then.

In the spec I see no mention of microSD, just mini and full-size.

The pinouts in my last post are not compatible and I can't find an SDIO pinout that's microSD compatible anywhere.

I cannot use an adaptor because microSD is already the smallest.

What am I missing here?

Or are you saying that my above 8-pin microSD pinout is also an 8-pin SDIO pinout, all the other stuff is just for adapting microSD cards to larger sockets etc and for my processor board is of no concern to me.


Rob