当前位置:网站首页>EMMC / SD learning notes
EMMC / SD learning notes
2022-04-23 13:07:00 【MyeDy】
eMMC Partition management 、 Bus protocol and working mode
JDEDC EMMC Agreement Chinese
SD Card agreement Chinese 2.0 3.0
EMMC4.4 Not Boot Mode read process
- wait for 74 A clock
- CMD0 Reset emmc to idle state
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD0 | bc | 00000000 | - | GO_IDLE_STATE | Reset the device to idle state |
| CMD0 | bc | f0f0f0f0 | - | GO_PRE_IDLE_STATE | Reset the device to pre-idle state |
| CMD0 | - | fffffffa | - | GO_INITIATION | Start the replacement boot operation |

- send out CMD1 obtain OCR
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD1 | bc | [31:0] OCR | R3 | SEND_OP_COND | request idle Status sent by the device at CMD Send its line OCR structure |

- CMD2 obtain CID
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD2 | bc | [31:0] Fill bit | R2 | ALL_SEND_CID | Request device at CMD Send its line CID Number |

- CMD3 Distribute RCA
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD3 | ac | [31:16] RCA [15:0] Fill bit | R1 | SET_RELATIVE_ADDR | Assign a relative address to the device |

- CMD9 obtain CSD
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD9 | ac | [31:16] RCA [15:0] Fill bit | R2 | SEND_CSD | SEND_CSD The addressed device is CMD Send its equipment specific data online (CSD) |

- CMD7 Set up transfer state
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD7 | ac | [31:16] RCA [15:0] Fill bit | R2 | SELECT/DESELECT_C ARD | stay stand-by and transfer Between states or program- ming and disconnect Command to switch devices between States . In both cases , The device is selected with its own relative address and deselected with other addresses ; Address 0 Deselect all devices . |

- CMD13 Get device status
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD13 | ac | [31:16] RCA [15:0] Fill bit | R1 | SEND_STATUS | The addressed device sends its status register |

- according to ECSD switch Different bit widths .( Optional ) CMD8, CMD13, CMD6
- CMD18 Reading data
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD18 | adtc | [31:0] Data address 1 | R1 | READ_MULTIPLE_ BLOCK | Continuous transmission of data blocks from the device to the host , Until interrupted by the stop command , The number of blocks or required for transmission . |


SD1.0 Initialization flow

- wait for 74 A clock
- CMD0 Reset SD Card to idle state

- CMD8 send out SD Card interface conditions , Contains the voltage information supported by the host , And ask if the card supports . The reserved bit should be set to 0.
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD8 | bcr | [31:12] Keep a ,[11:8]VHS,[7:0] Check mode | R7 | SEND_IF_COND | send out SD Card interface conditions , Contains the voltage information supported by the host , And ask if the card supports . The reserved bit should be set to 0. |

- ACMD41 Send card support information (HCS). send out ACMD Need to send first CMD55.
| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| CMD55 | ac | [31:16]RCA [15:0] Fill bit | R1 | APP_CMD | Tell card , The next command is an application specific command , Instead of standard commands . |

| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| ACMD41 | bcr | [31] Keep a [30]HCS(OCR30) [29:24] Keep a [23:0]VddVdd voltage (OCR[23:0]) | R3 | SD_SEND_OP_COND | Send card support information (HCS), And ask the cartoon to return through the command line OCR Register contents . When the card is received SEND_IF_COND when ,HCS It works . The reserved bit is set to 0.CCS Bit correspondence OCR[30] |

- Next SD Card initialization is CMD2 and CMD3, Roughly the same as MMC The card process is the same . There are some commands behind SD and MMC It's different , such as switch Your orders are different ,SD The card uses ACMD6 To define the width of the data, and so on , and MMC It's using CMD8 Come on switch.

| Command index | type | Parameters | The reply | abbreviation | Command specification |
|---|---|---|---|---|---|
| ACMD6 | ac | [31:2] Fill bit [1:0] Bus width | R1 | SET_BUS_WIDTH | Define the width of the data bus (‘00’=1bit,‘10’=4bit). The accepted data bus is defined in SCR In the register . |

版权声明
本文为[MyeDy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230612365785.html
边栏推荐
- Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
- Timing role in the project
- 100 GIS practical application cases (34) - splicing 2020globeland30
- Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
- MySQL basic statement query
- (1) Openjuterpyrab comparison scheme
- Subscribe to Alibaba demo send business messages
- [51 single chip microcomputer traffic light simulation]
- three.js文字模糊问题
- nodejs + mysql 实现简单注册功能(小demo)
猜你喜欢

31. 下一个排列

PC starts multiple wechat at one time

8086 of x86 architecture

About the 'enum' enumeration type and structure.

Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)

The project file '' has been renamed or is no longer in the solution, and the source control provider associated with the solution could not be found - two engineering problems

Record the problems encountered in using v-print

HQL find the maximum value in a range

22. 括号生成

51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
随机推荐
AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
The filter() traverses the array, which is extremely friendly
Important knowledge of network layer (interview, reexamination, term end)
melt reshape decast 长数据短数据 长短转化 数据清洗 行列转化
Ffmpeg common commands
(个人)最近项目开发后存在的系统漏洞整理
Request和Response及其ServletContext总结
Custom nail robot alarm
About the 'enum' enumeration type and structure.
51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
Subscribe to Alibaba demo send business messages
Golang implements MD5, sha256 and bcrypt encryption
AUTOSAR from introduction to mastery 100 lectures (50) - AUTOSAR memory management series - ECU abstraction layer and MCAL layer
GIS practical tips (III) - how to add legend in CASS?
The El table horizontal scroll bar is fixed at the bottom of the visual window
这几种 VSCode 扩展是我最喜欢的
Translation of multi modal visual tracking: review and empirical comparison
mui + hbuilder + h5api模拟弹出支付样式
Connect orcale