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.

SD card interfacing with AVR/8051 microcontroller

Status
Not open for further replies.

sukhdeepmankoo

Member level 2
Joined
May 14, 2009
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,616
Hi,
I am trying to interface the SD Card with AVR(Atmega8/16). how can i do so. Kindly tell me, i do not know any thing about it.

Thanks
 

hi:
SD card can work at SPI mode,And Mega have a SPI conntroler,so you can connect thew with the SPI bus.
I have done a mp3 player using SD cart and Mega16.If you need help ,Contact me!@@@
My Email: wisure.ele@gmail.com

Why dont you share here, so that everyone shall be benifitted - Mod
 

use mikroC compiler.It has functions for writing and reading to SD card otherwise it is very difficult to do.
2nd thing is that most microcontrollers work on 5 volt while SD card work on 3.3 volts so you need a resistive voltage divider between MCU and SD card.
 
First of all Thanks to all of you for your response.

Second thing i am trying to interface SD card with Atmega8 who is operating on 3.3V.

I am not able to initialize the SD Card. i am getting 0xff.
Kindly help me to sort out the problem.
Thanks
 

I said u this is extremely difficult to work on FAT16 or FAT32 without using libraries...use mikroC compiler ,in that compiler total code will be of few lines ,that compiler comes with an example of interfacing SD card with complete code and schematic.
 

Add a simple picture.Wish it can help you!
good luck!
 

SD card interfacing with Atmega8

Hi,
I got success and able to read the SD card.
But i have some doubts.
When i am reading CID and CSD.
then it gives
0 255 254 before sending the value of CID and CSD.
But when i am reading OCR.
Then it gives
0 before sending the value of OCR.
why it gives these values and why it behaves different for reading these SD's Registers.
Thanks
 

Thanks to all of u.............
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top