Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How can we interface microcontroller to SD memory card??

Status
Not open for further replies.

richa_eda

Newbie level 4
Joined
Jan 15, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Hyderabad
Activity points
1,322
I want to inter face my microcontroller with the micro SD card (as in our mobile) to save my vibration sensor data into memory...please suggest how??
 

U can use SPI to interface the hardware, it is the easiet method to interface sd card with microcontroller, for software use can use library like elm-chan fatfs for 8-bit uC's
 

thanx a lot 4 reply...but If microcontroller i m using is 16 bit (MSP430x20x2).
then how to interface any sd card to it
 

Firstly, you should check with the controller manufactures that if there are any libraries already provided for it. e.g. microchip provides this

If not then..

Even on a 16-bit microcontroller u can interface the sd card on spi, and you can use fatfs, only u need to take care of the data types defined in the header file
 

In microchip it is easily possible to interface with SD crad through FAT32 file system using SPI.
For MSP 430, the card (SDHC 4Go) is directly connected to
the microcontroller via its USCI (SPI) peripheral. You have to write the
basic SD access (register read / write, basically to find if a card is a
SDSC or SDHC, page read / write). Follow the reduced SD
specification to do so (CRC activated, waiting after any operation for
the card to leave the 'busy' state). On top of that you have to implement a
FAT32 filesystem driver that is able to create / delete, read / write
any file on the root directory (not directory handling, only short
filenames).
 

Dear there is a complete project on it in this book :

"Advanced PIC Microcontroller Projects in C From USB to RTOS with the PIC18F Series" by Dogan Ibrahim
 

Hello!

My reply will be simple: you cannot with a MSP430x20x2.
Well, it might be a little bit exagerated, but anyway it would be EXTREMELY
difficult.

Dora.


richa_eda said:
thanx a lot 4 reply...but If microcontroller i m using is 16 bit (MSP430x20x2).
then how to interface any sd card to it
 

I want to inter face my microcontroller with the micro SD card (as in our mobile) to save my vibration sensor data into memory...please suggest how??

Well........
Suggestions are given by all of them.
If u want the working code with 8 bit controller the contact me .
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top