CN104765625B - Sleep mode starting method, memory control circuit unit and memory device - Google Patents
Sleep mode starting method, memory control circuit unit and memory device Download PDFInfo
- Publication number
- CN104765625B CN104765625B CN201410008155.XA CN201410008155A CN104765625B CN 104765625 B CN104765625 B CN 104765625B CN 201410008155 A CN201410008155 A CN 201410008155A CN 104765625 B CN104765625 B CN 104765625B
- Authority
- CN
- China
- Prior art keywords
- logic level
- memory storage
- level
- memory
- device sleep
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000007958 sleep Effects 0.000 title claims abstract description 183
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000005055 memory storage Effects 0.000 claims abstract description 99
- 230000006870 function Effects 0.000 claims abstract description 36
- 238000005516 engineering process Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 2
- 230000005611 electricity Effects 0.000 claims 3
- 230000004913 activation Effects 0.000 abstract description 5
- 230000003213 activating effect Effects 0.000 abstract 1
- 230000004044 response Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 10
- 238000012937 correction Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 210000004027 cell Anatomy 0.000 description 5
- 230000006266 hibernation Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 230000007257 malfunction Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Landscapes
- Power Sources (AREA)
Abstract
本发明提供一种休眠模式启动方法、存储器控制电路单元及存储装置。本方法包括:当从主机系统接收到启用装置休眠功能指令时,判断存储器存储装置的装置休眠信号引脚是否处于与第一逻辑电平相反的第二逻辑电平;以及若是,则开启存储器存储装置的装置休眠功能,其中存储器存储装置会进入休眠模式以回应处于第一逻辑电平的装置休眠信号引脚。
The present invention provides a sleep mode activation method, a memory control circuit unit and a storage device. The method comprises: when receiving a device sleep function activation instruction from a host system, determining whether a device sleep signal pin of a memory storage device is at a second logic level opposite to a first logic level; and if so, activating the device sleep function of the memory storage device, wherein the memory storage device enters a sleep mode in response to the device sleep signal pin being at the first logic level.
Description
技术领域technical field
本发明是有关于一种休眠模式启动方法、存储器控制电路单元及存储装置。The invention relates to a dormant mode startup method, a memory control circuit unit and a memory device.
背景技术Background technique
由于可复写式非易失性存储器(rewritable non-volatile memory)具有数据非易失性、省电、体积小、无机械结构、读写速度快等特性,因此,近年可复写式非易失性存储器产业成为电子产业中相当热门的一环。例如,以快闪存储器作为存储媒体的固态硬盘(Solid-state drive)已广泛应用作为电脑主机的硬盘,以提升电脑的存取效能。此外,由于环保意识的抬头,绿色科技成为电子制造商努力的目标。为了避免磁盘在使用者未使用下还持续耗电,固态硬盘已被设计支持装置休眠信号(Device Sleep Signal)协议。然而,由于装置休眠信号是通过电源连接接口的其中一个引脚来传递,因此,在主机系统的电源供应接口未支持装置休眠信号协议的例子中,当主机系统一开机时,固态硬盘会因为电源供应接口上的信号而误动作地直接进入休眠模式,而无法操作。Since rewritable non-volatile memory (rewritable non-volatile memory) has the characteristics of data non-volatility, power saving, small size, no mechanical structure, fast read and write speed, etc., in recent years, rewritable non-volatile memory The memory industry has become a very popular part of the electronics industry. For example, a solid-state drive using flash memory as a storage medium has been widely used as a hard disk of a computer host to improve the access performance of the computer. In addition, due to the rising awareness of environmental protection, green technology has become the goal of electronics manufacturers. In order to prevent the disk from continuing to consume power when the user is not using it, the SSD has been designed to support the Device Sleep Signal protocol. However, since the device sleep signal is transmitted through one of the pins of the power connection interface, in an example where the power supply interface of the host system does not support the device sleep signal protocol, when the host system is turned on, the solid state drive will The signal on the supply interface directly enters the sleep mode by malfunction and cannot be operated.
发明内容Contents of the invention
本发明提供一种休眠模式启动方法、存储器控制电路单元及存储装置,其能够有效地避免误进入休眠模式。The invention provides a method for starting a dormant mode, a memory control circuit unit and a storage device, which can effectively avoid entering the dormant mode by mistake.
据此,本发明一实施例提供一种用于存储器存储装置的休眠模式启动方法。本休眠模式启动方法包括:(a)当从主机系统接收到启用装置休眠功能指令时,判断存储器存储装置的装置休眠信号引脚上的电平信号是否处于与第一逻辑电平不同的第二逻辑电平;以及(b)倘若在步骤(a)中判断存储器存储装置的装置休眠信号引脚上的电平信号处于第二逻辑电平时,开启存储器存储装置的装置休眠功能。此外,上述休眠模式启动方法还包括:(c)在开启存储器存储装置的装置休眠功能之后,检测存储器存储装置的装置休眠信号引脚上的电平信号是否从第二逻辑电平改变为第一逻辑电平;以及(d)倘若在步骤(c)中检测到存储器存储装置的装置休眠信号引脚上的电平信号从第二逻辑电平改变为第一逻辑电平时,启动存储器存储装置进入休眠模式。Accordingly, an embodiment of the invention provides a sleep mode activation method for a memory storage device. The method for initiating the sleep mode includes: (a) when receiving an instruction to activate the device sleep function from the host system, judging whether the level signal on the device sleep signal pin of the memory storage device is at a second logic level different from the first logic level; and (b) if the level signal on the device sleep signal pin of the memory storage device is judged to be at a second logic level in step (a), enabling the device sleep function of the memory storage device. In addition, the above sleep mode activation method further includes: (c) after enabling the device sleep function of the memory storage device, detecting whether the level signal on the device sleep signal pin of the memory storage device changes from the second logic level to the first logic level; and (d) if in step (c) it is detected that the level signal on the device sleep signal pin of the memory storage device changes from the second logic level to the first logic level, enabling the memory storage device to enter sleep mode.
在本发明的一实施例中,上述休眠模式启动方法还包括:倘若在步骤(a)中判断存储器存储装置的装置休眠信号引脚上的电平信号不处于第二逻辑电平时,不开启存储器存储装置的装置休眠功能。In an embodiment of the present invention, the method for starting the sleep mode further includes: if it is judged in step (a) that the level signal on the device sleep signal pin of the memory storage device is not at the second logic level, not turning on the memory Device hibernation function for storage devices.
在本发明的一实施例中,上述第一逻辑电平为一高逻辑电平且第二逻辑电平为一低逻辑电平。In an embodiment of the present invention, the above-mentioned first logic level is a high logic level and the second logic level is a low logic level.
在本发明的一实施例中,上述休眠模式启动方法还包括:在存储器存储装置进入休眠模式后,检测存储器存储装置的装置休眠信号引脚上的电平信号是否从第一逻辑电平改变为第二逻辑电平;以及倘若检测到存储器存储装置的装置休眠信号引脚上的电平信号从第一逻辑电平改变为第二逻辑电平时,使存储器存储装置从休眠模式恢复至操作模式。In an embodiment of the present invention, the sleep mode startup method further includes: after the memory storage device enters the sleep mode, detecting whether the level signal on the device sleep signal pin of the memory storage device changes from the first logic level to a second logic level; and resuming the memory storage device from the sleep mode to the operational mode if a change in level signal on the device sleep signal pin of the memory storage device is detected from the first logic level to the second logic level.
在本发明的一实施例中,上述装置休眠信号引脚配置在存储器存储装置的电源连接接口上。In an embodiment of the present invention, the device sleep signal pin is configured on the power connection interface of the memory storage device.
本发明一实施例提供一种存储器控制电路单元,其包括主机接口、存储器接口与存储器管理电路。主机接口用以电连接至主机系统。上述存储器接口用以电性连接至可复写式非易失性存储器模块。上述存储器管理电路电性连接至存储器接口与主机接口,并用以通过主机接口从主机系统接收到启用装置休眠功能指令。当通过主机接口从主机系统接收到启用装置休眠功能指令时,上述存储器管理电路判断存储器存储装置的装置休眠信号引脚上的电平信号是否处于与第一逻辑电平不同的第二逻辑电平。倘若判断此装置休眠信号引脚上的电平信号处于第二逻辑电平时,上述存储器管理电路开启存储器存储装置的装置休眠功能。此外,在开启存储器存储装置的装置休眠功能之后,上述存储器管理电路还用以检测此装置休眠信号引脚上的电平信号是否从第二逻辑电平改变为第一逻辑电平。倘若检测到电源连接接口上的装置休眠信号引脚上的电平信号从第二逻辑电平改变为第一逻辑电平时,上述存储器管理电路开始进入休眠模式。An embodiment of the present invention provides a memory control circuit unit, which includes a host interface, a memory interface, and a memory management circuit. The host interface is used to electrically connect to the host system. The memory interface is used to electrically connect to the rewritable non-volatile memory module. The above-mentioned memory management circuit is electrically connected to the memory interface and the host interface, and is used for receiving an instruction for enabling the device sleep function from the host system through the host interface. When receiving an instruction to enable the device sleep function from the host system through the host interface, the memory management circuit judges whether the level signal on the device sleep signal pin of the memory storage device is at a second logic level different from the first logic level . If it is determined that the level signal on the device sleep signal pin is at the second logic level, the memory management circuit enables the device sleep function of the memory storage device. In addition, after the device sleep function of the memory storage device is turned on, the memory management circuit is also used to detect whether the level signal on the device sleep signal pin changes from the second logic level to the first logic level. If it is detected that the level signal on the device sleep signal pin on the power connection interface changes from the second logic level to the first logic level, the memory management circuit starts to enter the sleep mode.
在本发明的一实施例中,倘若在通过数据连接接口从主机系统接收到启用装置休眠功能指令后判断此装置休眠信号引脚上的电平信号不处于第二逻辑电平时,上述存储器管理电路不开启存储器存储装置的装置休眠功能。In one embodiment of the present invention, if it is judged that the level signal on the device sleep signal pin is not at the second logic level after receiving an instruction to enable the device sleep function from the host system through the data connection interface, the memory management circuit Do not enable the device hibernation function of the memory storage device.
在本发明的一实施例中,上述电源连接接口为一串行高级技术附件电源连接接口且上述数据连接接口为一串行高级技术附件连接接口。In an embodiment of the present invention, the power connection interface is a SATA power connection interface and the data connection interface is a SATAT connection interface.
在本发明的一实施例中,上述信号输出引脚配置在主机系统的一电源供应连接接口中,且信号输出引脚输出一3.3伏特电压。In an embodiment of the present invention, the signal output pin is configured in a power supply connection interface of the host system, and the signal output pin outputs a voltage of 3.3 volts.
在本发明的一实施例中,上述存储器管理电路还用以在进入休眠模式后,检测存储器存储装置的装置休眠信号引脚上的电平信号是否从第一逻辑电平改变为第二逻辑电平。倘若检测到存储器存储装置的装置休眠信号引脚上的电平信号从第一逻辑电平改变为第二逻辑电平时,上述存储器管理电路还用以从休眠模式恢复至操作模式。In an embodiment of the present invention, the above memory management circuit is also used to detect whether the level signal on the device sleep signal pin of the memory storage device changes from the first logic level to the second logic level after entering the sleep mode. flat. If it is detected that the level signal on the device sleep signal pin of the memory storage device changes from the first logic level to the second logic level, the above memory management circuit is also used to recover from the sleep mode to the operation mode.
本发明一实施例提供一种存储器存储装置,其包括连接接口单元、可复写式非易失性存储器模块与存储器控制电路单元。连接接口单元用以电性连接至主机系统。可复写式非易失性存储器模块具有多个实体抹除单元。存储器控制电路单元电性连接至连接接口单元与可复写式非易失性存储器模块。存储器控制电路单元用以通过数据连接接口从主机系统接收到启用装置休眠功能指令。当通过数据连接接口从主机系统接收到启用装置休眠功能指令时,存储器控制电路单元判断装置休眠信号引脚上的电平信号是否处于与第一逻辑电平不同的第二逻辑电平。倘若判断装置休眠信号引脚上的电平信号处于第二逻辑电平时,存储器控制电路单元开启存储器存储装置的装置休眠功能。此外,在开启存储器存储装置的装置休眠功能之后,上述存储器控制电路单元还用以检测装置休眠信号引脚上的电平信号是否从第二逻辑电平改变为第一逻辑电平。倘若检测到电源连接接口上的装置休眠信号引脚上的电平信号从第二逻辑电平改变为第一逻辑电平时,上述存储器控制电路单元开始进入休眠模式。An embodiment of the present invention provides a memory storage device, which includes a connection interface unit, a rewritable non-volatile memory module, and a memory control circuit unit. The connection interface unit is used to electrically connect to the host system. The rewritable non-volatile memory module has multiple physical erasing units. The memory control circuit unit is electrically connected to the connection interface unit and the rewritable non-volatile memory module. The memory control circuit unit is used for receiving an instruction for enabling the device sleep function from the host system through the data connection interface. When receiving a device sleep function instruction from the host system through the data connection interface, the memory control circuit unit judges whether the level signal on the device sleep signal pin is at a second logic level different from the first logic level. If it is determined that the level signal on the device sleep signal pin is at the second logic level, the memory control circuit unit enables the device sleep function of the memory storage device. In addition, after the device sleep function of the memory storage device is turned on, the memory control circuit unit is also used to detect whether the level signal on the device sleep signal pin changes from the second logic level to the first logic level. If it is detected that the level signal on the device sleep signal pin on the power connection interface changes from the second logic level to the first logic level, the memory control circuit unit starts to enter the sleep mode.
在本发明的一实施例中,倘若在通过数据连接接口从主机系统接收到启用装置休眠功能指令后判断装置休眠信号引脚上的电平信号不处于第二逻辑电平时,上述存储器控制电路单元不开启存储器存储装置的装置休眠功能。In an embodiment of the present invention, if it is judged that the level signal on the device sleep signal pin is not at the second logic level after receiving an instruction to enable the device sleep function from the host system through the data connection interface, the memory control circuit unit Do not enable the device hibernation function of the memory storage device.
在本发明的一实施例中,上述存储器控制电路单元还用以在进入休眠模式后,检测装置休眠信号引脚上的电平信号是否从第一逻辑电平改变为第二逻辑电平。倘若检测到电源连接接口上的装置休眠信号引脚上的电平信号从第一逻辑电平改变为第二逻辑电平时,上述存储器控制电路单元还用以从休眠模式恢复至操作模式。In an embodiment of the present invention, the memory control circuit unit is further configured to detect whether the level signal on the sleep signal pin of the device changes from the first logic level to the second logic level after entering the sleep mode. If it is detected that the level signal on the device sleep signal pin on the power connection interface changes from the first logic level to the second logic level, the memory control circuit unit is also used to restore from the sleep mode to the operation mode.
在本发明的一实施例中,上述连接接口单元还包括电源连接接口并且上述装置休眠信号引脚配置在电源连接接口上。In an embodiment of the present invention, the connection interface unit further includes a power connection interface, and the device sleep signal pin is configured on the power connection interface.
本发明一实施例提供一种存储器控制电路单元,其包括主机接口、存储器接口与存储器管理电路。主机接口用以电连接至主机系统。上述存储器接口用以电性连接至可复写式非易失性存储器模块。上述存储器管理电路电性连接至存储器接口与主机接口,并用以通过主机接口从主机系统接收到启用装置休眠功能指令。此外,主机接口具有数据连接接口及电源连接接口,数据连接接口用以接收由第一传输线传送的至少一组差分信号,电源连接接口用以接收由第二传输线传送的至少一输入电源,第一传输线与第二传输线彼此独立。再者,当通过主机接口从该主机系统接收到启用装置休眠功能指令时,存储器管理电路判断该电源连接接口的第一引脚上的电平信号是否处于预定逻辑电平。倘若判断第一引脚上的电平信号处于预定逻辑电平时,存储器管理电路开启此存储器存储装置的装置休眠功能。另外,在开启存储器存储装置的装置休眠功能之后,存储器管理电路还用以检测装置休眠信号引脚上的电平信号是否为第一逻辑电平。倘若检测到装置休眠信号引脚上的电平信号为第一逻辑电平时,存储器管理电路开始进入休眠模式。An embodiment of the present invention provides a memory control circuit unit, which includes a host interface, a memory interface, and a memory management circuit. The host interface is used to electrically connect to the host system. The memory interface is used to electrically connect to the rewritable non-volatile memory module. The above-mentioned memory management circuit is electrically connected to the memory interface and the host interface, and is used for receiving an instruction for enabling the device sleep function from the host system through the host interface. In addition, the host interface has a data connection interface and a power connection interface, the data connection interface is used to receive at least one set of differential signals transmitted by the first transmission line, the power connection interface is used to receive at least one input power transmitted by the second transmission line, the first The transmission line and the second transmission line are independent of each other. Furthermore, when receiving a device sleep function instruction from the host system through the host interface, the memory management circuit determines whether the level signal on the first pin of the power connection interface is at a predetermined logic level. If it is determined that the level signal on the first pin is at a predetermined logic level, the memory management circuit enables the device sleep function of the memory storage device. In addition, after the device sleep function of the memory storage device is turned on, the memory management circuit is also used to detect whether the level signal on the device sleep signal pin is the first logic level. If it is detected that the level signal on the sleep signal pin of the device is at the first logic level, the memory management circuit starts to enter the sleep mode.
在本发明的一实施例中,上述第一引脚不同于电源连接接口的装置休眠信号引脚。In an embodiment of the present invention, the above-mentioned first pin is different from the device sleep signal pin of the power connection interface.
在本发明的一实施例中,倘若第一引脚上的电平为3.3伏特时,则存储器管理电路不开启存储器存储装置的装置休眠功能。In an embodiment of the present invention, if the level on the first pin is 3.3 volts, the memory management circuit does not enable the device sleep function of the memory storage device.
在本发明的一实施例中,上述预定逻辑电平不同于第一逻辑电平。In an embodiment of the present invention, the aforementioned predetermined logic level is different from the first logic level.
基于上述,上述实施例的休眠模式启动方法、存储器控制电路单元及存储装置通过在接收到启用装置休眠功能指令时确认存储器存储装置的装置休眠信号引脚是否正确地电连接至有支持装置休眠信号协议的引脚,由此有效地避免误进入休眠模式。Based on the above, the sleep mode activation method, the memory control circuit unit, and the storage device of the above-mentioned embodiment confirm whether the device sleep signal pin of the memory storage device is correctly electrically connected to the device sleep signal with support when receiving the device sleep function instruction. Protocol pins, thus effectively avoiding entering sleep mode by mistake.
为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.
附图说明Description of drawings
图1是根据一实施例所示出的主机系统与存储器存储装置的示意图;FIG. 1 is a schematic diagram of a host system and a memory storage device according to an embodiment;
图2是根据本发明实施例所示出的电脑、输入/输出装置与存储器存储装置的示意图;2 is a schematic diagram of a computer, an input/output device and a memory storage device according to an embodiment of the present invention;
图3是根据本发明另一实施例所示出的主机系统与存储器存储装置的示意图;3 is a schematic diagram of a host system and a memory storage device according to another embodiment of the present invention;
图4是图1所示的存储器存储装置的概要方块图;FIG. 4 is a schematic block diagram of the memory storage device shown in FIG. 1;
图5是根据一实施例所示出的存储器控制电路单元的概要方块图;5 is a schematic block diagram of a memory control circuit unit shown according to an embodiment;
图6是根据本发明一实施例所示出的用于以连接存储器存储装置与主机系统的总线连接接口与电源供应连接接口的示意图;6 is a schematic diagram of a bus connection interface and a power supply connection interface for connecting a memory storage device and a host system according to an embodiment of the present invention;
图7是根据一实施例所示出的休眠模式启动方法的流程图。Fig. 7 is a flow chart of a method for starting a sleep mode according to an embodiment.
附图标记说明:Explanation of reference signs:
1000:主机系统;1000: host system;
1100:电脑;1100: computer;
1102:微处理器;1102: microprocessor;
1104:随机存取存储器;1104: random access memory;
1106:输入/输出装置;1106: input/output device;
1108:系统总线;1108: system bus;
1110:数据传输接口;1110: data transmission interface;
1202:鼠标;1202: mouse;
1204:键盘;1204: keyboard;
1206:显示器;1206: display;
1208:打印机;1208: printer;
1212:U盘;1212: U disk;
1214:存储卡;1214: memory card;
1216:固态硬盘;1216: SSD;
1310:数码相机;1310: digital camera;
1312:SD卡;1312: SD card;
1314:MMC卡;1314: MMC card;
1316:存储棒;1316: memory stick;
1318:CF卡;1318: CF card;
1320:嵌入式存储装置;1320: embedded storage device;
100:存储器存储装置;100: memory storage device;
102:连接接口单元;102: connect the interface unit;
102a:数据连接接口;102a: data connection interface;
102b:电源连接接口;102b: power connection interface;
104:存储器控制电路单元;104: memory control circuit unit;
106:可复写式非易失性存储器模块;106: a rewritable non-volatile memory module;
202:存储器管理电路;202: memory management circuit;
204:主机接口;204: host interface;
206:存储器接口;206: memory interface;
208:缓冲存储器;208: buffer memory;
210:电源管理电路;210: power management circuit;
212:错误检查与校正电路;212: error checking and correction circuit;
410(0)~410(N):实体抹除单元;410(0)~410(N): Entity erasing unit;
602:总线连接接口;602: bus connection interface;
604:电源供应连接接口;604: power supply connection interface;
612:装置休眠信号引脚;612: device sleep signal pin;
622:信号输出引脚;622: signal output pin;
S701、S703、S705、S707、S709、S711、S713、S715:休眠模式启动方法的步骤。S701 , S703 , S705 , S707 , S709 , S711 , S713 , and S715 : steps in a method for starting a sleep mode.
具体实施方式Detailed ways
一般而言,存储器存储装置(也称,存储器存储系统)包括可复写式非易失性存储器模块与控制器(也称,控制电路)。通常存储器存储装置是与主机系统一起使用,以使主机系统可将数据写入至存储器存储装置或从存储器存储装置中读取数据。Generally speaking, a memory storage device (also called a memory storage system) includes a rewritable non-volatile memory module and a controller (also called a control circuit). Typically memory storage devices are used with a host system such that the host system can write data to or read data from the memory storage device.
图1是根据一实施例所示出的主机系统与存储器存储装置的示意图。FIG. 1 is a schematic diagram of a host system and a memory storage device according to an embodiment.
请参照图1,主机系统1000一般包括电脑1100与输入/输出(input/output,简称I/O)装置1106。电脑1100包括微处理器1102、随机存取存储器(random access memory,简称RAM)1104、系统总线1108与数据传输接口1110。输入/输出装置1106包括如图2的鼠标1202、键盘1204、显示器1206与打印机1208。必须了解的是,图2所示的装置非限制输入/输出装置1106,输入/输出装置1106可还包括其他装置。Referring to FIG. 1 , the host system 1000 generally includes a computer 1100 and an input/output (input/output, I/O for short) device 1106 . The computer 1100 includes a microprocessor 1102 , a random access memory (random access memory, RAM for short) 1104 , a system bus 1108 and a data transmission interface 1110 . The input/output device 1106 includes a mouse 1202 , a keyboard 1204 , a monitor 1206 and a printer 1208 as shown in FIG. 2 . It must be understood that the device shown in FIG. 2 is not limited to the input/output device 1106, and the input/output device 1106 may also include other devices.
在本发明实施例中,存储器存储装置100是通过数据传输接口1110与主机系统1000的其他元件电性连接。通过微处理器1102、随机存取存储器1104与输入/输出装置1106的操作可将数据写入至存储器存储装置100或从存储器存储装置100中读取数据。例如,存储器存储装置100可以是如图2所示的U盘1212、存储卡1214或固态硬盘(Solid StateDrive,简称SSD)1216等的可复写式非易失性存储器存储装置。In the embodiment of the present invention, the memory storage device 100 is electrically connected with other components of the host system 1000 through the data transmission interface 1110 . Data can be written into or read from the memory storage device 100 through the operations of the microprocessor 1102 , the random access memory 1104 and the input/output device 1106 . For example, the memory storage device 100 may be a rewritable non-volatile memory storage device such as a U disk 1212, a memory card 1214, or a solid state drive (Solid State Drive, SSD for short) 1216 as shown in FIG. 2 .
一般而言,主机系统1000为可实质地与存储器存储装置100配合以存储数据的任意系统。虽然在本实施例中,主机系统1000是以电脑系统来作说明,然而,在本发明另一实施例中主机系统1000可以是数码相机、摄影机、通信装置、音频播放器或视频播放器等系统。例如,在主机系统为数码相机(摄影机)1310时,可复写式非易失性存储器存储装置则为其所使用的SD卡1312、MMC卡1314、存储棒(memory stick)1316、CF卡1318或嵌入式存储装置1320(如图3所示)。嵌入式存储装置1320包括嵌入式多媒体卡(Embedded MMC,简称eMMC)。值得一提的是,嵌入式多媒体卡是直接电性连接在主机系统的基板上。In general, host system 1000 is any system that can cooperate substantially with memory storage device 100 to store data. Although in this embodiment, the host system 1000 is described as a computer system, however, in another embodiment of the present invention, the host system 1000 may be a system such as a digital camera, a video camera, a communication device, an audio player, or a video player. . For example, when the host system is a digital camera (video camera) 1310, the rewritable non-volatile memory storage device is an SD card 1312, an MMC card 1314, a storage stick (memory stick) 1316, a CF card 1318 or An embedded storage device 1320 (as shown in FIG. 3 ). The embedded storage device 1320 includes an embedded multimedia card (Embedded MMC, eMMC for short). It is worth mentioning that the embedded multimedia card is directly electrically connected to the substrate of the host system.
图4是图1所示的存储器存储装置的概要方块图。FIG. 4 is a schematic block diagram of the memory storage device shown in FIG. 1 .
请参照图4,存储器存储装置100包括连接接口单元102、存储器控制电路单元104与可复写式非易失性存储器模块106。Referring to FIG. 4 , the memory storage device 100 includes a connection interface unit 102 , a memory control circuit unit 104 and a rewritable non-volatile memory module 106 .
连接接口单元102包括数据连接接口102a与电源连接接口102b,数据连接接口102a用以连接主机系统1000的总线连接接口,并且电源连接接口102b用以连接主机系统1000的电源供应连接接口。特别是,在本实施例中,数据连接接口102a可例如用以接收至少一组差分信号,且电源连接接口102b具有一装置休眠信号(device sleep signal)引脚,以支持装置休眠信号(device sleep signal)协议。在另一实施例中,电源连接接口102b用以接收至多两种不同的输入电源,例如5伏特及12伏特。在另一实施例中,电源连接接口102b无用以接收3.3伏特的输入电源。具体来说,支持具有装置休眠的协议的主机系统1000可控制电源供应连接接口中电性连接至装置休眠信号引脚的信号输出引脚来指示存储器存储装置100开始进入休眠模式。例如,倘若主机系统1000控制电源供应连接接口中电性连接至装置休眠信号引脚的信号输出引脚上的电平信号处于第一逻辑电平时,则电源连接接口102b的装置休眠信号引脚上的电平信号也会处于第一逻辑电平以致于存储器存储装置100会据此开始进入休眠模式;并且倘若主机系统1000控制电源供应连接接口中电性连接至装置休眠信号引脚的信号输出引脚上的电平信号处于第二逻辑电平时,则电源连接接口102b的装置休眠信号引脚上的电平信号也会处于第二逻辑电平以致于存储器存储装置100会据此正常操作。在此,第一逻辑电平与第二逻辑电平可根据不同的设计来设定,例如,在本实施例中,第一逻辑电平为高逻辑电平并且第二逻辑电平为相反于第一逻辑电平的低逻辑电平,而在本实施例中,高逻辑电平是为电压电平高于一预定值时,可被判定为高逻辑电平,而相反地,低逻辑电平是为电压电平低于一预定值时,可被判定为低逻辑电平。The connection interface unit 102 includes a data connection interface 102a and a power connection interface 102b. The data connection interface 102a is used to connect to the bus connection interface of the host system 1000, and the power connection interface 102b is used to connect to the power supply connection interface of the host system 1000. Especially, in this embodiment, the data connection interface 102a can be used to receive at least one set of differential signals, and the power connection interface 102b has a device sleep signal (device sleep signal) pin to support the device sleep signal (device sleep signal) protocol. In another embodiment, the power connection interface 102b is used to receive at most two different input power sources, such as 5V and 12V. In another embodiment, the power connection interface 102b is not used for receiving 3.3V input power. Specifically, the host system 1000 supporting the protocol with device sleep can control the signal output pin electrically connected to the device sleep signal pin in the power supply connection interface to instruct the memory storage device 100 to enter the sleep mode. For example, if the host system 1000 controls the level signal on the signal output pin electrically connected to the device sleep signal pin in the power supply connection interface to be at the first logic level, then the device sleep signal pin of the power supply connection interface 102b The level signal of the signal will also be at the first logic level so that the memory storage device 100 will start to enter the sleep mode accordingly; and if the host system 1000 controls the signal output pin in the power supply connection When the level signal on the pin is at the second logic level, the level signal on the device sleep signal pin of the power connection interface 102b is also at the second logic level so that the memory storage device 100 will operate normally accordingly. Here, the first logic level and the second logic level can be set according to different designs, for example, in this embodiment, the first logic level is a high logic level and the second logic level is opposite to The low logic level of the first logic level, and in this embodiment, the high logic level is when the voltage level is higher than a predetermined value, it can be judged as a high logic level, and conversely, the low logic level Flat means that when the voltage level is lower than a predetermined value, it can be judged as a low logic level.
在本实施例中,连接接口单元102是相容于串行高级技术附件(Serial AdvancedTechnology Attachment,简称SATA)标准。然而,必须了解的是,本发明不限于此,连接接口单元102也可以是符合并行高级技术附件(Parellel Advanced Technology Attachment,简称PATA)标准、电气和电子工程师协会(Institute of Electrical and ElectronicEngineers,简称IEEE)1394标准、高速外设互联接口(Peripheral ComponentInterconnect Express,简称PCI Express)标准、通用串行总线(Universal Serial Bus,简称USB)标准、超高速一代(Ultra High Speed-I,简称UHS-I)接口标准、超高速二代(Ultra High Speed-II,简称UHS-II)接口标准、安全数字(Secure Digital,简称SD)接口标准、存储棒(Memory Stick,简称MS)接口标准、多媒体存储卡(Multi Media Card,简称MMC)接口标准、小型快闪(Compact Flash,简称CF)接口标准、整合式驱动电子接口(Integrated Device Electronics,简称IDE)标准或其他适合的标准。在本实施例中,连接接口单元可与存储器控制电路单元封装在一个芯片中,或布设在一包含存储器控制电路单元的芯片外。In this embodiment, the connection interface unit 102 is compatible with the Serial Advanced Technology Attachment (SATA) standard. However, it must be understood that the present invention is not limited thereto, and the connection interface unit 102 may also be a device that complies with the Parallel Advanced Technology Attachment (PATA) standard, the Institute of Electrical and Electronic Engineers (IEEE for short) )1394 standard, Peripheral Component Interconnect Express (PCI Express for short) standard, Universal Serial Bus (Universal Serial Bus, USB for short) standard, Ultra High Speed-I (UHS-I for short) interface Standard, Ultra High Speed-II (UHS-II for short) interface standard, Secure Digital (SD for short) interface standard, Memory Stick (MS for short) interface standard, Multimedia memory card (Multi Media Card (MMC for short) interface standard, Compact Flash (CF for short) interface standard, Integrated Device Electronics (IDE for short) standard or other suitable standards. In this embodiment, the connection interface unit and the memory control circuit unit can be packaged in a chip, or arranged outside a chip including the memory control circuit unit.
存储器控制电路单元104用以执行以硬件形式或固件形式实作的多个逻辑门或控制指令,并且根据主机系统1000的指令在可复写式非易失性存储器模块106中进行数据的写入、读取与抹除等操作。The memory control circuit unit 104 is used to execute a plurality of logic gates or control instructions implemented in the form of hardware or firmware, and write data in the rewritable non-volatile memory module 106 according to the instructions of the host system 1000, Read and erase operations.
可复写式非易失性存储器模块106是电性连接至存储器控制电路单元104,并且用以存储主机系统1000所写入的数据。可复写式非易失性存储器模块106具有实体抹除单元410(0)~410(N)。例如,实体抹除单元410(0)~410(N)可属于同一个存储器晶粒(die)或者属于不同的存储器晶粒。每一实体抹除单元分别具有复数个实体程序化单元,其中属于同一个实体抹除单元的实体程序化单元可被独立地写入且被同时地抹除。然而,必须了解的是,本发明不限于此,每一实体抹除单元是可由64个实体程序化单元、256个实体程序化单元或其他任意个实体程序化单元所组成。The rewritable non-volatile memory module 106 is electrically connected to the memory control circuit unit 104 and used for storing data written by the host system 1000 . The rewritable non-volatile memory module 106 has physical erasing units 410(0)˜410(N). For example, the physical erase units 410(0)˜410(N) may belong to the same memory die or belong to different memory dies. Each physical erasing unit has a plurality of physical programming units, wherein the physical programming units belonging to the same physical erasing unit can be written independently and erased simultaneously. However, it must be understood that the present invention is not limited thereto, and each physical erasing unit may be composed of 64 physical programming units, 256 physical programming units, or any other number of physical programming units.
更详细来说,实体抹除单元为抹除的最小单位。也即,每一实体抹除单元含有最小数目之一并被抹除的存储单元。实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。每一实体程序化单元通常包括数据比特区与冗余比特区。数据比特区包含多个实体存取地址用以存储使用者的数据,而冗余比特区用以存储系统的数据(例如,控制信息与错误更正码)。在本实施例中,每一个实体程序化单元的数据比特区中会包含4个实体存取地址,且一个实体存取地址的大小为512字节(byte)。然而,在其他实施例中,数据比特区中也可包含数目更多或更少的实体存取地址,本发明并不限制实体存取地址的大小以及个数。例如,在一实施例中,实体抹除单元为实体块,并且实体程序化单元为实体页面或实体扇区,但本发明不以此为限。In more detail, the entity erasing unit is the smallest unit of erasing. That is, each physical erase unit contains a minimum number of memory cells that are erased. Entity programming unit is the smallest unit of programming. That is, the entity programming unit is the smallest unit for writing data. Each physical programming unit generally includes a data bit area and a redundant bit area. The data bit area contains multiple physical access addresses for storing user data, and the redundant bit area is used for storing system data (eg, control information and error correction code). In this embodiment, the data bit area of each physical programming unit includes 4 physical access addresses, and the size of one physical access address is 512 bytes. However, in other embodiments, the data bit area may also include more or less physical access addresses, and the present invention does not limit the size and number of physical access addresses. For example, in one embodiment, the physical erasing unit is a physical block, and the physical programming unit is a physical page or a physical sector, but the invention is not limited thereto.
在本实施例中,可复写式非易失性存储器模块106为多层存储单元(Multi LevelCell,简称MLC)NAND型快闪存储器模块(即,一个存储单元中可存储2个比特数据的快闪存储器模块)。然而,本发明不限于此,可复写式非易失性存储器模块106也可是单层存储单元(Single Level Cell,简称SLC)NAND型快闪存储器模块(即,一个存储单元中可存储1个比特数据的快闪存储器模块)、复数层存储单元(Trinary Level Cell,简称TLC)NAND型快闪存储器模块(即,一个存储单元中可存储3个比特数据的快闪存储器模块)、其他快闪存储器模块或其他具有相同特性的存储器模块。In this embodiment, the rewritable non-volatile memory module 106 is a multi-level memory cell (Multi LevelCell, referred to as MLC) NAND flash memory module (that is, a flash memory module that can store 2 bits of data in a memory cell) memory module). However, the present invention is not limited thereto, and the rewritable non-volatile memory module 106 may also be a single-level storage cell (Single Level Cell, referred to as SLC) NAND flash memory module (that is, one storage unit can store 1 bit data flash memory module), complex layer storage unit (Trinary Level Cell, referred to as TLC) NAND flash memory module (that is, a flash memory module that can store 3 bits of data in a storage unit), other flash memory module or other memory modules with the same characteristics.
图5是根据一实施例所示出的存储器控制电路单元的概要方块图。FIG. 5 is a schematic block diagram of a memory control circuit unit according to an embodiment.
请参照图5,存储器控制电路单元104包括存储器管理电路202、主机接口204与存储器接口206。Referring to FIG. 5 , the memory control circuit unit 104 includes a memory management circuit 202 , a host interface 204 and a memory interface 206 .
存储器管理电路202用以控制存储器控制电路单元104的整体操作。具体来说,存储器管理电路202具有多个控制指令,并且在存储器存储装置100操作时,此些控制指令会被执行以进行数据的写入、读取与抹除等操作。The memory management circuit 202 is used to control the overall operation of the memory control circuit unit 104 . Specifically, the memory management circuit 202 has a plurality of control instructions, and when the memory storage device 100 is operating, these control instructions are executed to perform operations such as writing, reading, and erasing data.
在本实施例中,存储器管理电路202的控制指令是以固件形式来实作。例如,存储器管理电路202具有微处理器单元(未示出)与只读存储器(未示出),并且此些控制指令是被烧录至此只读存储器中。当存储器存储装置100操作时,此些控制指令会由微处理器单元来执行以进行数据的写入、读取与抹除等操作。In this embodiment, the control commands of the memory management circuit 202 are implemented in the form of firmware. For example, the memory management circuit 202 has a microprocessor unit (not shown) and a read-only memory (not shown), and these control instructions are burned into the read-only memory. When the memory storage device 100 is operating, these control instructions are executed by the microprocessor unit to perform operations such as writing, reading, and erasing data.
在本发明另一实施例中,存储器管理电路202的控制指令也可以程序码形式存储在可复写式非易失性存储器模块106的特定区域(例如,存储器模块中专用于存放系统数据的系统区)中。此外,存储器管理电路202具有微处理器单元(未示出)、只读存储器(未示出)及随机存取存储器(未示出)。特别是,此只读存储器具有驱动码,并且当存储器控制电路单元104被致能时,微处理器单元会先执行此驱动码段来将存储在可复写式非易失性存储器模块106中的控制指令载入至存储器管理电路202的随机存取存储器中。之后,微处理器单元会运转此些控制指令以进行数据的写入、读取与抹除等操作。In another embodiment of the present invention, the control instructions of the memory management circuit 202 can also be stored in a specific area of the rewritable non-volatile memory module 106 in the form of program code (for example, the system area dedicated to storing system data in the memory module )middle. In addition, the memory management circuit 202 has a microprocessor unit (not shown), a read only memory (not shown) and a random access memory (not shown). In particular, the ROM has a driver code, and when the memory control circuit unit 104 is enabled, the microprocessor unit will first execute the driver code segment to store the data stored in the rewritable non-volatile memory module 106. The control instructions are loaded into the random access memory of the memory management circuit 202 . Afterwards, the microprocessor unit runs these control instructions to perform operations such as writing, reading and erasing data.
此外,在本发明另一实施例中,存储器管理电路202的控制指令也可以一硬件形式来实作。例如,存储器管理电路202包括微控制器、存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路。存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路是电性连接至微控制器。其中,存储单元管理电路用以管理可复写式非易失性存储器模块106的实体抹除单元;存储器写入电路用以对可复写式非易失性存储器模块106下达写入指令以将数据写入至可复写式非易失性存储器模块106中;存储器读取电路用以对可复写式非易失性存储器模块106下达读取指令以从可复写式非易失性存储器模块106中读取数据;存储器抹除电路用以对可复写式非易失性存储器模块106下达抹除指令以将数据从可复写式非易失性存储器模块106中抹除;而数据处理电路用以处理欲写入至可复写式非易失性存储器模块106的数据以及从可复写式非易失性存储器模块106中读取的数据。In addition, in another embodiment of the present invention, the control instructions of the memory management circuit 202 may also be implemented in a hardware form. For example, the memory management circuit 202 includes a microcontroller, a memory unit management circuit, a memory writing circuit, a memory reading circuit, a memory erasing circuit and a data processing circuit. The storage unit management circuit, the memory writing circuit, the memory reading circuit, the memory erasing circuit and the data processing circuit are electrically connected to the microcontroller. Wherein, the storage unit management circuit is used to manage the physical erasing unit of the rewritable non-volatile memory module 106; the memory writing circuit is used to issue a write command to the rewritable non-volatile memory module 106 to write data into the rewritable nonvolatile memory module 106; the memory read circuit is used to issue a read instruction to the rewritable nonvolatile memory module 106 to read from the rewritable nonvolatile memory module 106 Data; the memory erasing circuit is used to issue an erase command to the rewritable non-volatile memory module 106 to erase data from the rewritable non-volatile memory module 106; and the data processing circuit is used to process the data to be written Data input to the rewritable non-volatile memory module 106 and data read from the rewritable non-volatile memory module 106.
主机接口204是电性连接至存储器管理电路202并且用以电性连接至连接接口单元102,以接收与识别主机系统1000所传送的指令与数据。也就是说,主机系统1000所传送的指令与数据会通过主机接口204来传送至存储器管理电路202。在本实施例中,主机接口204是相容于SATA标准。然而,必须了解的是本发明不限于此,主机接口204也可以是相容于PATA标准、IEEE1394标准、PCI Express标准、USB标准、UHS-I接口标准、UHS-II接口标准、SD标准、MS标准、MMC标准、CF标准、IDE标准或其他适合的数据传输标准。The host interface 204 is electrically connected to the memory management circuit 202 and is used to electrically connect to the connection interface unit 102 to receive and identify commands and data transmitted by the host system 1000 . That is to say, the commands and data transmitted by the host system 1000 are transmitted to the memory management circuit 202 through the host interface 204 . In this embodiment, the host interface 204 is compatible with the SATA standard. However, it must be understood that the present invention is not limited thereto, and the host interface 204 may also be compatible with PATA standard, IEEE1394 standard, PCI Express standard, USB standard, UHS-I interface standard, UHS-II interface standard, SD standard, MS standard, MMC standard, CF standard, IDE standard or other suitable data transmission standards.
存储器接口206是电性连接至存储器管理电路202并且用以存取可复写式非易失性存储器模块106。也就是说,欲写入至可复写式非易失性存储器模块106的数据会经由存储器接口206转换为可复写式非易失性存储器模块106所能接受的格式。The memory interface 206 is electrically connected to the memory management circuit 202 and used for accessing the rewritable non-volatile memory module 106 . That is to say, the data to be written into the rewritable nonvolatile memory module 106 will be converted into a format acceptable to the rewritable nonvolatile memory module 106 via the memory interface 206 .
在本发明一实施例中,存储器控制电路单元104还包括缓冲存储器208、电源管理电路210与错误检查与校正电路212。In an embodiment of the present invention, the memory control circuit unit 104 further includes a buffer memory 208 , a power management circuit 210 and an error checking and correction circuit 212 .
缓冲存储器208是电性连接至存储器管理电路202并且用以暂存来自于主机系统1000的数据与指令或来自于可复写式非易失性存储器模块106的数据。The buffer memory 208 is electrically connected to the memory management circuit 202 and used for temporarily storing data and instructions from the host system 1000 or data from the rewritable non-volatile memory module 106 .
电源管理电路210是电性连接至存储器管理电路202并且用以控制存储器存储装置100的电源。The power management circuit 210 is electrically connected to the memory management circuit 202 and used to control the power of the memory storage device 100 .
错误检查与校正电路212是电性连接至存储器管理电路202并且用以执行错误检查与校正程序以确保数据的正确性。具体来说,当存储器管理电路202从主机系统1000中接收到写入指令时,错误检查与校正电路212会为对应此写入指令的数据产生对应的错误检查与校正码(Error Checking and Correcting Code,简称ECC Code),并且存储器管理电路202会将对应此写入指令的数据与对应的错误检查与校正码写入至可复写式非易失性存储器模块106中。之后,当存储器管理电路202从可复写式非易失性存储器模块106中读取数据时会同时读取此数据对应的错误检查与校正码,并且错误检查与校正电路212会依据此错误检查与校正码对所读取的数据执行错误检查与校正程序。The error checking and correcting circuit 212 is electrically connected to the memory management circuit 202 and used for executing error checking and correcting procedures to ensure the correctness of data. Specifically, when the memory management circuit 202 receives a write command from the host system 1000, the error checking and correcting circuit 212 will generate a corresponding error checking and correcting code (Error Checking and Correcting Code) for the data corresponding to the write command. , ECC Code for short), and the memory management circuit 202 will write the data corresponding to the write command and the corresponding ECC code into the rewritable non-volatile memory module 106 . Afterwards, when the memory management circuit 202 reads data from the rewritable non-volatile memory module 106, it will simultaneously read the error checking and correction code corresponding to the data, and the error checking and correction circuit 212 will read the error checking and correction code according to the error checking and correction code. The correction code performs error checking and correction procedures on the read data.
图6是根据本发明一实施例所示出的用于以连接存储器存储装置与主机系统的总线连接接口与电源供应连接接口的示意图。6 is a schematic diagram of a bus connection interface and a power supply connection interface for connecting a memory storage device to a host system according to an embodiment of the present invention.
请参照图6,总线连接接口602是电连接至主机系统1000的控制芯片组(未示出),并且用以与存储器存储装置100的数据连接接口102a连接。电源供应连接接口604是电连接至主机系统1000的电源供应器(未示出),并且用以与存储器存储装置100的电源连接接口102b连接。Referring to FIG. 6 , the bus connection interface 602 is electrically connected to the control chipset (not shown) of the host system 1000 and used to connect with the data connection interface 102 a of the memory storage device 100 . The power supply connection interface 604 is electrically connected to a power supply (not shown) of the host system 1000 and used to connect with the power connection interface 102 b of the memory storage device 100 .
如上所述,在本实施例中,电源连接接口102b具有装置休眠信号引脚612,其中当电源供应连接接口604电连接至电源连接接口102b时,电源供应连接接口604的信号输出引脚622会电性连接至装置休眠信号引脚612。例如,当主机系统1000上电时,信号输出引脚622会输出3.3伏特的电压信号,用以提供电性连接的装置所需的电源。As mentioned above, in this embodiment, the power connection interface 102b has a device sleep signal pin 612, wherein when the power supply connection interface 604 is electrically connected to the power connection interface 102b, the signal output pin 622 of the power supply connection interface 604 will be It is electrically connected to the device sleep signal pin 612 . For example, when the host system 1000 is powered on, the signal output pin 622 will output a voltage signal of 3.3 volts to provide the power required by the electrically connected devices.
特别是,如上所述,倘若装置休眠信号引脚612所电连接的信号输出引脚622是用以支持装置休眠信号协议时,在存储器存储装置100正常操作的状态下,主机系统1000是控制信号输出引脚622上的电平信号处于第二逻辑电平(即不致能存储器存储装置100进入装置休眠模式),以使得装置休眠信号引脚612上的电平信号也处于第二逻辑电平。基此,存储器控制电路单元104(或存储器管理电路202)会依据装置休眠信号引脚612的状态而正常操作。倘若,信号输出引脚622不是被用以支持装置休眠信号协议时,主机系统1000不会利用信号输出引脚622输出装置休眠控制信号,因此,在主机系统1000上电后,若信号输出引脚622上的电平信号处于第一逻辑电平则可能会导致存储器存储装置100误动作而直接进入装置休眠模式。In particular, as mentioned above, if the signal output pin 622 electrically connected to the device sleep signal pin 612 is used to support the device sleep signal protocol, in the normal operation state of the memory storage device 100, the host system 1000 is the control signal The level signal on the output pin 622 is at the second logic level (ie, does not enable the memory storage device 100 to enter the device sleep mode), so that the level signal on the device sleep signal pin 612 is also at the second logic level. Based on this, the memory control circuit unit 104 (or the memory management circuit 202 ) will operate normally according to the state of the device sleep signal pin 612 . If the signal output pin 622 is not used to support the device sleep signal protocol, the host system 1000 will not use the signal output pin 622 to output the device sleep control signal. Therefore, after the host system 1000 is powered on, if the signal output pin The level signal on 622 at the first logic level may cause the memory storage device 100 to malfunction and directly enter the device sleep mode.
基此,倘若主机系统1000支持装置休眠信号协议时,在一特定规范中,用以连接装置休眠信号引脚612的信号输出引脚622应会被正确地电连接至主机系统1000的芯片组(未示出)中对应的引脚,以控制存储器存储装置100进入休眠模式。在本实施例中,当主机系统1000通过总线连接接口602传送启用装置休眠功能指令给存储器存储装置100时,存储器控制电路单元104(或存储器管理电路202)会判断装置休眠信号引脚612上的电平信号是否处于第二逻辑电平。倘若装置休眠信号引脚612上的电平信号处于第二逻辑电平时,则存储器控制电路单元104会判断装置休眠信号引脚612已被正确地连接到支持装置休眠信号协议的信号输出引脚。反之,若装置休眠信号引脚612上的电平信号处于第一逻辑电平时,则存储器控制电路单元104会判断装置休眠信号引脚612未被连接到支持装置休眠信号协议的信号输出引脚。Therefore, if the host system 1000 supports the device sleep signal protocol, in a specific specification, the signal output pin 622 used to connect the device sleep signal pin 612 should be correctly electrically connected to the chip set of the host system 1000 ( not shown) to control the memory storage device 100 to enter the sleep mode. In this embodiment, when the host system 1000 transmits an instruction to enable the device sleep function to the memory storage device 100 through the bus connection interface 602, the memory control circuit unit 104 (or the memory management circuit 202) will determine the signal on the device sleep signal pin 612 Whether the level signal is at the second logic level. If the level signal on the device sleep signal pin 612 is at the second logic level, the memory control circuit unit 104 determines that the device sleep signal pin 612 has been correctly connected to a signal output pin supporting the device sleep signal protocol. On the contrary, if the level signal on the device sleep signal pin 612 is at the first logic level, the memory control circuit unit 104 will determine that the device sleep signal pin 612 is not connected to a signal output pin supporting the device sleep signal protocol.
特别是,倘若装置休眠信号引脚612已被正确地连接到支持装置休眠信号协议的信号输出引脚时,存储器控制电路单元104(或存储器管理电路202)会开启装置休眠功能,并且在主机系统1000通过与装置休眠信号引脚612的信号输出引脚622指示开始进入休眠模式(例如,控制信号输出引脚622的电平从第二逻辑电平改变为第一逻辑电平)时,存储器控制电路单元104(或存储器管理电路202)会启动休眠模式,以致于存储器存储装置100停止操作并处于低耗电的状态。Especially, if the device sleep signal pin 612 has been correctly connected to the signal output pin supporting the device sleep signal protocol, the memory control circuit unit 104 (or the memory management circuit 202) will enable the device sleep function, and the host system When the 1000 indicates that the signal output pin 622 of the device sleep signal pin 612 starts to enter the sleep mode (for example, the level of the control signal output pin 622 changes from the second logic level to the first logic level), the memory control The circuit unit 104 (or the memory management circuit 202 ) activates the sleep mode, so that the memory storage device 100 stops operating and is in a state of low power consumption.
图7是根据一实施例所示出的休眠模式启动方法的流程图。Fig. 7 is a flow chart of a method for starting a sleep mode according to an embodiment.
请参照图7,在步骤S701中,存储器控制电路单元104(或存储器管理电路202)会通过数据连接接口102a接收启用装置休眠功能指令,并且在步骤S703中,存储器控制电路单元104(或存储器管理电路202)会判断电源连接接口102b上的装置休眠信号引脚612上的电平信号是否处于与第一逻辑电平相反的第二逻辑电平。Please refer to FIG. 7, in step S701, the memory control circuit unit 104 (or memory management circuit 202) receives an instruction to enable the device sleep function through the data connection interface 102a, and in step S703, the memory control circuit unit 104 (or memory management circuit 202) The circuit 202) will determine whether the level signal on the device sleep signal pin 612 on the power connection interface 102b is at a second logic level opposite to the first logic level.
倘若存储器存储装置100的电源连接接口102b上的装置休眠信号引脚612上的电平信号处于第二逻辑电平时,在步骤S705中,存储器控制电路单元104(或存储器管理电路202)会开启装置休眠功能。If the level signal on the device sleep signal pin 612 on the power connection interface 102b of the memory storage device 100 is at the second logic level, in step S705, the memory control circuit unit 104 (or memory management circuit 202) will turn on the device Sleep function.
接着,在步骤S707中,存储器控制电路单元104(或存储器管理电路202)会检测电源连接接口102b上的装置休眠信号引脚612的状态是否从第二逻辑电平改变为第一逻辑电平。Next, in step S707, the memory control circuit unit 104 (or the memory management circuit 202) detects whether the state of the device sleep signal pin 612 on the power connection interface 102b changes from the second logic level to the first logic level.
倘若在步骤S707中检测到电源连接接口102b上的装置休眠信号引脚612的状态从第二逻辑电平改变为第一逻辑电平时,在步骤S709中,存储器控制电路单元104(或存储器管理电路202)会开始进入休眠模式。If it is detected in step S707 that the state of the device sleep signal pin 612 on the power connection interface 102b changes from the second logic level to the first logic level, in step S709, the memory control circuit unit 104 (or memory management circuit 202) will start to enter sleep mode.
倘若在步骤S707中未检测到电源连接接口102b上的装置休眠信号引脚612的状态从第二逻辑电平改变为第一逻辑电平时,步骤S707会被重复执行。If it is not detected in step S707 that the state of the device sleep signal pin 612 on the power connection interface 102b changes from the second logic level to the first logic level, step S707 will be executed repeatedly.
在步骤S709之后,在步骤S711,存储器控制电路单元104(或存储器管理电路202)会检测电源连接接口102b上的装置休眠信号引脚612的状态是否从第一逻辑电平改变为第二逻辑电平。After step S709, in step S711, the memory control circuit unit 104 (or the memory management circuit 202) will detect whether the state of the device sleep signal pin 612 on the power connection interface 102b changes from the first logic level to the second logic level. flat.
倘若在步骤S711中检测到电源连接接口102b上的装置休眠信号引脚612的状态从第一逻辑电平改变为第二逻辑电平时,在步骤S713中,存储器控制电路单元104(或存储器管理电路202)会从休眠模式中恢复为操作模式,并且之后步骤S707会被执行。If it is detected in step S711 that the state of the device sleep signal pin 612 on the power connection interface 102b changes from the first logic level to the second logic level, in step S713, the memory control circuit unit 104 (or memory management circuit 202) will return to the operation mode from the sleep mode, and then step S707 will be executed.
倘若在步骤S711中未检测到电源连接接口102b上的装置休眠信号引脚612的状态从第一逻辑电平改变为第二逻辑电平时,步骤S711会被重复执行。If it is not detected in step S711 that the state of the device sleep signal pin 612 on the power connection interface 102b changes from the first logic level to the second logic level, step S711 will be executed repeatedly.
倘若在步骤S703中判断存储器存储装置100的电源连接接口102b上的装置休眠信号引脚612上的电平信号非处于第二逻辑电平时,在步骤S715中,存储器控制电路单元104(或存储器管理电路202)不开启装置休眠功能。If it is judged in step S703 that the level signal on the device sleep signal pin 612 on the power connection interface 102b of the memory storage device 100 is not at the second logic level, in step S715, the memory control circuit unit 104 (or memory management Circuit 202) does not enable the device sleep function.
值得一提的是,在本实施例中,存储器控制电路单元104(或存储器管理电路202)是根据电源连接接口102b上的装置休眠信号引脚612上的电平信号来决定是否开启装置休眠功能。然而,本发明不限于此,在本发明另一实施例中,存储器控制电路单元104(或存储器管理电路202)也可根据电源连接接口102b上的其他引脚来决定是否开启装置休眠功能。例如,当通过主机接口204从主机系统1000接收到启用装置休眠功能指令时,存储器控制电路单元104(或存储器管理电路202)判断电源连接接口102b的保留未使用的引脚(以下称为第一引脚)上的电平信号是否处于预定逻辑电平。倘若判断第一引脚上的电平信号处于预定逻辑电平时,存储器控制电路单元104(或存储器管理电路202)会开启存储器存储装置100的装置休眠功能,并且在开启装置休眠功能后若检测到电源连接接口102b的装置休眠信号引脚上的电平处于第一逻辑电平时,则开始进入休眠模式。特别是,倘若此第一引脚上的电平为3.3伏特时,存储器控制电路单元104(或存储器管理电路202)不会开启该存储器存储装置100的装置休眠功能。It is worth mentioning that in this embodiment, the memory control circuit unit 104 (or the memory management circuit 202) determines whether to enable the device sleep function according to the level signal on the device sleep signal pin 612 on the power connection interface 102b . However, the present invention is not limited thereto. In another embodiment of the present invention, the memory control circuit unit 104 (or the memory management circuit 202 ) may also determine whether to enable the device sleep function according to other pins on the power connection interface 102b. For example, when receiving an instruction to enable the device sleep function from the host system 1000 through the host interface 204, the memory control circuit unit 104 (or the memory management circuit 202) determines that the unused pin of the power connection interface 102b (hereinafter referred to as the first Whether the level signal on the pin) is at a predetermined logic level. If it is judged that the level signal on the first pin is at a predetermined logic level, the memory control circuit unit 104 (or the memory management circuit 202) will enable the device sleep function of the memory storage device 100, and if it detects When the level of the device sleep signal pin of the power connection interface 102b is at the first logic level, it starts to enter the sleep mode. Especially, if the level of the first pin is 3.3 volts, the memory control circuit unit 104 (or the memory management circuit 202 ) will not enable the device sleep function of the memory storage device 100 .
综上所述,本发明实施例的休眠模式启动方法、存储器控制电路单元及存储装置是通过在接收到启用装置休眠功能指令时识别电源连接接口上的装置休眠信号引脚的逻辑电平状态以判断与装置休眠信号引脚连接的信号输出引脚是否支持装置休眠信号协议,由此避免误判而进入休眠模式。To sum up, the method for starting the sleep mode, the memory control circuit unit, and the storage device of the embodiments of the present invention identify the logic level state of the device sleep signal pin on the power connection interface when receiving the device sleep function enable command to Judging whether the signal output pin connected to the device sleep signal pin supports the device sleep signal protocol, thereby avoiding misjudgment and entering the sleep mode.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410008155.XA CN104765625B (en) | 2014-01-08 | 2014-01-08 | Sleep mode starting method, memory control circuit unit and memory device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410008155.XA CN104765625B (en) | 2014-01-08 | 2014-01-08 | Sleep mode starting method, memory control circuit unit and memory device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104765625A CN104765625A (en) | 2015-07-08 |
| CN104765625B true CN104765625B (en) | 2018-09-18 |
Family
ID=53647474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410008155.XA Active CN104765625B (en) | 2014-01-08 | 2014-01-08 | Sleep mode starting method, memory control circuit unit and memory device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104765625B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106201825B (en) * | 2016-07-13 | 2019-03-08 | 深圳市爱培科技术股份有限公司 | A kind of intelligent back vision mirror running state monitoring method and system |
| CN108710507B (en) * | 2018-02-11 | 2021-01-12 | 深圳忆联信息系统有限公司 | SSD host dormancy optimization method |
| TWI788759B (en) * | 2020-08-27 | 2023-01-01 | 瑞昱半導體股份有限公司 | Docking station for power management |
| CN113342715B (en) * | 2021-06-10 | 2024-05-24 | 京微齐力(北京)科技股份有限公司 | Field programmable gate array device and memory power supply control method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1504859A (en) * | 2002-12-03 | 2004-06-16 | 宏�股份有限公司 | Handheld device with sleep function and operation method thereof |
| CN1920749A (en) * | 2005-08-23 | 2007-02-28 | 鸿富锦精密工业(深圳)有限公司 | Electricity-saving electronic device and electricity-saving method thereof |
| CN101943940A (en) * | 2009-07-07 | 2011-01-12 | 鸿富锦精密工业(深圳)有限公司 | Notebook computer and power saving method thereof |
| CN103377155A (en) * | 2012-04-26 | 2013-10-30 | 群联电子股份有限公司 | Memory storage device, memory controller and power control method thereof |
-
2014
- 2014-01-08 CN CN201410008155.XA patent/CN104765625B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1504859A (en) * | 2002-12-03 | 2004-06-16 | 宏�股份有限公司 | Handheld device with sleep function and operation method thereof |
| CN1920749A (en) * | 2005-08-23 | 2007-02-28 | 鸿富锦精密工业(深圳)有限公司 | Electricity-saving electronic device and electricity-saving method thereof |
| CN101943940A (en) * | 2009-07-07 | 2011-01-12 | 鸿富锦精密工业(深圳)有限公司 | Notebook computer and power saving method thereof |
| CN103377155A (en) * | 2012-04-26 | 2013-10-30 | 群联电子股份有限公司 | Memory storage device, memory controller and power control method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104765625A (en) | 2015-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105005450B (en) | Data writing method, memory storage device and memory control circuit unit | |
| CN108008915A (en) | Apparatus and method for control memory device | |
| US8423838B2 (en) | Block management method, memory controller, and memory storage apparatus | |
| TWI526818B (en) | Method of enabling sleep mode, memory control circuit unit and storage appartus | |
| CN104765568A (en) | Data storage method, memory control circuit unit and memory storage device | |
| CN106814968B (en) | Memory management method and system and memory storage device thereof | |
| TWI640872B (en) | Memory control circuit unit, memory storage device and control method thereof | |
| CN104765625B (en) | Sleep mode starting method, memory control circuit unit and memory device | |
| CN103377155B (en) | Memory storage device, memory controller and power control method thereof | |
| CN107045890A (en) | Data protection method, memory control circuit unit and memory storage device | |
| CN103198861B (en) | Memory storage device, memory controller and control method | |
| TWI536392B (en) | Non-volatile memory storage apparatus, memory controller and data storage method | |
| TWI494944B (en) | Method of detecting memory modules, memory control circuit unit and storage appartus | |
| TWI512623B (en) | Method of enabling sleep mode, memory control circuit unit and storage apparatus | |
| CN103870209B (en) | Working mode switching method, memory controller and memory storage device | |
| CN104615554B (en) | Memory module detection method, memory control circuit unit and storage device | |
| CN102591738B (en) | Data management method, memory controller and embedded memory storage device | |
| CN106155711B (en) | Sleep mode starting method, memory control circuit unit and memory device | |
| US20150169235A1 (en) | Data storage device and operating method thereof | |
| TWI521538B (en) | Non-volatile memory storage apparatus, memory controller and data storage method | |
| CN110297595B (en) | Host memory buffer configuration method, storage device and control circuit unit | |
| CN103777732B (en) | Connector control method, connector and memory storage device | |
| CN104809082B (en) | Data protection method, memory storage device and memory control circuit unit | |
| CN111831210A (en) | Memory management method, memory control circuit unit, and memory storage device | |
| CN102855192B (en) | Memory erasing method, memory controller and memory storage device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |