Searching \ for '[PIC] MMC card to PIC using SPI' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=spi
Search entire site for: 'MMC card to PIC using SPI'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] MMC card to PIC using SPI'
2005\04\30@063153 by L030010

picon face
Hi all

Do any one have experience in interfacing the MMC card with PIC using the
SPI? any sample code to help out a starter like me?

I am hoping to use the 18F to do the interfacing

and does the brand of the MMC card i use matters?

Regards

2005\04\30@071430 by Russell McMahon

face
flavicon
face
> Do any one have experience in interfacing the MMC card with PIC
> using the SPI? any sample code to help out a starter like me?
>
> I am hoping to use the 18F to do the interfacing
>
> and does the brand of the MMC card i use matters?

Let's see if I can seduce you to the dark side :-).
The BASCOM compiler, which works on 8051 and AVR,  has functions for
Flash interface built in. Also useful things like AT keyboard, 1 wire,
multiple UARTS, SPI on any pins, LCD interface, 1 Wire, IIC in
software and far more.

It's free up to 4K code which is probably enough for the Flash code
(I've never tried it).

A programmer can be built for a dollar or so of parts.

The Studio software (equivalent to PIC MPLAB) is also free.

Tempted?



       RM

2005\04\30@075213 by L030010

picon face
Thanks for the reply

I have considered that really wish i can just do that but it seem that the
size of the audio files that i am dealing with is more than that. that is
the main reason why i hope to use a mmc card .

Regards




WebSite : http://soonlee.agreatserver.com
{Original Message removed}

2005\04\30@123531 by Dave Lag

picon face
And this all fits in a TINY11? :o
D

Russell McMahon wrote:

{Quote hidden}

2005\04\30@124124 by Dave VanHorn

flavicon
face
At 11:37 AM 4/30/2005, Dave Lag wrote:
>And this all fits in a TINY11? :o
>D
>
>Russell McMahon wrote:
>
>>The BASCOM compiler, which works on 8051 and AVR,  has functions
>>for Flash interface built in. Also useful things like AT keyboard,
>>1 wire, multiple UARTS, SPI on any pins, LCD interface, 1 Wire, IIC
>>in software and far more.

I've seen three-pin LCD interfaces. Takes an external latch chip to
drive the LCD though.

The multiple uarts would be impressive, but I don't know what you'd
DO with it :>)

2005\04\30@133645 by George Smith

flavicon
face
On 30 Apr 2005, at 11:41, Dave VanHorn wrote:

> The multiple uarts would be impressive, but I don't know what you'd
> DO with it :>)

Well, i may soon be doing a pcb taking selected data from a serial link (to a
remote display) and printing this (plus other stuff) to a serial receipt printer -
and I will probably need another port for a laptop connection for time/date
setting...


George Smith

2005\04\30@134853 by Dave VanHorn

flavicon
face
At 12:07 PM 4/30/2005, George Smith wrote:
>On 30 Apr 2005, at 11:41, Dave VanHorn wrote:
>
> > The multiple uarts would be impressive, but I don't know what you'd
> > DO with it :>)
>
>Well, i may soon be doing a pcb taking selected data from a serial link (to a
>remote display) and printing this (plus other stuff) to a serial
>receipt printer -
>and I will probably need another port for a laptop connection for time/date
>setting...



Not in a tiny-11 though! :)

Hmm.. Sounds point-of-sale-ish.



'[PIC] MMC card to PIC using SPI'
2005\05\01@010910 by L030010
picon face
So have any one imprement this on 16 or 18 series in asm coding?

i do not have a c complier so will be uisng asm

please advise

regards

WebSite : http://soonlee.agreatserver.com
{Original Message removed}

2005\05\01@044058 by Shawn Tan Ser Ngiap

flavicon
face
On Sunday 01 May 2005 06:09 am, L030010 wrote:
> So have any one imprement this on 16 or 18 series in asm coding?
> i do not have a c complier so will be uisng asm
> please advise

Interfacing via SPI to the MMC is well documented... Just send the command
codes down the SPI channel... But what I think you're looking for is the way
to access the FAT file system... That's a little trickier (plus an issue of
file system royalties)... If there is no need to use the FAT file system, you
could try rolling your own simple file system instead..

cheers..

--
with metta,
Shawn Tan

2005\05\01@060815 by Russell McMahon

face
flavicon
face
> ... But what I think you're looking for is the way
> to access the FAT file system... That's a little trickier (plus an
> issue of
> file system royalties)...

Royalties on the FAT file system, if they apply at all, relate to only
certain specific implementations. It's a good idea not to risk scaring
people by making a general statement without explanation.

And the special case is still the subject of debate. Google know all
about it.


       RM

2005\05\01@145312 by Wouter van Ooijen

face picon face
> Interfacing via SPI to the MMC is well documented...

It is? Gimme an URL! All I have so far is a number of projects that do
this, and some official document that shows the command format but not
the commands itself!

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\05\01@170128 by Shawn Tan Ser Ngiap

flavicon
face
On Sunday 01 May 2005 11:04 am, Russell McMahon wrote:
> > ... But what I think you're looking for is the way
> > to access the FAT file system... That's a little trickier (plus an
> > issue of
> > file system royalties)...
>
> Royalties on the FAT file system, if they apply at all, relate to only
> certain specific implementations. It's a good idea not to risk scaring
> people by making a general statement without explanation.

Okay.. my bad... for not forming my statement properly..

> And the special case is still the subject of debate. Google know all

Yeah, that's why I suggested rolling a simple FS instead of using FAT, if it
is not necessary...

cheers...

--
with metta,
Shawn Tan

2005\05\01@170132 by Shawn Tan Ser Ngiap

flavicon
face
On Sunday 01 May 2005 07:53 pm, Wouter van Ooijen wrote:
> > Interfacing via SPI to the MMC is well documented...
>
> It is? Gimme an URL! All I have so far is a number of projects that do
> this, and some official document that shows the command format but not
> the commands itself!

Can't remember where I found it... probably from googling around... But I
downloaded it from the internet, the MMC Product Manual.. Might be the same
doc you have.. It says that the command "bits" in the command field is the
number for the command.. ie. CMD39 is "100111"...

cheers..

--
with metta,
Shawn Tan

2005\05\01@184114 by Russell McMahon

face
flavicon
face
>> > Interfacing via SPI to the MMC is well documented...

> ... the MMC Product Manual.. Might be

Here

       http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf




                               RM

2005\05\01@221949 by Chetan Bhargava

picon face
My blog has a MMC-MSP430 interface example. Try to look at the code
and modify for PIC.

Regards,

--
Chetan Bhargava
Web: http://www.bhargavaz.net
Blog: http://microz.blogspot.com


On 4/30/05, L030010 <spam_OUTl030010TakeThisOuTspamsingnet.com.sg> wrote:
> Thanks for the reply
>
> I have considered that really wish i can just do that but it seem that the
> size of the audio files that i am dealing with is more than that. that is
> the main reason why i hope to use a mmc card .
>
> Regards
>
> WebSite : http://soonlee.agreatserver.com

2005\05\02@020914 by Chetan Bhargava

picon face
I would love a MMC interface on my ZX81 instead of a micro drive ;-)


--
Chetan Bhargava
Web: http://www.bhargavaz.net
Blog: http://microz.blogspot.com

2005\05\02@025913 by Russell McMahon

face
flavicon
face
>I would love a MMC interface on my ZX81 instead of a micro drive ;-)

That would not be at all hard to do in BASIC!
Probably a parallel printer port would be useful for this, or one of
the after market add on parallel port cards of the day.


       RM

2005\05\02@032334 by Wouter van Ooijen

face picon face
> Can't remember where I found it... probably from googling
> around... But I
> downloaded it from the internet, the MMC Product Manual..
> Might be the same
> doc you have.. It says that the command "bits" in the command
> field is the
> number for the command.. ie. CMD39 is "100111"...

Does it also state what the effect of CM39 is supposed to be?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\05\02@043239 by Russell McMahon

face
flavicon
face
> Does it also state what the effect of CM39 is supposed to be?

               http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf

tells all.


       RM

2005\05\02@115012 by Shawn Tan Ser Ngiap

flavicon
face
> Does it also state what the effect of CM39 is supposed to be?

Yeah it does... including what parameters to send and also what responses to
expect...

cheers..

--
with metta,
Shawn Tan

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...