当前位置:网站首页>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
边栏推荐
- There is no need to crack the markdown editing tool typora
- How to click an object to play an animation
- FFmpeg常用命令
- HQL statement tuning
- Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
- Learning materials
- [untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie
- Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)
- Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
- Recovering data with MySQL binlog
猜你喜欢
31. 下一个排列
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
Record some NPM related problems (messy records)
HQL find the maximum value in a range
MySQL —— 16、索引的数据结构
Servlet监听器&过滤器介绍
Record Alibaba cloud server mining program processing
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
Record a website for querying compatibility, string Replaceall() compatibility error
Design of body fat detection system based on 51 single chip microcomputer (51 + OLED + hx711 + US100)
随机推荐
The first lesson is canvas, showing a small case
Customize classloader and implement hot deployment - use loadclass
Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
安装nngraph
Async void provoque l'écrasement du programme
AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
Mui wechat payment pit
Record Alibaba cloud server mining program processing
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘
About the 'enum' enumeration type and structure.
解决Oracle中文乱码的问题
MySQL basic statement query
Free and open source intelligent charging pile SaaS cloud platform of Internet of things
Go language array operation
Timing role in the project
The filter() traverses the array, which is extremely friendly
4.22学习记录(你一天只做了水题是吗)
Melt reshape decast long data short data length conversion data cleaning row column conversion
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus