Datasheet
MULTI MEDIA CARD LIBRARY
The Multi Media Card (MMC) is a flash memory card standard. MMC cards are cur-
rently available in sizes up to and including 1 GB, and are used in cell phones, mp3
players, digital cameras, and PDA’s.
mikroC PRO for AVR provides a library for accessing data on Multi Media Card via
SPI communication.This library also supports SD(Secure Digital) memory cards.
Secure Digital Card
Secure Digital (SD) is a flash memory card standard, based on the older Multi Media
Card (MMC) format.
SD cards are currently available in sizes of up to and including 2 GB, and are used
in cell phones, mp3 players, digital cameras, and PDAs.
Notes:
- Routines for file handling can be used only with FAT16 file system.
- Library functions create and read files from the root directory only;
- Library functions populate both FAT1 and FAT2 tables when writing to files,
but the file data is being read from the FAT1 table only; i.e. there is no
recovery if FAT1 table is corrupted.
- Prior to calling any of this library routines, Spi_Rd_Ptr needs to be initial-
ized with the appropriate SPI_Read routine.
External dependecies of MMC Library
323
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
The following variables must be
defined in all projects using
Manchester Code Library:
Description: Example:
extern sfr sbit
Mmc_Chip_Select;
Chip select pin.
sbit
Mmc_Chip_Select at
PORTG.B1;
extern sfr sbit
Mmc_Chip_Select_Direction;
Direction of the chip
select pin.
sbit
Mmc_Chip_Select_Di
rection at
DDRG.B1;