EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Looking for help! Accessing SD card using SPI mode

Started by cade June 9, 2009
I am currently develop a data logger system using MC68HC11A0 microprocessor
with expanded mode.

I am a bit confused with the mass information that i get from the
internet. Maybe someone who had done it before can provide me the schematic
diagram to connect the SD card using SPI mode?

Please send me the related source code to access the SD card if possible.
Thanks.


On Tue, 09 Jun 2009 06:38:38 -0500, "cade" <cadechan@yahoo.com> wrote:

>I am currently develop a data logger system using MC68HC11A0 microprocessor >with expanded mode. > >I am a bit confused with the mass information that i get from the >internet. Maybe someone who had done it before can provide me the schematic >diagram to connect the SD card using SPI mode? > >Please send me the related source code to access the SD card if possible. >Thanks.
As you say, there are lots of places around the 'net that have some or all of this. One that does tie it all together rather well was the series in Circuit Cellar earlier this year. Hop over to http://www.circuitcellar.com and look at issues 222 and 223. -- Rich Webb Norfolk, VA
On Tue, 09 Jun 2009 08:50:31 -0400, Rich Webb
<bbew.ar@mapson.nozirev.ten> wrote:

>On Tue, 09 Jun 2009 06:38:38 -0500, "cade" <cadechan@yahoo.com> wrote: > >>I am currently develop a data logger system using MC68HC11A0 microprocessor >>with expanded mode. >> >>I am a bit confused with the mass information that i get from the >>internet. Maybe someone who had done it before can provide me the schematic >>diagram to connect the SD card using SPI mode? >> >>Please send me the related source code to access the SD card if possible. >>Thanks. > >As you say, there are lots of places around the 'net that have some or >all of this. > >One that does tie it all together rather well was the series in Circuit >Cellar earlier this year. Hop over to http://www.circuitcellar.com and >look at issues 222 and 223.
Thats no good, read what the OP said. The OP wants YOU to send the related source code. I should have done this when I studied engineering, would have been a lot easier.
In article <ptpu2555d2smnnvhe6phqgulo3jdn2fiik@4ax.com>, 
therealandy@nospam.com says...
> On Tue, 09 Jun 2009 08:50:31 -0400, Rich Webb > <bbew.ar@mapson.nozirev.ten> wrote: > > >On Tue, 09 Jun 2009 06:38:38 -0500, "cade" <cadechan@yahoo.com> wrote: > > > >>I am currently develop a data logger system using MC68HC11A0 microprocessor > >>with expanded mode. > >> > >>I am a bit confused with the mass information that i get from the > >>internet. Maybe someone who had done it before can provide me the schematic > >>diagram to connect the SD card using SPI mode? > >> > >>Please send me the related source code to access the SD card if possible. > >>Thanks. > > > >As you say, there are lots of places around the 'net that have some or > >all of this. > > > >One that does tie it all together rather well was the series in Circuit > >Cellar earlier this year. Hop over to http://www.circuitcellar.com and > >look at issues 222 and 223. > > Thats no good, read what the OP said. The OP wants YOU to send the > related source code. I should have done this when I studied > engineering, would have been a lot easier.
At times like this you really want a library of spaghetti code written in ALGOL or Fortran or [insert suitable unlikely language or no longer available processor assembler here]... -- Paul Carpenter | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font <http://www.gnuh8.org.uk/> GNU H8 - compiler & Renesas H8/H8S/H8 Tiny <http://www.badweb.org.uk/> For those web sites you hate
In article <MPG.2499836737e75f7b9896f6@172.16.0.1>, 
paul@pcserviceselectronics.co.uk says...
> > At times like this you really want a library of spaghetti code written > in ALGOL or Fortran or [insert suitable unlikely language or no longer > available processor assembler here]...
Great. Now someone will post that they are in "univ" and that they are making spaghetti and then insist that you send them speghetti code. :-P Perhaps I'm doing my work all wrong. I should just insist that someone send to me completed code. Is that what engeneers are now days? I can imagine the interview: "Tell me what code you have written." "None, really. I just got the code sent to me by asking for it."
"cade" <cadechan@yahoo.com> wrote in message 
news:U5idnfe9hZUj1LPXnZ2dnUVZ_vCdnZ2d@giganews.com...
>I am currently develop a data logger system using MC68HC11A0 microprocessor > with expanded mode. > > I am a bit confused with the mass information that i get from the > internet. Maybe someone who had done it before can provide me the > schematic > diagram to connect the SD card using SPI mode? > > Please send me the related source code to access the SD card if possible. > Thanks. > >
Hi Cade, One study you may find useful is for the 8052 microcontroller. You can easily construct a data logging system with the CompactFlash and SD card implementations. A FAT16 filesystem is available as a value extra. http://members.iinet.net.au/~vanluynm/ Regards, Tressie. http://members.iinet.net.au/~vanluynm/Embedded_8051_TCPIP_Webserver.php
You can also read the tutorial here:

http://www.8051projects.net/mmc-sd-interface-fat16/

It's a step by step method for using Chan's library, which can be found
here:

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

Hope this helps,

Dave


If you're looking for an alternative FAT FS, check out FullFAT:

http://fullfat.googlecode.com and:
http://www.fullfat-fs.co.uk

James

Memfault Beyond the Launch