Mikroelektronika MIKROE-742 데이터 시트
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.
mikroPascal 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.
mikroPascal 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
271
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
The following variables
must be defined in all
projects using Sound
Library:
Description:
Example :
var Mmc_Chip_Select :
sbit; sfr; external;
sbit; sfr; external;
Chip select pin.
var Mmc_Chip_Select
:
:
sbit at PINB.B0;
var
Mmc_Chip_Select_Direc
tion :
Mmc_Chip_Select_Direc
tion :
sbit; sfr;
external;
Direction of the chip select pin.
var
Mmc_Chip_Select_Dir
ection :
Mmc_Chip_Select_Dir
ection :
sbit at
DDRB.B0;