GD32W51x User Manual
776
Cm d
index
type
argum ent
Response
form at
Abbreviation
Description
versions of the MMC.
2. Data address is in byte units in a Standard Capacity SD Memory Card and in block (512 Byte)
units in a High Capacity SD Memory Card.
Table 23-9. Block oriented write protection commands (class 6)
Cm d
index
type
argum ent
Response
form at
Abbreviation
Description
CMD28
ac
[31:0] data
address
R1b
SET_WRITE_PROT
If the card has w rite protection
features, this command sets the
w rite protection bit of the
addressed group. The
properties of w rite protection are
coded in the card specific data
(WP_GRP_SIZ E).
A High Capacity SD Memory
Card does not support this
command.
CMD29
ac
[31:0] data
address
R1b
CLR_WRITE_PROT
If the card provides w rite
protection features, this
command clears the w rite
protection bit of the addressed
group.
CMD30
adtc
[31:0] w rite
protect data
address
R1
SEND_WRITE_PRO
T
If the card provides w rite
protection features, this
command asks the card to send
the status of the w rite protection
bits.
Note:
1. High Capacity SD Memory Card does not support these three commands.
Table 23-10. Lock card (class 7)
Cm d
index
type
argum ent
Response
form at
Abbreviation
Description
CMD16
ac
[31:0] block
length
R1
SET_BLOCK_LEN
CMD42
adtc
[31:0]
Reserved bits
(Set all 0)
R1
LOCK_UNLOCK
Used to set/reset the passw ord
or lock/unlock the card. The size
of the data block is set by the
SET_BLOCK_LEN command.