Mikroelektronika MIKROE-350 Fiche De Données
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.
mikroBasic 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.
rently available in sizes up to and including 1 GB, and are used in cell phones, mp3
players, digital cameras, and PDA’s.
mikroBasic 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.
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
- 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.
table is corrupted.
- Prior to calling any of this library routines, Spi_Rd_Ptr needs to be initialized with
the appropriate SPI_Read routine.
External dependencies of MMC Library
255
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
The following variable
must be defined in all
projects using MMC
library:
Description:
Example :
dim Mmc_Chip_Select
as sbit sfr external
as sbit sfr external
Chip select pin.
dim Mmc_Chip_Select
as sbit at PINB.B0
as sbit at PINB.B0
dim
Mmc_Chip_Select_Direc
tion
Mmc_Chip_Select_Direc
tion
as sbit sfr
external
Direction of the chip select
pin.
pin.
dim
Mmc_Chip_Select_Direc
tion
Mmc_Chip_Select_Direc
tion
as sbit at
DDRB.B0