Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | HC12 and SD card

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

HC12 and SD card - adeshere - Apr 15 10:54:40 2008

Hi,

I am trying to talk to an SD card via SPI.

I can set up the card and read the CSD CSI registers.

BUT

When i read data from sector 0, i get the FF 00 to indicate that the
command was received correctly and then i eventually get the FE to
indicate the data is next.

The data i get back is just 00 00 00 00 00 ....

I've tried many cards

Any ideas ?

regards

Adrian
------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: HC12 and SD card - "smith.jeff28" - Apr 15 11:39:23 2008

What board are you using?

What do plan to do with it?

Have gotten chan's code?

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

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: HC12 and SD card - adeshere - Apr 15 12:29:31 2008

--- In 6...@yahoogroups.com, "smith.jeff28" wrote:
>
> What board are you using?
>
> What do plan to do with it?
>
> Have gotten chan's code?
>
> http://elm-chan.org/fsw/ff/00index_e.html
>

I am using it with a HCS12 processor.

I am trying to access the sectors on the disk and will then implement a
fat filing system
------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: HC12 and SD card - "smith.jeff28" - Apr 15 15:37:12 2008

--- In 6...@yahoogroups.com, "adeshere" wrote:
>
> --- In 6...@yahoogroups.com, "smith.jeff28" wrote:
> >
> > What board are you using?
> >
> > What do plan to do with it?
> >
> > Have gotten chan's code?
> >
> > http://elm-chan.org/fsw/ff/00index_e.html
> > I am using it with a HCS12 processor.
I figured that, my question was specifically what brand name board.
>
> I am trying to access the sectors on the disk and will then implement a
> fat filing system
>

Get the code the link I gave you - it is already done.

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: HC12 and SD card - Jean-Sebastien Bouchard - Apr 15 22:00:39 2008

After the data block(512 bytes), do you get the CRC code then back to FF?

What command are you trying, Single block read or Multiple block read?

_____

From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] On Behalf Of
adeshere
Sent: April 15, 2008 10:53 AM
To: 6...@yahoogroups.com
Subject: [68HC12] HC12 and SD card

Hi,

I am trying to talk to an SD card via SPI.

I can set up the card and read the CSD CSI registers.

BUT

When i read data from sector 0, i get the FF 00 to indicate that the
command was received correctly and then i eventually get the FE to
indicate the data is next.

The data i get back is just 00 00 00 00 00 ....

I've tried many cards

Any ideas ?

regards

Adrian

[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )