Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/12/07 14:44
Read: times


 
Msg Score: +1
 +1 Informative
#148099 - SiLabs Example, ELM-chan.org and specs
Responding to: ???'s previous message
SiLabs Example, ELM-chan.org and specs

SiLabs Example
The links to SiLabs' app note and source code are here.
"AN189: MMC Data Logger Example"
http://www.silabs.com/public/do.../an189.pdf

AN189SW.zip
http://www.silabs.com/public/do...N189SW.zip

Unfortunately, the source code has these bugs.
It was discussed on this topic of SiLabs forum once.
"AN189 problem"
http://www.cygnal.org/ubb/Forum5/HTML/000867.html

Bugs and fixes

MMC_DataLogger.c in AN189SW.zip
1) line 959: SPI0DAT = 0x00; // <- 0xFF
The MCU sends a number of dummy bytes for BLOCK_READ

2) line 965: SPI0DAT = 0x00; // <- 0xFF
and line 969: SPI0DAT = 0x00; // <- 0xFF
The MCU sends a dummy byte to read CRC after BLOCK_READ


Perhaps you have to register in order to download this document.

You can download the zip file freely without registration.


Examples on ELM-chan.org
This site is helpful to understand MMC/SD handling.
Also, the FAT file system implementation is cool.

"How to Use MMC/SDC"
http://elm-chan.org/docs/mmc/mmc_e.html

"FAT File System Module"
http://elm-chan.org/fsw/ff/00index_e.html


Specs
Refer this SanDisk manual for the detailed MMC protocol.
"SanDisk MultiMediaCard and Reduced-Size MultiMediaCard - Product Manual v1.3"
http://www.sandisk.com/Assets/Fi...MCv1.3.pdf

Search "ProductManualSDCardv2.2final.pdf" on Gooooogle for SD card spec.
SanDisk had withdrawn it.

The protocol of SDHC is here
"SDHC Physical Layer Spec" from SD Card Specification
http://www.sdcard.org/about/memory_card/pls/

Tsuneo

List of 35 messages in thread
TopicAuthorDate
MMC card to 8052 interface            01/01/70 00:00      
   One possibility            01/01/70 00:00      
   SD in SPI mode            01/01/70 00:00      
      SD/MMC in SPI mode            01/01/70 00:00      
   Vinculum chip with USB-flash            01/01/70 00:00      
      USB Flash            01/01/70 00:00      
   VERY GOOD IDEA            01/01/70 00:00      
      Which idea??            01/01/70 00:00      
   MMC card to 8052 interface            01/01/70 00:00      
      File system?            01/01/70 00:00      
         Not necessary            01/01/70 00:00      
            File system, or not filesystem...?            01/01/70 00:00      
            lost interest or second option - USB            01/01/70 00:00      
               a breeze, stick a ftdi chip on the board            01/01/70 00:00      
                  Wrong - USB slave/master misx-up?            01/01/70 00:00      
                     USB Printer            01/01/70 00:00      
                        Well, I'll be...            01/01/70 00:00      
                     No, Erik is right            01/01/70 00:00      
                        Most of lasers?            01/01/70 00:00      
                           Re:Most of lasers            01/01/70 00:00      
                              Caveat Emptor            01/01/70 00:00      
                                 umm most lasers ..................            01/01/70 00:00      
                  Then Vinculum with a USB Stick            01/01/70 00:00      
               what kind of printer?            01/01/70 00:00      
               Why would you want to just print it?!            01/01/70 00:00      
                  It's a state requirement            01/01/70 00:00      
                     That explains a lot...            01/01/70 00:00      
                     not necessarily, but            01/01/70 00:00      
                        Oki still make dot matrix printers            01/01/70 00:00      
                           hope with OKI            01/01/70 00:00      
                              OKI's response posted            01/01/70 00:00      
                                 Oki            01/01/70 00:00      
                                    There are more...            01/01/70 00:00      
      SiLabs Example, ELM-chan.org and specs            01/01/70 00:00      
   File System            01/01/70 00:00      

Back to Subject List