Discussion in "8051 Discussion Forum" started by    duncan    Aug 3, 2008.
Sun Aug 03 2008, 07:38 pm
#1
Hi.....
I'm currently working on a mp3 project using 8051 Microcontroller. I'm facing problems in interfacing the SD Card. I have no idea on how to INITIALIZE the SD Card using C Code.Can anyone help me up with this problem. I need some examples of C Code to write a SPI software to interface with 8051 ATMEL Microcontroller. Hope can get some examples or any info from you. Your help is much appreciated.
Mon Aug 04 2008, 09:26 pm
#2
Its better to use a controller with onchip SPI coz MMC can go upto 5Mhz clock. Select a controller i will help you initializing ur MMC
Tue Aug 05 2008, 03:28 pm
#3
Dear Ajay,

Sorry to tell you that I must use the 8051 micro controller for this projects. I know that this microcontroller does not have SPI on it. Can you guide me on the initialisation with this controller?
Tue Aug 05 2008, 09:45 pm
#4
sure lucky. you will be able to do it yourself soon.

Bitbanging SPI on 8051 i did not tested yet. but i think it would be better if you use a hardware one
Tue Aug 05 2008, 10:27 pm
#5
Use a P89V51RD2 with hardware SPI and lots more...
A plain vanilla 8051 is not suitable for this project.
Wed Aug 06 2008, 10:44 am
#6
i agree....

plus when u wud look for the controller to PC portability u will be needing extra RAM and Code memory as well!!
Sun Aug 10 2008, 11:12 pm
#7
What if i use AT89C51ED2. This microcontroller can interface a sd card in spi mode? can anyone help me?
Tags microcontrollersd cardinterface
Mon Aug 11 2008, 01:18 pm
#8
ED2 best i say.. got for it..
Sat Aug 30 2008, 07:05 am
#9
I'm attempting to interface to an SD card using an AT89C51ED2 in SPI mode. I have no idea how to set the SPI clock to 400kHz for SD initialization. Can anyone help me up with this problem?
Sun Aug 31 2008, 02:04 am
#10
what is clock frequency are you using for controller?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Michailqfh
Fri Mar 29 2024, 01:53 am
Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm