How to caculate the needed capacity of the SD flash memory card

Click For Summary

Discussion Overview

The discussion revolves around calculating the necessary capacity of an SD flash memory card for data logging with a microcontroller. It includes considerations of data output rates, memory organization, and potential issues with addressability.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant suggests calculating memory capacity by multiplying the data output per second by the total recording time.
  • Another participant emphasizes the importance of understanding flash memory organization and the need for a Flash File System (FFS) due to endurance limits and the write process, which may require additional memory capacity for journaling.
  • A participant raises a concern about the accessibility of memory addresses on larger SD cards when interfacing with the MSP430F2274 microcontroller.
  • Another participant responds that addressing issues are manageable due to the serial interface of the SD card, suggesting that any microcontroller should be able to address any card available.

Areas of Agreement / Disagreement

Participants express differing views on the implications of memory capacity and organization, particularly regarding the need for a Flash File System and potential addressability issues, indicating that multiple competing views remain.

Contextual Notes

Limitations include the dependence on specific microcontroller capabilities and the potential for data loss during write processes, which may affect the overall memory requirements.

Who May Find This Useful

Individuals interested in microcontroller interfacing, data logging applications, and flash memory management may find this discussion relevant.

mz8e08
Messages
3
Reaction score
0
Hi, I going to interface a microcontroller with SD flash memory card for data log. How to caculate the needed memory capacity?

Thanks
 
Engineering news on Phys.org
The number of bytes your datalogger will put output per second times the number of seconds you want to record. Alternately, the number of bytes per sample times the number of samples per second times the number of seconds of desired recording time.
 
mz8e08 said:
Hi, I going to interface a microcontroller with SD flash memory card for data log. How to caculate the needed memory capacity?

Thanks

Beyond negitron's answer, there are a bunch of things you need to look into before deciding. Flash memory is organized by sectors, where to write a byte in a sector, you need to first read the whole sector into your local RAM, erase the whole flash sector, change the byte in your local RAM copy, and then write the whole sector back to the flash.

Since the flash memory has a limited endurance (how many times it can be erased and re-written), and since you may accidentally get reset or lose power during the flash write process, you will generally use (or write) a "Flash File System" to manage the whole flash memory process. Using a FFS increases the required size of the flash memory, since multiple copies of things are kept at different times (a concept called "journaling").


This wikipedia article gives a pretty good description:

http://en.wikipedia.org/wiki/Flash_memory

.
 
Hi berkeman,
I've planned to choose a SD card, and thought the bigger capacity the better. But, will it happen that some of the memory addresses can not be accessed? I chosed the msp430F2274 microcontroller.
 
Last edited:
Oh, that's an entirely different question than what it appeared you were asking about. There are a number of ways to tackle addressability issues but in this case, it's particularly simple, since the SD card uses a serial interface:

http://www.interfacebus.com/Secure_Digital_Card_Pinout.html

Any uC should be able to fully address any card on the market.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 46 ·
2
Replies
46
Views
8K
Replies
5
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
9K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
1
Views
7K