TW201503158A - Data storage device and FLASH memory control method - Google Patents

Data storage device and FLASH memory control method Download PDF

Info

Publication number
TW201503158A
TW201503158A TW103104843A TW103104843A TW201503158A TW 201503158 A TW201503158 A TW 201503158A TW 103104843 A TW103104843 A TW 103104843A TW 103104843 A TW103104843 A TW 103104843A TW 201503158 A TW201503158 A TW 201503158A
Authority
TW
Taiwan
Prior art keywords
flash memory
clock
controller
test
frequency clock
Prior art date
Application number
TW103104843A
Other languages
Chinese (zh)
Other versions
TWI543189B (en
Inventor
Chin-Yin Tsai
Yi Lin Lai
Original Assignee
Via Tech Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Via Tech Inc filed Critical Via Tech Inc
Priority to CN201410073637.3A priority Critical patent/CN103915119B/en
Priority to US14/317,138 priority patent/US9318213B2/en
Publication of TW201503158A publication Critical patent/TW201503158A/en
Application granted granted Critical
Publication of TWI543189B publication Critical patent/TWI543189B/en

Links

Abstract

An overclocking method for a data storage device which includes a FLASH memory. A controller, coupled to the FLASH memory, tests the FLASH memory by test clocks of several frequencies, to determine at least one proper clock for the FLASH memory and thereby the FLASH memory is operated according to the at least one proper clock. In an exemplary embodiment, multiple clocks are regarded proper. The proper clocks may be of different frequencies. The FLASH memory may be switched between the proper clocks to disperse the EMI into different frequency bands.

Description

資料儲存裝置以及快閃記憶體控制方法 Data storage device and flash memory control method

本發明係有關於以快閃記憶體實現的一種資料儲存裝置,亦有關於一種快閃記憶體之控制方法。 The present invention relates to a data storage device implemented by flash memory, and to a method for controlling a flash memory.

現今資料儲存裝置常以快閃記憶體(FLASH memory)為儲存媒體,常用作:記憶卡(memory card)、通用序列匯流排閃存裝置(USB flash device)、固態硬碟(SSD)…等產品。另外有一種應用是採多晶片封裝、將快閃記憶體晶片與控制晶片包裝在一起--稱為嵌入式快閃記憶體模組(eMMC)。 Today's data storage devices often use FLASH memory as a storage medium, which is often used as a memory card, a USB flash device, a solid state drive (SSD), and the like. Another application is to package a multi-chip package and package the flash memory chip with the control chip - called the embedded flash memory module (eMMC).

快閃記憶體不只應用廣泛,其容量更隨著製程技術發展顯著提升。然而,如此大容量快閃記憶體的製程良率不一定理想。不理想的快閃記憶體,一般廠商是內定以低時脈操作之。 Flash memory is not only widely used, but its capacity has also increased significantly with the development of process technology. However, the process yield of such a large-capacity flash memory is not necessarily ideal. Undesirable flash memory, the general manufacturer is defaulted to operate with a low clock.

本發明揭露一種以快閃記憶體實現的資料儲存裝置,並且揭露一種快閃記憶體的控制方法,其中提供了超頻設計。 The invention discloses a data storage device implemented by flash memory, and discloses a control method of a flash memory, wherein an overclocking design is provided.

根據本發明一種實施方式所實現的一種資料儲存裝置包括一快閃記憶體以及耦接該快閃記憶體的一控制器。該 控制器係以多種頻率的測試用時脈信號測試該快閃記憶體,以決定該快閃記憶體所適用的時脈信號,使該快閃記憶體根據所適用的時脈信號操作。 A data storage device implemented in accordance with an embodiment of the present invention includes a flash memory and a controller coupled to the flash memory. The The controller tests the flash memory with test clock signals of various frequencies to determine a clock signal suitable for the flash memory, so that the flash memory operates according to the applicable clock signal.

根據本發明一種實施方式所實現的快閃記憶體控制方法包括以下步驟:以多種頻率的測試用時脈信號測試一快閃記憶體;根據上述多種頻率的測試用時脈信號對該快閃記憶體所作的測試之結果,決定該快閃記憶體所適用的時脈信號;以及,令該快閃記憶體根據所適用的時脈信號操作。 A flash memory control method implemented according to an embodiment of the present invention includes the steps of: testing a flash memory with a test clock signal of a plurality of frequencies; and authenticating the flash memory according to the test clock signals of the plurality of frequencies The result of the test performed by the body determines the clock signal to which the flash memory is applied; and causes the flash memory to operate in accordance with the applicable clock signal.

一種實施方式係決定出多個時脈候選為該快閃記憶體所適用的時脈信號。該些時脈候選頻率可不同。該快閃記憶體可在該些時脈候選中切換操作,使得電磁干擾效應分散到多個頻帶。 One embodiment determines that a plurality of clock candidates are clock signals to which the flash memory is applied. The clock candidate frequencies may be different. The flash memory can switch operations among the clock candidates such that the electromagnetic interference effect is dispersed into a plurality of frequency bands.

下文特舉實施例,並配合所附圖式,詳細說明本發明內容。 The present invention will be described in detail below with reference to the accompanying drawings.

100‧‧‧資料儲存裝置 100‧‧‧ data storage device

102‧‧‧快閃記憶體 102‧‧‧Flash memory

104‧‧‧控制器 104‧‧‧ Controller

106‧‧‧主機 106‧‧‧Host

BLK1、BLK2‧‧‧區塊 BLK1, BLK2‧‧‧ blocks

S202…S224、S302…S320、S402…S406‧‧‧步驟 S202...S224, S302...S320, S402...S406‧‧‧ steps

第1圖為根據本發明一種實施方式所實現的一資料儲存裝置100;第2圖以流程圖根據本發明一種實施方式說明一快閃記憶體的超頻測試;第3圖圖解不同模式下的快閃記憶體變頻操作;第4圖為流程圖,根據本發明一種實施方式說明以上所介紹之「超頻測試」以及「變頻操作」如何安排於快閃記憶體102之運作中。 1 is a data storage device 100 implemented in accordance with an embodiment of the present invention; FIG. 2 is a flowchart illustrating an overclocking test of a flash memory according to an embodiment of the present invention; and FIG. 3 is a diagram illustrating fast in different modes. Flash memory frequency conversion operation; FIG. 4 is a flow chart illustrating how the "overclocking test" and "frequency conversion operation" described above are arranged in the operation of the flash memory 102 in accordance with an embodiment of the present invention.

以下敘述列舉本發明的多種實施例。以下敘述介紹本發明的基本概念,且並非意圖限制本發明內容。實際發明範圍應依照申請專利範圍界定之。 The following description sets forth various embodiments of the invention. The following description sets forth the basic concepts of the invention and is not intended to limit the invention. The scope of the actual invention shall be defined in accordance with the scope of the patent application.

第1圖為根據本發明一種實施方式所實現的一資料儲存裝置100,包括一快閃記憶體102以及耦接該快閃記憶體102的一控制器104。控制器104可根據主機106之要求,下達指令操作該快閃記憶體102。如圖所示之實施方式,快閃記憶體102之儲存空間係劃分為複數個區塊(blocks)BLK1、BLK2…等。各區塊包括複數頁(pages)。一區塊之空間需一併抹除(erase)方能釋放作閒置區塊使用。快閃記憶體102的寫入操作一般相較於讀取操作複雜,係決定操作時脈的主要因素。 1 is a data storage device 100 implemented in accordance with an embodiment of the present invention, including a flash memory 102 and a controller 104 coupled to the flash memory 102. The controller 104 can operate the flash memory 102 in response to a request from the host 106. As shown in the embodiment, the storage space of the flash memory 102 is divided into a plurality of blocks BLK1, BLK2, etc. Each block includes a plurality of pages. The space of a block needs to be erased together to release it for use as an idle block. The write operation of the flash memory 102 is generally more complicated than the read operation and is a major factor in determining the operating clock.

控制器104除了負責處理主機106與快閃記憶體102之間的資料傳輸之外,更可對快閃記憶體102作超頻測試。當超頻測試成功時,控制器104可控制快閃記憶體102以一特定時脈信號操作,此特定時脈信號的頻率高於該快閃記憶體102表定支援的最高時脈信號的頻率。舉例而言,製造商在該快閃記憶體102在出廠時會設定該快閃記憶體102表定支援的最高頻率時脈(例如為300MHz)。本發明的控制器104可對該快閃記憶體102進行超頻測試。當超頻測試成功時,控制器104可控制快閃記憶體102操作在高於該最高頻時脈的一特定時脈信號(例如為333MHz)。在一種實施方式中,控制器104係以多種頻率的測試用時脈信號測試該快閃記憶體102,以決定該快閃記憶體102所適用的時脈信號,使該快閃記憶體102根據所適用的 時脈信號操作。 In addition to being responsible for processing data transfers between the host 106 and the flash memory 102, the controller 104 can also overclock the flash memory 102. When the overclocking test is successful, the controller 104 can control the flash memory 102 to operate with a specific clock signal having a frequency higher than the frequency of the highest clock signal supported by the flash memory 102. For example, the manufacturer sets the highest frequency clock (for example, 300 MHz) that the flash memory 102 specifies to support when the flash memory 102 is shipped. The controller 104 of the present invention can perform an overclocking test on the flash memory 102. When the overclocking test is successful, the controller 104 can control the flash memory 102 to operate at a particular clock signal (e.g., 333 MHz) above the highest frequency clock. In one embodiment, the controller 104 tests the flash memory 102 with test clock signals of various frequencies to determine a clock signal to which the flash memory 102 is applied, so that the flash memory 102 is based on the flash memory 102. Applicable Clock signal operation.

在一實施例中,控制器104可透過一資料傳輸線耦接快閃記憶體102。當控制器104以上述的多個測試用時脈信號其中之一時脈信號測試快閃記憶體102時,該快閃記憶體102可在該資料傳輸線上回應一回應信號。控制器104可根據此回應信號決定該時脈信號測是否為快閃記憶體102所適用的時脈信號。在一種實施方式中,控制器104可藉由調整讀取各測試用時脈信號對應的該回應信號的一取樣時間點,自該些測試用時脈信號中決定出該快閃記憶體102所適用的時脈信號。例如,提前或延遲該取樣時間點,使該控制器104讀取到正確的回應信號或回應信號的位元錯誤率低於一特定值。當控制器104可讀取正確或位元錯誤率低於該特定值的回應信號時,則認定對應該回應信號的測試用時脈信號通過該超頻測試。在一種實施方式中,控制器104由該些測試用時脈信號中具有最高頻率的時脈信號開始對快閃記憶體102進行超頻測試。當最高頻率的時脈信號無法通過該超頻測試時,控制器104則可以該些測試用時脈信號中具有第二最高頻率的時脈信號開始對快閃記憶體102進行超頻測試,並以此類推。也就是說,控制器104可由最高頻之測試用時脈信號逐漸降頻以測試該快閃記憶體102。 In an embodiment, the controller 104 can couple the flash memory 102 through a data transmission line. When the controller 104 tests the flash memory 102 with one of the plurality of test clock signals described above, the flash memory 102 can respond to a response signal on the data transmission line. The controller 104 can determine, according to the response signal, whether the clock signal is a clock signal to which the flash memory 102 is applied. In one embodiment, the controller 104 can determine the flash memory 102 from the test clock signals by adjusting a sampling time point of reading the response signal corresponding to each test clock signal. Applicable clock signal. For example, the sampling time point is advanced or delayed, so that the controller 104 reads the correct response signal or the bit error rate of the response signal is lower than a specific value. When the controller 104 can read the response signal with the correct or bit error rate lower than the specific value, it is determined that the test clock signal corresponding to the response signal passes the overclocking test. In one embodiment, the controller 104 begins overclocking the flash memory 102 with the clock signal having the highest frequency among the test clock signals. When the highest frequency clock signal cannot pass the overclocking test, the controller 104 may start overclocking the flash memory 102 by using the clock signal having the second highest frequency among the test clock signals, and thereby analogy. That is, the controller 104 can be gradually down-converted from the highest frequency test clock signal to test the flash memory 102.

控制器104與快閃記憶體102之的資料傳輸線之驅動係基於一組驅動參數。除了調整回應信號的取樣時間點外,在前述的超頻測試中,還可調整控制器104與該快閃記憶體102之間的資料傳輸線之驅動參數。在一種實施方式中,控制器104更藉調整(例如增強或降低)該組驅動參數使得經上述資料傳輸 線回應的的回應信號得以被該控制器104正確擷取。在另一種實施方式中,控制器104係藉切換該快閃記憶體102以單倍數據速率(SDR)操作,使得經上述資料傳輸線所回應的回應信號得以被該控制器104正確擷取。 The drive of the data transfer line between the controller 104 and the flash memory 102 is based on a set of drive parameters. In addition to adjusting the sampling time point of the response signal, in the above overclocking test, the driving parameters of the data transmission line between the controller 104 and the flash memory 102 can also be adjusted. In one embodiment, the controller 104 further adjusts (eg, boosts or reduces) the set of drive parameters such that the data is transmitted via the above data. The response signal of the line response is correctly captured by the controller 104. In another embodiment, the controller 104 operates at a single data rate (SDR) by switching the flash memory 102 such that the response signal responsive to the data transmission line is correctly captured by the controller 104.

第2圖以流程圖根據本發明一種實施方式說明一快閃記憶體的超頻測試。步驟S202負責初始化控制器104與快閃記憶體102間的資料傳輸線之驅動參數。步驟S204負責初始化時脈信號為最高頻。步驟S206負責時脈信號之取樣時間點初始化。步驟S208負責判斷快閃記憶體102在如此之時脈信號下是否正確運作;例如,寫入測試資料,再將之讀出時是否正確。在一種實施方式中,該測試資料可為一組預存於控制器104中的測試資料。倘若通過測試,流程進入步驟S210,決定該快閃記憶體102所適用的時脈信號。 Figure 2 is a flow chart illustrating an overclocking test of a flash memory in accordance with an embodiment of the present invention. Step S202 is responsible for initializing the driving parameters of the data transmission line between the controller 104 and the flash memory 102. Step S204 is responsible for initializing the clock signal to the highest frequency. Step S206 is responsible for initializing the sampling time point of the clock signal. Step S208 is responsible for determining whether the flash memory 102 operates correctly under such a clock signal; for example, writing test data and reading it correctly. In one embodiment, the test data can be a set of test data pre-stored in the controller 104. If the test is passed, the flow proceeds to step S210 to determine the clock signal to which the flash memory 102 is applied.

倘若步驟S208判定快閃記憶體102無法正常運作,流程進入步驟S212,判斷目前頻率之測試用時脈信號是否所有取樣時間點都被測試過。在一種實施方式中,係設計有32種取樣時間點供選擇作測試。若尚有其他取樣時間點待測試,流程進行步驟S214,變換取樣時間點,繼而再次進行步驟S208。 If it is determined in step S208 that the flash memory 102 is not functioning properly, the flow proceeds to step S212, and it is determined whether the test clock signal of the current frequency has been tested at all sampling time points. In one embodiment, there are 32 sampling time points for testing. If there are still other sampling time points to be tested, the flow proceeds to step S214, the sampling time point is changed, and then step S208 is performed again.

倘若步驟S212判定目前頻率之時脈信號已經沒有其他取樣時間點待測試,流程進入步驟S216,判斷時脈信號是否為最低頻。若尚有更低頻的時脈信號待測試,流程進行步驟S218,降頻時脈信號,繼而重新進行步驟S206。 If the step S212 determines that the current frequency clock signal has no other sampling time points to be tested, the flow proceeds to step S216 to determine whether the clock signal is the lowest frequency. If there is still a lower frequency clock signal to be tested, the flow proceeds to step S218, downclocking the clock signal, and then proceeds to step S206.

倘若所有可測試的頻率都測試過,流程進行步驟S220,判斷是否有未使用過的資料傳輸線驅動參數設定。若 是,流程進行步驟S222,調整或使用其他驅動參數設定,繼而進行步驟S204。 If all the testable frequencies have been tested, the process proceeds to step S220 to determine whether there is an unused data transmission line drive parameter setting. If Yes, the flow proceeds to step S222, adjusting or using other drive parameter settings, and then proceeds to step S204.

倘若所有可供測試的驅動參數設定都不適用,則流程進行步驟S224,令該快閃記憶體102自雙倍數據速率(DDR)切換為單倍數據速率(SDR)操作,繼而重新進行步驟S202。 If all of the testable drive parameter settings are not applicable, the process proceeds to step S224, and the flash memory 102 is switched from double data rate (DDR) to single data rate (SDR) operation, and then step S202 is performed again. .

藉由第2圖所示程序,快閃記憶體102所適用的時脈信號之頻率與取樣時間點可被決定。此外,若有調整資料傳輸線驅動參數、或切換快閃記憶體102為SDR模式的需求,也可藉第2圖所示之程序達成,配合最適用的時脈信號使快閃記憶體102正確操作。 With the procedure shown in Fig. 2, the frequency of the clock signal to which the flash memory 102 is applied and the sampling time point can be determined. In addition, if there is a need to adjust the data transmission line driving parameters or switch the flash memory 102 to the SDR mode, it can also be achieved by the program shown in FIG. 2, and the flash memory 102 is correctly operated in accordance with the most suitable clock signal. .

在某些實施方式中,快閃記憶體102不同操作所適用的時脈信號可特別分開作超頻測試獲得。 In some embodiments, the clock signals to which different operations of the flash memory 102 are applied may be obtained separately for overclocking testing.

在一種實施方式中,控制器104可由該些測試用時脈信號中決定出多個時脈候選為快閃記憶體102所適用的時脈信號,使快閃記憶體102係於這些時脈候選中變頻操作。例如,在決定快閃記憶體102得以正確運作的一最高頻時脈(以下稱之CLK_Max)後,控制器104會降頻找出快閃記憶體102得以正確運作的一次高頻時脈(以下稱之CLK_Alt)。最高頻時脈CLK_Max以及次高頻時脈CLK_Alt可被作為快閃記憶體102的時脈候選。快閃記憶體102係在該些時脈候選(最高頻時脈CLK_Max以及次高頻時脈CLK_Alt)中切換操作。如此變頻操作可使得電磁干擾(EMI)效應分散到多個頻帶。特別是,時脈候選數量不限於兩個,也不限定是上述最高頻時脈CLK_Max以及次高頻時脈CLK_Alt;使用者可視需求設計之。 In one embodiment, the controller 104 may determine, by using the test clock signals, a plurality of clock candidates as clock signals applicable to the flash memory 102, and the flash memory 102 is tied to the clock candidates. Medium frequency operation. For example, after determining a maximum frequency clock (hereinafter referred to as CLK_Max) in which the flash memory 102 is properly operated, the controller 104 will down-clock to find a high-frequency clock in which the flash memory 102 is properly operated (below) Call it CLK_Alt). The highest frequency clock CLK_Max and the secondary high frequency clock CLK_Alt can be used as clock candidates for the flash memory 102. The flash memory 102 switches operations in the clock candidates (the highest frequency clock CLK_Max and the secondary high frequency clock CLK_Alt). Such variable frequency operation can spread electromagnetic interference (EMI) effects into multiple frequency bands. In particular, the number of clock candidates is not limited to two, and is not limited to the above-mentioned highest frequency clock CLK_Max and the second high frequency clock CLK_Alt; the user can design according to the needs.

時脈信號之變頻操作可有多種模式。第3圖圖解不同模式下的快閃記憶體變頻操作。 The frequency conversion operation of the clock signal can have multiple modes. Figure 3 illustrates the flash memory conversion operation in different modes.

若步驟S302判定快閃記憶體102係以模式1操作,則程序進行步驟S304,控制器104每下達一指令給該快閃記憶體102即進行步驟S306切換該快閃記憶體102所使用的時脈信號。例如,對應控制器104下達的第一筆指令,快閃記憶體102係以最高頻時脈CLK_Max操作;對應控制器104下達的第二筆指令,快閃記憶體102係以次高頻時脈CLK_Alt操作;對應控制器104下達的第三筆指令,快閃記憶體102係以最高頻時脈CLK_Max操作…以下類推。 If it is determined in step S302 that the flash memory 102 is operating in mode 1, the program proceeds to step S304, and the controller 104 sends an instruction to the flash memory 102 to perform the step S306 to switch the flash memory 102. Pulse signal. For example, corresponding to the first command issued by the controller 104, the flash memory 102 is operated with the highest frequency clock CLK_Max; corresponding to the second command issued by the controller 104, the flash memory 102 is connected to the sub-high frequency clock. CLK_Alt operation; corresponding to the third command issued by the controller 104, the flash memory 102 operates with the highest frequency clock CLK_Max... and so on.

若步驟S302判定快閃記憶體102係以模式2操作,則程序進行步驟S308,判斷控制器104下達指令類型。若為讀取指令,流程進行步驟S310,令快閃記憶體102以最高頻時脈CLK_Max操作。若為寫入指令,流程進行步驟S312,更判斷是否前一次指令也是寫入指令。若確定為連續發生的寫入指令,則流程進行步驟S314,變頻時脈信號,使快閃記憶體102進行寫入操作時係於上述最高頻時脈CLK_Max以及上述次高頻時脈CLK_Alt間切換動作。由於快閃記憶體102的寫入操作較讀取操作耗時,故如此變頻操作可有效避免電磁干擾(EMI)效應集中在特定頻帶。在一實施例中,若確定為非連續發生的寫入指令,則流程進行步驟S315,令快閃記憶體102以固定時脈信號操作。在一實施方式中,上述固定時脈信號為前述次高頻時脈CLK_Alt。更有其他實施方式是令快閃記憶體102於寫入資料時固定降頻以更低於上述次高頻時脈CLK_Alt的時脈操作。 If it is determined in step S302 that the flash memory 102 is operating in mode 2, the program proceeds to step S308, where it is determined that the controller 104 issues the command type. If it is a read command, the flow proceeds to step S310 to cause the flash memory 102 to operate at the highest frequency clock CLK_Max. If it is a write command, the flow proceeds to step S312, and it is further determined whether the previous command is also a write command. If it is determined that the write command occurs continuously, the process proceeds to step S314, and the clock signal is converted to switch between the highest frequency clock CLK_Max and the second high frequency clock CLK_Alt when the flash memory 102 performs the write operation. action. Since the write operation of the flash memory 102 is time consuming compared to the read operation, such a frequency conversion operation can effectively prevent electromagnetic interference (EMI) effects from being concentrated in a specific frequency band. In an embodiment, if it is determined that the write command occurs discontinuously, the flow proceeds to step S315 to cause the flash memory 102 to operate with a fixed clock signal. In one embodiment, the fixed clock signal is the secondary high frequency clock CLK_Alt. Still other embodiments are such that the flash memory 102 is fixedly down-converted when writing data to a clock operation that is lower than the secondary high-frequency clock CLK_Alt.

若步驟S302判定快閃記憶體102係以模式3操作,則程序進行步驟S316,判斷控制器104所要求讀寫的資料類型。若是循序讀寫(sequential read/sequential write),則程序進行步驟S318,控制該快閃記憶體102使用上述最高頻時脈CLK_Max。若是作離散資料之讀寫(random read/random write),則程序進行步驟S320,令該快閃記憶體102降頻使用該次高頻時脈CLK_Alt。由於快閃記憶體102的離散資料之讀寫較循序讀寫複雜,故如此變頻設計可有效避免電磁干擾(EMI)效應集中在特定頻帶。更有其他實施方式是令快閃記憶體102於離散資料之讀寫時於上述最高頻時脈CLK_Max以及上述次高頻時脈CLK_Alt間切換動作,同樣可達分散電磁干擾的目的。 If it is determined in step S302 that the flash memory 102 is operating in mode 3, the program proceeds to step S316 to determine the type of data requested and read by the controller 104. If it is sequential read/sequential write, the program proceeds to step S318 to control the flash memory 102 to use the above-mentioned highest frequency clock CLK_Max. If it is a random read/random write, the program proceeds to step S320 to cause the flash memory 102 to down-convert the high-frequency clock CLK_Alt. Since the reading and writing of the discrete data of the flash memory 102 is more complicated than the sequential reading and writing, the frequency conversion design can effectively prevent the electromagnetic interference (EMI) effect from being concentrated in a specific frequency band. In other embodiments, the flash memory 102 switches between the highest frequency clock CLK_Max and the secondary high frequency clock CLK_Alt during reading and writing of discrete data, and the electromagnetic interference is dispersed.

第4圖為流程圖,根據本發明一種實施方式說明以上所介紹之「超頻測試」以及「變頻操作」如何安排於快閃記憶體102之運作中。快閃記憶體102上電後,步驟S402負責將快閃記憶體102初始化;廠商常態設定的時脈參數被寫入該快閃記憶體102內相關暫存器,使得快閃記憶體102得以依照低標之時脈信號動作。步驟S404係對快閃記憶體102作超頻測試(參考第2圖所示程序),決定出合適該快閃記憶體102的複數個時脈候選。步驟S406係對快閃記憶體102作變頻操作(如第3圖之模式1、2或3),使快閃記憶體102於時脈候選中切換操作,使得電磁干擾(EMI)效應分散到多個頻帶。以上超頻測試亦可使得操作時脈隨著快閃記憶體102老化問題動態調整。 4 is a flow chart illustrating how the "overclocking test" and "frequency conversion operation" described above are arranged in the operation of the flash memory 102 in accordance with an embodiment of the present invention. After the flash memory 102 is powered on, the step S402 is responsible for initializing the flash memory 102; the clock parameter set by the vendor normal state is written into the associated register in the flash memory 102, so that the flash memory 102 can be Low-standard clock signal action. In step S404, the flash memory 102 is overclocked (refer to the program shown in FIG. 2), and a plurality of clock candidates suitable for the flash memory 102 are determined. Step S406 is to perform a frequency conversion operation on the flash memory 102 (such as mode 1, 2 or 3 in FIG. 3), so that the flash memory 102 switches between the clock candidates, so that the electromagnetic interference (EMI) effect is dispersed. Frequency bands. The above overclocking test can also cause the operating clock to dynamically adjust with the aging problem of the flash memory 102.

上述實施方式所述之控制器104除了可為特別設計之晶片外,也可以運算單元與唯讀處理器(ROM)組合實現 之。以上所揭露的技術步驟可以韌體實現,相關程式碼係載於控制器內的唯讀記憶體中,由控制器內的運算單元執行之。此外,凡採用同樣概念控制一快閃記憶體的技術都屬於本案所欲保護的範圍。本案更涉及快閃記憶體的控制方法,不限定以特定架構的控制器實現。 The controller 104 described in the above embodiment may be a combination of an arithmetic unit and a read-only processor (ROM) in addition to a specially designed chip. It. The technical steps disclosed above can be implemented in firmware, and the related code is carried in the read-only memory in the controller, and is executed by the arithmetic unit in the controller. In addition, all techniques that use the same concept to control a flash memory are within the scope of this case. The case is more related to the control method of the flash memory, and is not limited to the implementation of the controller of a specific architecture.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.

100‧‧‧資料儲存裝置 100‧‧‧ data storage device

102‧‧‧快閃記憶體 102‧‧‧Flash memory

104‧‧‧控制器 104‧‧‧ Controller

106‧‧‧主機 106‧‧‧Host

BLK1、BLK2‧‧‧區塊 BLK1, BLK2‧‧‧ blocks

Claims (18)

一種資料儲存裝置,包括:一快閃記憶體;以及一控制器,耦接該快閃記憶體,該控制器以多種頻率的測試用時脈信號測試該快閃記憶體,以決定該快閃記憶體所適用的時脈信號,使該快閃記憶體係根據所適用的時脈信號操作。 A data storage device includes: a flash memory; and a controller coupled to the flash memory, the controller tests the flash memory with test clock signals of various frequencies to determine the flash The clock signal applied to the memory causes the flash memory system to operate in accordance with the applicable clock signal. 如申請專利範圍第1項所述之資料儲存裝置,其中:該控制器更由該些測試用時脈信號中決定出多個時脈候選作為該快閃記憶體所適用的時脈信號,使該快閃記憶體係於該些時脈候選中作變頻操作。 The data storage device of claim 1, wherein the controller further determines, by the test clock signals, a plurality of clock candidates as clock signals to which the flash memory is applied, so that the clock signal is applied to the flash memory. The flash memory system performs frequency conversion operations among the clock candidates. 如申請專利範圍第2項所述之資料儲存裝置,其中:該控制器係以該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈為上述時脈候選;且該控制器係於每下達一指令給該快閃記憶體時切換該快閃記憶體所使用的時脈信號。 The data storage device of claim 2, wherein: the controller is the highest frequency clock and the high frequency clock that the flash memory is correctly operated as the clock candidate; and the control The device switches the clock signal used by the flash memory every time an instruction is given to the flash memory. 如申請專利範圍第2項所述之資料儲存裝置,其中:該控制器係以該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈為上述時脈候選;該控制器於下達讀取指令給該快閃記憶體時係控制該快閃記憶體以上述最高頻時脈操作;且該控制器於下達寫入指令給該快閃記憶體時係控制該快閃記憶體以上述次高頻時脈操作、或於上述最高頻時脈以及上述次高頻時脈間切換操作。 The data storage device of claim 2, wherein: the controller is a clock candidate of the highest frequency clock and a high frequency clock that are correctly operated by the flash memory; the controller Controlling the flash memory to operate at the highest frequency clock when the read command is issued to the flash memory; and the controller controls the flash memory when a write command is issued to the flash memory The operation is performed by the above-described secondary high-frequency clock operation or between the above-mentioned highest frequency clock and the above-described secondary high-frequency clock. 如申請專利範圍第2項所述之資料儲存裝置,其中:該控制器係以該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈為上述時脈候選;該控制器於循序讀寫該快閃記憶體時係控制該快閃記憶體以上述最高頻時脈操作;且該控制器於隨機讀寫該快閃記憶體時係控制該快閃記憶體以上述次高頻時脈操作、或於上述最高頻時脈以及上述次高頻時脈間切換操作。 The data storage device of claim 2, wherein: the controller is a clock candidate of the highest frequency clock and a high frequency clock that are correctly operated by the flash memory; the controller When the flash memory is sequentially read and written, the flash memory is controlled to operate at the highest frequency clock; and the controller controls the flash memory to be the second highest when randomly reading and writing the flash memory. The frequency clock operation, or the above-mentioned highest frequency clock and the above-mentioned secondary high frequency clock switching operation. 如申請專利範圍第1項所述之資料儲存裝置,其中:該控制器係自最高頻之測試用時脈信號逐漸降頻以測試該快閃記憶體。 The data storage device of claim 1, wherein the controller gradually down-converts from the highest frequency test clock signal to test the flash memory. 如申請專利範圍第1項所述之資料儲存裝置,其中:當該控制器以該些測試用時脈信號其中之一測試該快閃記憶體時,該快閃記憶體係回應一回應信號;以及該控制器藉由調整讀取該些測試用時脈信號對應的上述回應信號的一取樣時間點,自該些測試用時脈信號中決定出該快閃記憶體所適用的時脈信號。 The data storage device of claim 1, wherein: the flash memory system responds to a response signal when the controller tests the flash memory with one of the test clock signals; The controller determines a clock signal applicable to the flash memory from the test clock signals by adjusting a sampling time point of reading the response signals corresponding to the test clock signals. 如申請專利範圍第1項所述之資料儲存裝置,其中:該控制器與該快閃記憶體之間的資料傳輸線之驅動係基於一組驅動參數;且當該控制器以該些測試用時脈信號其中之一測試該快閃記憶體時,該控制器更調整該組驅動參數使得經上述資料傳輸線所傳送的信號得以被該控制器正確擷取。 The data storage device of claim 1, wherein: the driving of the data transmission line between the controller and the flash memory is based on a set of driving parameters; and when the controller uses the testing When one of the pulse signals tests the flash memory, the controller further adjusts the set of driving parameters so that the signal transmitted through the data transmission line is correctly captured by the controller. 如申請專利範圍第1項所述之資料儲存裝置,其中: 該控制器與該快閃記憶體之間耦接有資料傳輸線;且該控制器更藉切換該快閃記憶體以單倍數據速率操作使得經上述資料傳輸線所傳送的信號得以被該控制器正確擷取。 For example, the data storage device described in claim 1 wherein: A data transmission line is coupled between the controller and the flash memory; and the controller operates at a single data rate by switching the flash memory so that the signal transmitted through the data transmission line is correctly corrected by the controller. Capture. 一種快閃記憶體控制方法,包括:以多種頻率的測試用時脈信號測試一快閃記憶體;根據上述多種頻率的測試用時脈信號對該快閃記憶體所作的測試之結果,決定該快閃記憶體所適用的時脈信號;以及令該快閃記憶體根據所適用的時脈信號操作。 A flash memory control method comprising: testing a flash memory with a test clock signal of a plurality of frequencies; determining the result of the test of the flash memory according to the test frequency signals of the plurality of frequencies described above; The clock signal to which the flash memory is applied; and the flash memory to operate in accordance with the applicable clock signal. 如申請專利範圍第10項所述之快閃記憶體控制方法,更包括:由該些測試用時脈信號中決定出多個時脈候選作為該快閃記憶體所適用的時脈信號,使該快閃記憶體係於該些時脈候選中作變頻操作。 The flash memory control method of claim 10, further comprising: determining, by the test clock signals, a plurality of clock candidates as clock signals applicable to the flash memory, so that The flash memory system performs frequency conversion operations among the clock candidates. 如申請專利範圍第11項所述之快閃記憶體控制方法,其中:該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈係作為上述時脈候選;且該快閃記憶體所使用的時脈信號係於每有新指令時切換。 The flash memory control method of claim 11, wherein: the highest frequency clock and the high frequency clock system of the flash memory functioning correctly as the clock candidate; and the flashing The clock signal used by the memory is switched every time there is a new command. 如申請專利範圍第11項所述之快閃記憶體控制方法,其中:該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈係作為上述時脈候選;作讀取操作時,該快閃記憶體係以上述最高頻時脈操作;且 作寫入操作時,該快閃記憶體係以上述次高頻時脈操作、或於上述最高頻時脈以及上述次高頻時脈間切換操作。 The flash memory control method according to claim 11, wherein: the highest frequency clock and the high frequency clock system that the flash memory is correctly operated as the clock candidate; The flash memory system operates at the highest frequency clock described above; In the case of a write operation, the flash memory system operates in the above-described secondary high frequency clock, or between the above-described highest frequency clock and the above-described secondary high frequency clock. 如申請專利範圍第11項所述之快閃記憶體控制方法,其中:該快閃記憶體得以正確運作的一最高頻時脈以及一次高頻時脈係作為上述時脈候選;循序讀寫該快閃記憶體時,該快閃記憶體係以上述最高頻時脈操作;且隨機讀寫該快閃記憶體時,該快閃記憶體係以上述次高頻時脈操作、或於上述最高頻時脈以及上述次高頻時脈間切換操作。 The flash memory control method of claim 11, wherein: the highest frequency clock and the high frequency clock system of the flash memory are correctly operated as the clock candidate; In flash memory, the flash memory system operates at the highest frequency clock; and when the flash memory is randomly read and written, the flash memory system operates at the above-mentioned secondary high frequency clock or at the highest frequency Pulse and the above-mentioned secondary high-frequency clock switching operation. 如申請專利範圍第10項所述之快閃記憶體控制方法,其中係自最高頻之測試用時脈信號逐漸降頻以測試該快閃記憶體。 The flash memory control method of claim 10, wherein the test clock signal is gradually down-converted from the highest frequency to test the flash memory. 如申請專利範圍第10項所述之快閃記憶體控制方法,更包括:當以該些測試用時脈信號其中之一測試該快閃記憶體時,該快閃記憶體係回應一回應信號;以及藉由調整讀取該些測試用時脈信號對應的上述回應信號的一取樣時間點,自該些測試用時脈信號中決定出該快閃記憶體所適用的時脈信號。 The flash memory control method of claim 10, further comprising: when the flash memory is tested by one of the test clock signals, the flash memory system responds with a response signal; And determining, by adjusting a sampling time point of the response signal corresponding to the test clock signals, determining a clock signal applicable to the flash memory from the test clock signals. 如申請專利範圍第10項所述之快閃記憶體控制方法,更包括:基於一組驅動參數驅動信號經由資料傳輸線傳送至該快閃記憶體;且 當以該些測試用時脈信號其中之一測試該快閃記憶體時,調整上述該組驅動參數使得經上述資料傳輸線所傳送的信號得以被正確擷取。 The flash memory control method of claim 10, further comprising: transmitting the signal to the flash memory via the data transmission line based on a set of driving parameter driving signals; When the flash memory is tested with one of the test clock signals, the set of drive parameters is adjusted such that the signal transmitted via the data transmission line is correctly captured. 如申請專利範圍第10項所述之快閃記憶體控制方法,更包括:經由資料傳輸線傳送信號至該快閃記憶體;且藉切換該快閃記憶體以單倍數據速率操作使得經上述資料傳輸線所傳送的信號得以被該快閃記憶體正確擷取。 The flash memory control method of claim 10, further comprising: transmitting a signal to the flash memory via a data transmission line; and operating the data by a single data rate by switching the flash memory The signal transmitted by the transmission line is correctly captured by the flash memory.
TW103104843A 2013-07-11 2014-02-14 Data storage device and flash memory control method TWI543189B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410073637.3A CN103915119B (en) 2013-07-11 2014-03-03 Data storage device and flash memory control method
US14/317,138 US9318213B2 (en) 2013-07-11 2014-06-27 Data storage device and flash memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US201361845065P 2013-07-11 2013-07-11

Publications (2)

Publication Number Publication Date
TW201503158A true TW201503158A (en) 2015-01-16
TWI543189B TWI543189B (en) 2016-07-21

Family

ID=52718482

Family Applications (2)

Application Number Title Priority Date Filing Date
TW103104843A TWI543189B (en) 2013-07-11 2014-02-14 Data storage device and flash memory control method
TW103106958A TWI514407B (en) 2013-07-11 2014-03-03 Data storage device and flash memory control method

Family Applications After (1)

Application Number Title Priority Date Filing Date
TW103106958A TWI514407B (en) 2013-07-11 2014-03-03 Data storage device and flash memory control method

Country Status (1)

Country Link
TW (2) TWI543189B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI563509B (en) * 2015-07-07 2016-12-21 Phison Electronics Corp Wear leveling method, memory storage device and memory control circuit unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6992534B2 (en) * 2003-10-14 2006-01-31 Micron Technology, Inc. Circuits and methods of temperature compensation for refresh oscillator
US7859932B2 (en) * 2008-12-18 2010-12-28 Sandisk Corporation Data refresh for non-volatile storage

Also Published As

Publication number Publication date
TW201503154A (en) 2015-01-16
TWI514407B (en) 2015-12-21
TWI543189B (en) 2016-07-21

Similar Documents

Publication Publication Date Title
CN103915119B (en) Data storage device and flash memory control method
CN109871340B (en) Electronic device for training memory device and training method thereof
US10318211B2 (en) Memory system and method of operating the same
EP2443556B1 (en) Parallel training of dynamic random access memory channel controllers
US8082435B2 (en) Memory device initiate and terminate boot commands
US20160246514A1 (en) Memory system
EP2564285B1 (en) Phased nand power-on reset
KR20110058028A (en) Multi-chip memory system and data transfer method thereof
JP2011154556A (en) Semiconductor storage device
US11914874B2 (en) Memory devices with multiple sets of latencies and methods for operating the same
US20140032815A1 (en) Methods and apparatuses for calibrating data sampling points
US7725621B2 (en) Semiconductor device and data transfer method
KR20180115846A (en) Memory device and data storage device including the same
CN112256514B (en) SDIO interface test method and device, storage medium and terminal
TWI543189B (en) Data storage device and flash memory control method
US7565476B2 (en) Memory device
JP2007034554A (en) Semiconductor integrated circuit and microcomputer
US11636055B2 (en) Method and apparatus for performing access management of memory device in predetermined communications architecture with aid of flexible delay time control
US20240028223A1 (en) Memory system
US20070300019A1 (en) Memory access apparatus, memory access method and memory manufacturing method
KR20150082930A (en) Data storage device and operating method thereof