Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 27, 2024, 09:31:52 21:31


Login with username, password and session length


Pages: [1]
Print
Author Topic: SD card Interfacing with 8051(P89v51rd2)  (Read 8355 times)
0 Members and 1 Guest are viewing this topic.
SANEMB
Newbie
*
Offline Offline

Posts: 27

Thank You
-Given: 3
-Receive: 0


« on: September 04, 2012, 07:09:47 07:09 »

i want to interface sd card with p89v51rd2,wat is the hardware interface bz for sd card requires 3.3 v supply but p89v51rd2 has minimum 4.5 v supply is required please suggest.

suggest a circuit diagram

Thanks in advance
Logged
pablo2048
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 136
-Receive: 86


« Reply #1 on: September 04, 2012, 07:53:10 07:53 »

Use the same schematic as for older AVR CPUs which have same 5V power supply. (If you are too lazy to search internet, use this http://project.irone.org/interface-avr-with-sd-card.html for example...)
Logged
rentau
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 10
-Receive: 15


« Reply #2 on: September 05, 2012, 04:18:08 16:18 »

you can have level shiftier, to convert 5 to 3 and v.v...

and for SW, this is a good module to use

http://elm-chan.org/fsw/ff/00index_e.html
Logged

everything has its beginning ,not all has its end~
wellnerson1
Active Member
***
Offline Offline

Posts: 123

Thank You
-Given: 34
-Receive: 152


« Reply #3 on: September 05, 2012, 04:26:17 16:26 »

Dear friend,
See this link may be useful for you.
http://www.dharmanitech.com/
http://www.dharmanitech.com/2011/05/microsd-atmega32-datalogger.html
Logged
Brosske
Active Member
***
Offline Offline

Posts: 105

Thank You
-Given: 75
-Receive: 292



« Reply #4 on: September 05, 2012, 04:50:42 16:50 »

Hi all,

Look in the datasheet if the logic '1' level for the p89v51rd2 is detected on 3.3V. Sometimes the chip is compatible...
For the signals that go to the SD-card, I use 10k resistor.

But I agree that level-shifter is more proper way to do it.

greetz.
Logged

Do or do not - there is no try
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #5 on: September 06, 2012, 05:20:33 05:20 »

You should Google before you waste everyone's time asking here. No problem answering questions to help you understand a particular problem, but you should at least make an effort on your own.

See the 1st hit.

http://www.google.com/search?q=8051+sd+card
Logged
flo0319
Junior Member
**
Offline Offline

Posts: 81

Thank You
-Given: 7
-Receive: 17


« Reply #6 on: October 24, 2012, 10:59:36 22:59 »

Hi, if you want to interface a SD/MMC card with a MCU using SPI bus you need to know that the SPI lines are unidirectional and signal is digital and if your MCU work at 5V you can use 2 simple method for level voltage shift: 1) zenner diode 3v3(or 3v6) between MOSI,SCK,CS line and Ground; 2) resistors (1K - 10K ohms, depends of mcu output current on pin) in series with MOSI,SCK and CS line. Other method like a voltage divider are not so good because after Init a memory card need to work at a high speed and signal wave is change from square in sine (partial, but at a very high speed is a problem with the sample moment).


Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC