| ??? 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 |



