Micro SD Card
Figure 20. CONN_SD_CARD 8
9.1 Software—Micro SD Card
SD.h file
The SD Card communication is a command protocol, these commands are declared at the SD.h file. Functions are located in
the SD.c file. The following commands are the principal commands.
Table 6. SD Card Command
Command
SD_CMD0
SD_CMD1
SD_CMD6
SD_CMD8
SD_CMD9
SD_CMD10
SD_CMD12
SD_CMD13
SD_CMD16
SD_CMD17
SD_CMD18
SD_CMD24
SD_CMD25
SD_CMD27
SD_CMD28
SD_CMD29
SD_CMD30
SD_CMD32
SD_CMD33
SD_CMD38
Description
Resets the SD memory card
Initialization process
Check mode 0 and mode 1
Host supply voltage
CSD
CID
Stop transmission
Sends status register
Sets a block length
Reads a block
Continuously transfers
Writes a block
Continuously writes up to Stop mode
Programs programmable bits of the CSD
Sets the write protection bit
Clears the write protection
Sends the status of the write protection
Sets the address of the first write block
Sets the address of the last write block
Erases all previously selected write blocks
SD_CMD42 Used to Set or Reset the password or lock and unlock the card
Implementing a Glucometer and Blood Pressure Monitor Medical Devices, Rev. 1, 4/2010
Freescale Semiconductor, Inc.
21