I have a need to write small amounts of data to an SD card. The data comes in discontinuous flurries of 4 byte chunks and I have about 7mS between chunks to write the 4 bytes to SD (and hopefully to RS232). A normal incident will have a total of 200-532 bytes but there may be incidents that have thousands of bytes.
The examples I've found so far write 512 bytes at a time, using FRAM or RAM to accumulate a page prior to writing. I'd prefer to write each 4 byte chunk as it occurs.
Is it possible to write smaller amounts than 512 bytes? Does anyone have a URL to an explanation of reading/writing to SD? Better yet, does anyone have an example of writing small amounts of data to SD?


 
		
		 
			 
			 
			 
					
					 Writing to SD card
 Writing to SD card
		 
						
					

 Originally Posted by bbarney
 Originally Posted by bbarney
					


Bookmarks