emmc寄存器说明(eMMC深入浅出第七章)
emmc寄存器说明(eMMC深入浅出第七章)绝大多数的CSD的域是只读的,主要分为四类,通用信息,性能相关,大小相关,功耗相关。一般信息包括CSD版本(1.2版代表eMMC),eMMC规范版本(最新的是5.1),支持的命令集(12比特代表12类命令),是否支持DSR(驱动等级)以及是否支持内容包括应用。性能新型包括数据读取访问时间,典型的块读取时间以及最大支持的时钟频率(200Mhz)。CSD里定义的访问时间只是给低速时钟比如SDR26或者SDR52/DDR52。在HS200/HS400下最小的读访问时间是8个时钟周期,没有最大值定义。大小信息包括擦除组大小,写入组大小,这些都是512KB的倍数。器件大小是针对2GB以下的容量,现在已经没意义了。读和写的尺寸现在都是512字节了,而且访问地址需要以512字节对齐,叫做LBA地址。功耗信息定义了不同电源下的读和写的最大电流。Some fields in CSD are not only
Section 2 CSD Card Specific Data第2节CSD 卡特定数据CSD (Card Specific Data) is a 128-bit register embedded in the R2 response for providing the information on how to access the Device contents. Before Ext_CSD CSD is the most important register for controlling the eMMC device accessing. These 128 bits could be categorized based on its writable feature and information provided. CMD9 is used for the read CSD CMD27 is used to write the specific fields in the CSD.
CSD (卡特定数据)是一个嵌在R2应答中的128比特寄存器,提供如何访问器件内容的信息。在Ext_CSD之前,CSD是控制寄存器访问的最重要的寄存器。这些128比特可以按照是否可以写入以及提供的信息来分类。CMD9 用来读CSD,CMD27用来写入一些CSD的特定域。
Most fields in CSD are read-only mainly in 4 groups general performance related Size related power consumption related. General information includes CSD version (version 1.2 for eMMC) eMMC Spec version (latest version 5.1) Command Class support (12 bit for 12 classes of command) DSR (Driver Stage) support and content protection application support. Performance information include the read access time typical write block time and maximum clock frequency (200Mhz). Read access time defined in the CSD is only for lower clock like
SDR26 or SDR52/DDR52. Minimal read access time is 8 clock and no maximum time under zhege HS200/HS400. Size information define the Erase Group Size Write Group Size which are multiple of 512KB. Device Size is only for the density smaller than 2GB useless nowadays. Block size for read and write are always 512B now and access address should be 512B aligned called LBA. Power consumption information defines the max current while reading or writing for different power supply.
绝大多数的CSD的域是只读的,主要分为四类,通用信息,性能相关,大小相关,功耗相关。一般信息包括CSD版本(1.2版代表eMMC),eMMC规范版本(最新的是5.1),支持的命令集(12比特代表12类命令),是否支持DSR(驱动等级)以及是否支持内容包括应用。性能新型包括数据读取访问时间,典型的块读取时间以及最大支持的时钟频率(200Mhz)。CSD里定义的访问时间只是给低速时钟比如SDR26或者SDR52/DDR52。在HS200/HS400下最小的读访问时间是8个时钟周期,没有最大值定义。大小信息包括擦除组大小,写入组大小,这些都是512KB的倍数。器件大小是针对2GB以下的容量,现在已经没意义了。读和写的尺寸现在都是512字节了,而且访问地址需要以512字节对齐,叫做LBA地址。功耗信息定义了不同电源下的读和写的最大电流。
Some fields in CSD are not only readable but also could be programmed only once or multiple programmed. File Format indicate the file system used in the device not much useful nowadays. Copy flag is seldom used too. Permanent and temporary WP are used for the WP. ECC field only define the BCH ECC algorithm more powerful ECC algorithm could be used even not defined in the specification. The last field is the 7-bit CRC code to protect the whole CSD register.
CSD里有一些域不只是只读,而且可以一次编程或者多次编程。文件格式指示了器件里的文件系统,现在没什么用处了。拷贝标志现在也很少用。永久和暂时保护是给写保护用的。ECC域只定义了BCH纠错码算法,更强的ECC算法虽然没有在规范里面定义但是仍然可以用。最后的7比特CRC码是用来保护整个CSD寄存器。