Card Status Register; Table 20-22 Card Status Register Description - Motorola DragonBall MC9328MX1 Reference Manual

Integrated portable system processor
Table of Contents

Advertisement

4. When the ERASE bit is the only bit set in the data field, all card content is erased, including
the PWD and PWD_LEN fields, and the card is no longer locked. When any other bits are
set, the LOCK_UNLOCK_FAILED error bit is set in the Card Status Register and the card
retains all of its data, and remains locked.
An attempt to use a force erase on an unlocked card fails and the LOCK_UNLOCK_FAILED error bit is
set in the Card Status Register.

20.7.5 Card Status Register

The response format R1 contains a 32-bit card status field. This field transmits the card's status
information (which is stored in a local status register) to the MMC/SD module. When not specified, the
status entries are always related to the last command issued.
Table 20-22 defines the different entries of the Card Status Register. The type and clear condition fields in
the table are abbreviated as follows:
Type:
E—Error bit.
S—Status bit.
R—Detected and set for the actual command response.
X—Detected and set during command execution. The MMC/SD module must poll the card by
issuing the status command to read these bits.
Clear Condition:
A—According to the card current state.
B—Always related to the previous command. Reception of a valid command clears it (with a delay
of one command).
C—Clear by read.
Bit
Bit Name
Type
31
OUT_OF
_RANGE
30
ADDRESS
E R X
_ERROR
29
BLOCK_LEN
_ERROR
28
ERASE_SEQ
_ERROR
27
ERASE
_PARAM
26
WP
E R X
_VIOLATION
MOTOROLA
Multimedia Card/Secure Digital Host Controller Module (MMC/SD)
Table 20-22. Card Status Register Description
Settings
E R
0 = No error
1 = Error
0 = No error
1 = Error
E R
0 = No error
1 = Error
E R
0 = No error
1 = Error
E X
0 = No error
1 = Error
0 = No error
1 = Protected Block
Functional Example for the MMC/SD Module
Description
The command's argument is out of the
allowed range for this card.
A misaligned address not matching the
block length is used in the command.
The transferred block length is not
allowed, or the number of transferred
bytes does not match the block length.
The sequence of erase commands is
invalid.
The selected sectors or groups for erase
are invalid.
An attempt is made to program a write
protected block.
Clear
Condition
C
C
C
C
C
C
20-49

Advertisement

Table of Contents
loading

Table of Contents