Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
SD card
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Storage capacity calculations=== The format of the Card-Specific Data (CSD) register changed between version 1 (SDSC) and version 2.0 (which defines SDHC and SDXC). ====Version 1==== In version 1 of the SD specification, capacities up to 2 GB{{efn|name="GiB"}} are calculated by combining fields of the CSD as follows: Capacity = ('''C_SIZE''' + 1) Γ 2<sup>('''C_SIZE_MULT''' + '''READ_BL_LEN''' + 2)</sup> where 0 β€ '''C_SIZE''' β€ 4095, 0 β€ '''C_SIZE_MULT''' β€ 7, '''READ_BL_LEN''' is 9 (for 512 bytes/sector) or 10 (for 1024 bytes/sector) Later versions state (at Section 4.3.2) that a 2 GB SDSC card shall set its READ_BL_LEN (and WRITE_BL_LEN) to indicate 1,024 bytes, so that the above computation correctly reports the card's capacity, but that, for consistency, the host device shall not request (by CMD16) block lengths over 512 B.<ref name="SDHCspec"/> ====Versions 2 and 3==== {{More citations needed|section|date=September 2023}} In the definition of SDHC cards in version 2.0, the C_SIZE portion of the CSD is 22 bits and it indicates the memory size in multiples of 512 KB (the C_SIZE_MULT field is removed and READ_BL_LEN is no longer used to compute capacity). Two bits that were formerly reserved now identify the card family: 0 is SDSC; 1 is SDHC or SDXC; 2 and 3 are reserved.<ref name="SDHCspec"/> Because of these redefinitions, older host devices do not correctly identify SDHC or SDXC cards nor their correct capacity. * SDHC cards are restricted to reporting a capacity not over 32 GB.{{citation needed|date=September 2023}} * SDXC cards are allowed to use all 22 bits of the C_SIZE field. An SDHC card that did so (reported C_SIZE > 65,375 to indicate a capacity of over 32 GB) would violate the specification. A host device that relied on C_SIZE rather than the specification to determine the card's maximum capacity might support such a card, but the card might fail in other SDHC-compatible host devices.{{citation needed|date=September 2023}} Capacity is calculated thus: Capacity = ('''C_SIZE''' + 1) Γ 524288 where for SDHC 4112 β€ '''C_SIZE''' β€ 65375 β2 GB β€ Capacity β€ β32 GB where for SDXC 65535 β€ '''C_SIZE''' β32 GB β€ Capacity β€ 2 TB{{citation needed|date=September 2023}} Capacities above 4 GB can only be achieved by following version 2.0 or later versions. In addition, capacities equal to 4 GB must also do so to guarantee compatibility.{{citation needed|date=September 2023}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)