TW202030593A - Electronic device and device wake-up method - Google Patents

Electronic device and device wake-up method Download PDF

Info

Publication number
TW202030593A
TW202030593A TW108104137A TW108104137A TW202030593A TW 202030593 A TW202030593 A TW 202030593A TW 108104137 A TW108104137 A TW 108104137A TW 108104137 A TW108104137 A TW 108104137A TW 202030593 A TW202030593 A TW 202030593A
Authority
TW
Taiwan
Prior art keywords
count value
wake
processor
value
volatile memory
Prior art date
Application number
TW108104137A
Other languages
Chinese (zh)
Other versions
TWI690844B (en
Inventor
鄭令宜
張寶樹
Original Assignee
新唐科技股份有限公司
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 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW108104137A priority Critical patent/TWI690844B/en
Priority to CN201911079883.9A priority patent/CN111522587B/en
Application granted granted Critical
Publication of TWI690844B publication Critical patent/TWI690844B/en
Publication of TW202030593A publication Critical patent/TW202030593A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Power Sources (AREA)

Abstract

A device wake-up method suitable for an electronic device is provided. The method includes starting to perform a wake-up operation, loading an optimized frequency value, and substituting a preset frequency value of a counter by the optimized frequency value; starting to continuously accumulate a waiting count value having an initial value according to the optimized frequency value; in response to determining that the accumulated waiting count value is equal to a target count value, respectively performing a read test operation to one or more test physical addresses in a rewritable non-volatile memory module; and, in response to determining that all the one or more test physical addresses pass the corresponding read test operations, loading a plurality of initial information corresponding to the rewritable non-volatile memory module, so as to complete the wake-up operation.

Description

電子裝置及裝置喚醒方法Electronic device and device wake-up method

本發明是有關於一種電子裝置,且特別是有關於一種電子裝置及裝置喚醒方法。The present invention relates to an electronic device, and more particularly to an electronic device and a device wake-up method.

隨著科技的演進,越來越多的電子裝置會採用可複寫式非揮發性記憶體(Rewritable Non-volatile Memory,NVM)來做為儲存單元,以儲存電子裝置所使用的資料。目前市面上常見的NVM為快閃記憶體(Flash Memory)。快閃記憶體在出廠時,皆會設定一段喚醒時間(亦稱,上電至運作時間,power-up to operation time)(如,10.17 微秒(µs))的規範。電子裝置的控制器需要讓電子裝置從深度待機(Deep Standby)電源狀態(如,休眠或睡眠模式)恢復至可正常地存取快閃記憶體的狀態的耗費時間的長度小於所規範之喚醒時間,以避免發生錯誤。此外,所述讓電子裝置從深度待機電源狀態(如,.休眠)恢復至可正常地存取快閃記憶體的狀態的操作亦稱為喚醒操作。With the evolution of technology, more and more electronic devices will use Rewritable Non-volatile Memory (NVM) as a storage unit to store data used by the electronic device. At present, the common NVM on the market is Flash Memory. When the flash memory is shipped from the factory, a wake-up time (also known as power-up to operation time) (such as 10.17 microseconds (µs)) is set. The controller of the electronic device needs to restore the electronic device from a deep standby power state (such as hibernation or sleep mode) to a state where the flash memory can be accessed normally. The length of time it takes is less than the specified wake-up time To avoid errors. In addition, the operation of restoring the electronic device from a deep standby power state (eg, hibernation) to a state where the flash memory can be normally accessed is also called a wake-up operation.

應注意的是,在等待喚醒操作完成的期間(即,喚醒時間),控制器依然持續地消耗電力。也就是說,若電子裝置常需要從休眠或睡眠中被喚醒,喚醒操作被執行的次數和頻率會增加,進而導致了電子裝置的電力會於每次喚醒操作的喚醒時間中被浪費。特別是,使用電池作為電力來源的電子裝置,其更難以忍受電力的浪費。It should be noted that while waiting for the completion of the wake-up operation (ie, wake-up time), the controller still consumes power continuously. That is to say, if the electronic device often needs to be awakened from sleep or sleep, the number and frequency of the wake-up operations will increase, resulting in the power of the electronic device being wasted in the wake-up time of each wake-up operation. In particular, electronic devices that use batteries as power sources are more difficult to tolerate waste of power.

基此,要如何減少喚醒時間,以改善電子裝置的便利被浪費的問題且增進喚醒操作的效率,是本領域人員致力發展的目標。Based on this, how to reduce the wake-up time so as to improve the convenience of electronic devices and improve the efficiency of the wake-up operation is the goal of development by those in the art.

本發明提供一種電子裝置及裝置喚醒方法,可減少電子裝置被喚醒的時間,以減少電子裝置被喚醒的所需電力消耗,進而增進電子裝置的使用時間與效率。The present invention provides an electronic device and a device wake-up method, which can reduce the time for the electronic device to be awakened, so as to reduce the power consumption required for the electronic device to be awakened, thereby improving the use time and efficiency of the electronic device.

本發明的一實施例提供一種電子裝置。所述電子裝置包括可複寫式非揮發性記憶體模組與控制器。所述可複寫式非揮發性記憶體模組用以儲存資料。所述控制器包括處理器與計數器。所述處理器耦接至所述可複寫式非揮發性記憶體模組。所述計數器耦接至所述處理器,並且用以接收所述處理器的指示來累計一計數值。所述處理器用以開始執行一喚醒操作,載入一最佳化頻率值,並且以所述最佳化頻率值取代所述計數器的預設頻率值。所述處理器更用以指示所述計數器根據所述最佳化頻率值開始持續累計具有一初始值的等待計數值,其中反應於判定所累計的所述等待計數值等於一目標計數值,所述處理器更用以對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作。所述處理器更用以判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作,其中反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。An embodiment of the present invention provides an electronic device. The electronic device includes a rewritable non-volatile memory module and a controller. The rewritable non-volatile memory module is used for storing data. The controller includes a processor and a counter. The processor is coupled to the rewritable non-volatile memory module. The counter is coupled to the processor and used to receive an instruction from the processor to accumulate a count value. The processor is used to start a wake-up operation, load an optimized frequency value, and replace the preset frequency value of the counter with the optimized frequency value. The processor is further configured to instruct the counter to start continuously accumulating a waiting count value with an initial value according to the optimized frequency value, wherein in response to determining that the accumulated waiting count value is equal to a target count value, The processor is further configured to perform a read test operation on one or more test physical addresses in the rewritable non-volatile memory module. The processor is further configured to determine whether the one or more test entity addresses all pass the corresponding read test operation, wherein the response is to determine whether the one or more test entity addresses all pass the corresponding For the read test operation, the processor is further used to load a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete the wake-up operation.

本發明的又一實施例提供一種電子裝置。所述電子裝置包括可複寫式非揮發性記憶體模組與控制器。所述可複寫式非揮發性記憶體模組用以儲存資料。所述控制器包括處理器與計數器。所述處理器耦接至所述可複寫式非揮發性記憶體模組。所述計數器耦接至所述處理器,並且用以接收所述處理器的指示來累計一計數值。所述處理器用以開始執行一喚醒操作,載入一最佳化頻率值與一最佳化目標計數值,以所述最佳化頻率值取代一計數器的一預設頻率值,並且以所述最佳化目標計數值取代所述計數器的預設的目標計數值,其中所述最佳化目標計數值經由於所述喚醒操作被執行之前所完成的一另一喚醒操作所獲得。所述處理器更用以指示所述計數器根據所述最佳化頻率值開始持續累計具有一初始值的一等待計數值,其中反應於判定所累計的所述等待計數值等於所述最佳化目標計數值,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。Another embodiment of the present invention provides an electronic device. The electronic device includes a rewritable non-volatile memory module and a controller. The rewritable non-volatile memory module is used for storing data. The controller includes a processor and a counter. The processor is coupled to the rewritable non-volatile memory module. The counter is coupled to the processor and used to receive an instruction from the processor to accumulate a count value. The processor is used to start a wake-up operation, load an optimized frequency value and an optimized target count value, replace a preset frequency value of a counter with the optimized frequency value, and use the The optimized target count value replaces the preset target count value of the counter, wherein the optimized target count value is obtained through another wake-up operation completed before the wake-up operation is performed. The processor is further configured to instruct the counter to start continuously accumulating a waiting count value having an initial value according to the optimized frequency value, wherein the waiting count value is determined to be equal to the optimized count value. For the target count value, the processor is further used to load a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete the wake-up operation.

本發明的一實施例提供適用於一電子裝置的一種裝置喚醒方法。所述電子裝置包括一可複寫式非揮發性記憶體模組、一處理器與一計數器。所述方法包括:開始執行一喚醒操作,載入一最佳化頻率值,並且以所述最佳化頻率值取代計數器的預設頻率值;根據所述最佳化頻率值開始持續累計具有一初始值的等待計數值;反應於判定所累計的所述等待計數值等於一目標計數值,對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作;判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作;以及反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。An embodiment of the present invention provides a device wake-up method suitable for an electronic device. The electronic device includes a rewritable non-volatile memory module, a processor and a counter. The method includes: starting to perform a wake-up operation, loading an optimized frequency value, and replacing the preset frequency value of the counter with the optimized frequency value; starting to continuously accumulate a frequency value according to the optimized frequency value The waiting count value of the initial value; in response to determining that the accumulated waiting count value is equal to a target count value, one or more test entity addresses in the rewritable non-volatile memory module are respectively executed Read test operation; determine whether the one or more test entity addresses all pass the corresponding read test operation; and respond to the determination that the one or more test entity addresses all pass the corresponding read In the test operation, a plurality of initialization information corresponding to the rewritable non-volatile memory module is loaded to complete the wake-up operation.

本發明的又一實施例提供適用於一電子裝置的一種裝置喚醒方法。所述電子裝置包括一可複寫式非揮發性記憶體模組、一處理器與一計數器。所述方法包括:開始執行一喚醒操作,載入一最佳化頻率值與一最佳化目標計數值,以所述最佳化頻率值取代一計數器的一預設頻率值,並且以所述最佳化目標計數值取代所述計數器的預設的目標計數值,其中所述最佳化目標計數值經由於所述喚醒操作被執行之前所完成的一另一喚醒操作所獲得;根據所述最佳化頻率值開始持續累計具有一初始值的一等待計數值;反應於判定所累計的所述等待計數值等於所述最佳化目標計數值,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。Another embodiment of the present invention provides a device wake-up method suitable for an electronic device. The electronic device includes a rewritable non-volatile memory module, a processor and a counter. The method includes: starting to perform a wake-up operation, loading an optimized frequency value and an optimized target count value, replacing a preset frequency value of a counter with the optimized frequency value, and using the The optimized target count value replaces the preset target count value of the counter, wherein the optimized target count value is obtained through another wake-up operation completed before the wake-up operation is performed; according to the The optimized frequency value starts to accumulate a waiting count value with an initial value; in response to determining that the accumulated waiting count value is equal to the optimized target count value, the processor is further used to load the corresponding A plurality of initialization information of the duplicate non-volatile memory module is used to complete the wake-up operation.

基於上述,本發明的實施例所提供的電子裝置與裝置喚醒方法,可在執行喚醒操作時,使用所述最佳化頻率值取代計數器的預設頻率值,或更使用所述最佳化目標計數值取代所述計數器的預設的目標計數值,以縮短計數器的計數時間且更可省略讀取測試操作,進而縮短用以完成所述喚醒操作的耗費時間。如此一來,由於完成所述喚醒操作的耗費時間減少,使電子裝置在喚醒階段的電力消耗可大量地被減少,進而增進了電子裝置的電池的續航能力。此外,由於完成所述喚醒操作的耗費時間減少,使電子裝置被喚醒的速度增快,進而增進了電子裝置從待機階段進入至正常使用階段的速度,而增進了電子裝置整體的運作效率。Based on the above, the electronic device and device wake-up method provided by the embodiments of the present invention can use the optimized frequency value to replace the preset frequency value of the counter when performing the wake-up operation, or use the optimized target The count value replaces the preset target count value of the counter, so as to shorten the count time of the counter and can omit the read test operation, thereby shortening the time consumed to complete the wake-up operation. In this way, since the time consumed to complete the wake-up operation is reduced, the power consumption of the electronic device during the wake-up phase can be greatly reduced, thereby improving the battery life of the electronic device. In addition, since the time taken to complete the wake-up operation is reduced, the speed at which the electronic device is awakened is increased, thereby increasing the speed of the electronic device from the standby stage to the normal use stage, and improving the overall operating efficiency of the electronic device.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

在本發明的一實施例所提供的電子裝置與裝置喚醒方法,可有效地減少喚醒時間。除了可以讓喚醒時間符合電子裝置的可複寫式非揮發性記憶體(如,快閃記憶體,Flash)的規範之外,更可據此減少電子裝置的電力消耗。以下利用圖1來說明。The electronic device and device wake-up method provided in an embodiment of the present invention can effectively reduce the wake-up time. In addition to allowing the wake-up time to meet the specifications of the rewritable non-volatile memory (eg, flash memory, Flash) of the electronic device, it can also reduce the power consumption of the electronic device. Hereinafter, it will be explained using FIG. 1.

圖1是根據本發明的一實施例所繪示多個非揮發性記憶體訊號的示意圖。請參照圖1,假設電子裝置的控制器利用電源VDD及多個訊號PORb、DPSTB及CEb來管理電子裝置的多個電源狀態與對應的多個運作狀態。所述電源VDD亦可稱為非揮發性記憶體電源,提供Flash內部及周邊電路電力;所述訊號PORb亦可稱為通電復位(Power on Reset)訊號,此訊號PORb可在啟動時或電源VDD不足時,非揮發性記憶體將進行重置;所述訊號DPSTB亦可稱為深度待機(Deep Standby)訊號;所述訊號CEb亦可稱為非揮發記憶體致能(Chip enable)訊號。FIG. 1 is a schematic diagram illustrating a plurality of non-volatile memory signals according to an embodiment of the invention. 1, it is assumed that the controller of the electronic device uses a power supply VDD and a plurality of signals PORb, DPSTB, and CEb to manage a plurality of power states and corresponding operation states of the electronic device. The power supply VDD can also be referred to as a non-volatile memory power supply, which provides power to the internal and peripheral circuits of the Flash; the signal PORb can also be referred to as a Power on Reset signal. This signal PORb can be used at startup or as a power supply VDD When insufficient, the non-volatile memory will be reset; the signal DPSTB can also be referred to as a deep standby (Deep Standby) signal; the signal CEb can also be referred to as a non-volatile memory chip enable signal.

更具體來說,電子裝置的控制器會對應不同的電源狀態來分別控制所述多個訊號的電壓於高電位或低電位,進而改變電子裝置於不同的電源狀態。舉例來說,在本實施例中,當訊號DPSTB從低電位改變至高電位時,表示電子裝置欲進入至深度待機電源狀態,並且控制器會開始執行休眠操作或睡眠操作;當訊號DPSTB從高電位改變至低電位時,表示電子裝置欲離開深度待機電源狀態,並且控制器會開始執行喚醒操作(如時間點T1),以使電子裝置被喚醒而進入至正常運作電源狀態(如時間點T2)。More specifically, the controller of the electronic device controls the voltages of the multiple signals to be high or low corresponding to different power states, thereby changing the electronic device to different power states. For example, in this embodiment, when the signal DPSTB changes from a low level to a high level, it means that the electronic device is about to enter a deep standby power state, and the controller will start to perform a sleep operation or sleep operation; when the signal DPSTB changes from a high level When changing to a low level, it indicates that the electronic device wants to leave the deep standby power state, and the controller will start to perform the wake-up operation (such as time point T1), so that the electronic device will be awakened and enter the normal operating power state (such as time point T2) .

在不同電源狀態中,電子裝置中的各個硬體部件會對應的被開啟或被關閉(電子裝置中的各個硬體部件的耗電量可個別的被調整),以使電子裝置的總耗電量對應至當前的電源狀態。例如,在本實施例中,若電子裝置目前處於深度待機電源狀態,僅對應深度待機電源狀態的電子裝置的部份的硬體元件(如,處理器、偵測器及輸出裝置中的一或多者)被提供電力(以偵測是否要喚醒整個電子裝置),並且電子裝置的其他部份的硬體元件可被關閉(不被提供電力)。又例如,在正常運作電源狀態中,電子裝置的所有硬體元件皆會開啟(皆被提供電力)。In different power states, each hardware component in the electronic device will be turned on or off correspondingly (the power consumption of each hardware component in the electronic device can be adjusted individually) to make the total power consumption of the electronic device The amount corresponds to the current power state. For example, in this embodiment, if the electronic device is currently in the deep standby power state, only the hardware components (such as one of the processor, detector, and output device) of the electronic device corresponding to the deep standby power state Many of them are provided with power (to detect whether to wake up the entire electronic device), and the hardware components of other parts of the electronic device can be turned off (not provided with power). For another example, in the normal operating power state, all the hardware components of the electronic device are turned on (all are supplied with power).

如圖1所示,當所述喚醒操作完成後(如時間點T2),電子裝置進入至正常運作電源狀態,並且電子裝置的控制器可正常地對電子裝置的可複寫式非揮發性記憶體執行一般的讀取(Read)操作、寫入(Write)操作或抹除(Erase)操作(此些操作亦稱為存取操作)。在本實施例中,執行所述讀取(Read)操作、寫入(Write)操作或抹除(Erase)操作的期間亦可稱為記憶體運作時間TMOP 。此外,在兩個記憶體運作時間TMOP 的間隔時間可稱為待機時間TSTBAs shown in FIG. 1, when the wake-up operation is completed (such as time point T2), the electronic device enters a normal operating power state, and the controller of the electronic device can normally access the rewritable non-volatile memory of the electronic device Perform general read (Read), write (Write) or erase (Erase) operations (these operations are also called access operations). In this embodiment, the period during which the read operation, the write operation or the erase operation is performed can also be referred to as the memory operating time T MOP . In addition, the interval between the operating time T MOP of the two memories can be referred to as the standby time T STB .

此外,所述時間點T1至時間點T2的期間亦可稱為喚醒時間TWUP 。應注意的是,由於在所述喚醒時間TWUP 內,控制器並不能夠對可複寫式非揮發性記憶體執行對應正常運作電源狀態的存取操作。因此,若所述喚醒時間TWUP 可以被減少,則控制器可越快對可複寫式非揮發性記憶體執行對應至正常運作電源狀態的存取操作,進而使電子裝置可以更快地進入至正常運作電源狀態。換言之,若藉由縮短所述喚醒時間TWUP 而讓電子裝置越快進入至正常運作電源狀態,則電子裝置整體的運作效率可被提高(因,僅需要耗費較短的時間就可以完成喚醒操作而開始正常地運作)。此外,由於在執行喚醒操作時,電子裝置的控制器不能夠執行對應至正常運作電源狀態的各種運作,但電子裝置的控制器依然會持續地消耗電力。因此,若藉由最佳化所述喚醒時間TWUP 而讓電子裝置越快進入至正常運作電源狀態,則電子裝置被浪費於喚醒時間TWUP 中的電力也可減少,進而增進了電子裝置整體的續航能力。In addition, the period from the time point T1 to the time point T2 can also be referred to as the wake-up time T WUP . It should be noted that during the wake-up time T WUP , the controller cannot perform the access operation corresponding to the normal operating power state to the rewritable non-volatile memory. Therefore, if the wake-up time T WUP can be reduced, the faster the controller can perform the access operation corresponding to the normal operating power state to the rewritable non-volatile memory, so that the electronic device can enter the Normal operation power state. In other words, if the electronic device enters the normal operating power state faster by shortening the wake-up time T WUP , the overall operating efficiency of the electronic device can be improved (because it only takes a short time to complete the wake-up operation And began to operate normally). In addition, since the controller of the electronic device cannot perform various operations corresponding to the normal operating power state when the wake-up operation is performed, the controller of the electronic device still consumes power continuously. Therefore, if the wake-up time T WUP is optimized to allow the electronic device to enter the normal operating power state sooner, the power wasted in the wake-up time T WUP of the electronic device can also be reduced, thereby improving the overall electronic device Battery life.

圖2是根據本發明的一實施例所繪示的電子裝置的方塊示意圖。請參照圖2,在本實施例中,在本實施例中,電子裝置10包括控制器110、可複寫式非揮發性記憶體模組120、電池130。所述控制器110耦接至可複寫式非揮發性記憶體模組120、電池130。所述電子裝置10例如是電子玩具、穿戴式裝置、行動裝置、筆記型電腦、平板電腦、手機等會可進入至深度待機電源狀態的電子裝置,本發明並不限於上述的電子裝置10的類型。FIG. 2 is a block diagram of an electronic device according to an embodiment of the invention. 2, in this embodiment, in this embodiment, the electronic device 10 includes a controller 110, a rewritable non-volatile memory module 120, and a battery 130. The controller 110 is coupled to the rewritable non-volatile memory module 120 and the battery 130. The electronic device 10 is, for example, an electronic device such as an electronic toy, a wearable device, a mobile device, a notebook computer, a tablet computer, a mobile phone, etc., which can enter a deep standby power state. The present invention is not limited to the type of the electronic device 10 .

在本實施例中,所述控制器110用以管理電子裝置10的各個元件的整體互動與運作。所述控制器110包括處理器111、記憶體介面控制電路(Memory Interface Control Circuit)112及計數器113。所述處理器111耦接至所述記憶體介面控制電路112及所述計數器113。In this embodiment, the controller 110 is used to manage the overall interaction and operation of the various components of the electronic device 10. The controller 110 includes a processor 111, a memory interface control circuit (Memory Interface Control Circuit) 112 and a counter 113. The processor 111 is coupled to the memory interface control circuit 112 and the counter 113.

所述處理器111例如是一核心或多核心的中央處理單元(Central Processing Unit,CPU)、微處理器(micro-processor)或是其他可程式化之處理單元(Programmable processor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置。The processor 111 is, for example, a core or multi-core central processing unit (CPU), a microprocessor (micro-processor) or other programmable processing unit (Programmable processor), a digital signal processor (Digital Signal Processor, DSP), programmable controller, application specific integrated circuit (Application Specific Integrated Circuits, ASIC), programmable logic device (Programmable Logic Device, PLD) or other similar devices.

所述處理器111經由所述記憶體介面控制電路112連接至可複寫式非揮發性記憶體模組120,以對可複寫式非揮發性記憶體模組120進行存取或管理。The processor 111 is connected to the rewritable non-volatile memory module 120 via the memory interface control circuit 112 to access or manage the rewritable non-volatile memory module 120.

所述計數器113用以計數。在本實施例中,所述計數器113例如是高速內部HIRC(Internal High Speed RC)或其他形式的計數器。更具體來說,當所述計數器113開始執行計數操作,所述計數器113可依據一頻率持續地累計具有初始值(如,0)的計數值,直到被累計的所述計數值等於目標計數值。所述頻率可為一預設頻率值(如,25百萬赫茲)或一最佳化頻率值(如,50百萬赫茲)。所述最佳化頻率值大於所述預設頻率值。舉例來說,假設頻率為25百萬赫茲(25MHz)且所述目標計數值為500。所述計數器113可每0.00000004秒(1/25000000)對所述計數值累加1,直到所述計數值等於所述目標計數值。在所述計數值從0(所述初始值)被累計至500(所述目標計數值)共經過了0.00002秒(即,500*0.00000004=0.00002)。The counter 113 is used for counting. In this embodiment, the counter 113 is, for example, a high-speed internal HIRC (Internal High Speed RC) or other forms of counters. More specifically, when the counter 113 starts to perform a counting operation, the counter 113 may continuously accumulate a count value with an initial value (eg, 0) according to a frequency until the accumulated count value is equal to the target count value . The frequency can be a preset frequency value (for example, 25 MHz) or an optimized frequency value (for example, 50 MHz). The optimized frequency value is greater than the preset frequency value. For example, suppose the frequency is 25 megahertz (25 MHz) and the target count value is 500. The counter 113 may accumulate the count value by 1 every 0.00000004 seconds (1/25000000) until the count value is equal to the target count value. A total of 0.00002 seconds has passed since the count value was accumulated from 0 (the initial value) to 500 (the target count value) (ie, 500*0.00000004=0.00002).

所述最佳化頻率值與目標計數值可被記錄至永遠上電儲存單元。所述永遠上電儲存單元用以表示不論在任何一種電源狀態中,皆會接收電源且運作的儲存電路。所述永遠上電儲存單元例如為所述可複寫式非揮發性記憶體模組120中另外被分割出來的特殊儲存區域,提供至所述特殊儲存區域會被保持,並且此特殊儲存區域僅儲存用以管理電子裝置10的資訊/資料。換言之,永遠上電儲存單元可用以記錄被使用在所有電源狀態的資訊,以使儲存在永遠上電儲存單元的資訊/資料可在電子裝置10處於任何一種電源狀態時被存取。例如,當電子裝置10處於深度待機種電源狀態時,儲存在永遠上電儲存單元的資訊/資料可被存取,但是非儲存在永遠上電儲存單元的資訊/資料不可被存取。儲存在永遠上電儲存單元的資訊/資料更包括最佳化目標計數值。The optimized frequency value and the target count value can be recorded in the always-on storage unit. The always-on storage unit is used to indicate a storage circuit that receives power and operates in any power state. The always-on storage unit is, for example, a special storage area separately partitioned in the rewritable non-volatile memory module 120. The special storage area provided to the special storage area will be kept, and the special storage area only stores Used to manage the information/data of the electronic device 10. In other words, the always-on storage unit can be used to record information used in all power states, so that the information/data stored in the always-on storage unit can be accessed when the electronic device 10 is in any power state. For example, when the electronic device 10 is in a deep standby power state, the information/data stored in the always-on storage unit can be accessed, but the information/data not stored in the always-on storage unit cannot be accessed. The information/data stored in the always-on storage unit also includes an optimized target count value.

所述可複寫式非揮發性記憶體模組120用以儲存資料。所述可複寫式非揮發性記憶體模組120例如是快閃記憶體(Flash Memory)。The rewritable non-volatile memory module 120 is used to store data. The rewritable non-volatile memory module 120 is, for example, a flash memory (Flash Memory).

所述電池130用以提供電子裝置10電力。處理器111可管理所述電池130所提供的電力至電子裝置10的其他硬體元件。The battery 130 is used to provide power to the electronic device 10. The processor 111 can manage the power provided by the battery 130 to other hardware components of the electronic device 10.

圖3是根據本發明的一實施例所繪示的裝置喚醒方法的流程圖。請參照圖3,在步驟S31中,處理器111開始執行一喚醒操作,載入一最佳化頻率值,並且以所述最佳化頻率值取代計數器的預設頻率值。具體來說,在電子裝置10進入至深度待機電源狀態後,處理器111可反應於判定特定事件發生後,執行喚醒操作,以使電子裝置10的電源狀態從深度待機電源狀態改變至正常運作電源狀態。所述特定事件例如是,電子裝置的按鈕(或其他種類的輸入單元)被觸發(如,按壓或旋轉)、偵測器(如,震動感測器)感測到電子裝置10被移動等等事件、接收到來自其他電子裝置的訊息。本發明並不限定於所述特定事件。換言之,任何讓處理器111判定需要執行喚醒操作的事件皆可被稱為所述特定事件。Fig. 3 is a flowchart of a device wake-up method according to an embodiment of the invention. Referring to FIG. 3, in step S31, the processor 111 starts to perform a wake-up operation, loads an optimized frequency value, and replaces the preset frequency value of the counter with the optimized frequency value. Specifically, after the electronic device 10 enters the deep standby power state, the processor 111 may respond to determining that a specific event occurs and perform a wake-up operation to change the power state of the electronic device 10 from the deep standby power state to the normal operating power status. The specific event is, for example, a button (or other type of input unit) of the electronic device is triggered (eg, pressed or rotated), a detector (eg, a vibration sensor) detects that the electronic device 10 is moved, etc. Events, received messages from other electronic devices. The present invention is not limited to the specific event. In other words, any event that allows the processor 111 to determine that a wake-up operation needs to be performed can be referred to as the specific event.

當處理器111開始執行所述喚醒操作時,處理器111先從永遠上電儲存單元的載入所述最佳化頻率值,並且以所述最佳化頻率值取代計數器113的預設頻率值。接著,在步驟S32中,計數器113根據所述最佳化頻率值開始持續累計具有初始值的等待計數值。具體來說,在載入所述最佳化頻率值後,計數器113便會開始根據所述最佳化頻率值來執行對應目標計數值的計數操作。在開始所述計數操作後,獨立於電子裝置10的其他硬體元件,所述計數器113會持續地根據所述最佳化頻率值來累加計數值(亦稱,等待計數值),直到停止所述計數操作。When the processor 111 starts to perform the wake-up operation, the processor 111 first loads the optimized frequency value from the always-on storage unit, and replaces the preset frequency value of the counter 113 with the optimized frequency value . Next, in step S32, the counter 113 starts to continuously accumulate the waiting count value having the initial value according to the optimized frequency value. Specifically, after loading the optimized frequency value, the counter 113 will start to perform a counting operation corresponding to the target count value according to the optimized frequency value. After starting the counting operation, independent of other hardware components of the electronic device 10, the counter 113 will continue to accumulate the count value (also known as the waiting count value) according to the optimized frequency value, until it stops. The counting operation.

接著,在步驟S33中,所述計數器113判斷所累計的所述等待計數值是否等於目標計數值。反應於判定所累計的所述等待計數值等於所述目標計數值(步驟S33à是),執行步驟S34;反應於判定所累計的所述等待計數值不等於所述目標計數值(步驟S33à否),繼續執行步驟S33。在一實施例中,反應於判定所累計的所述等待計數值等於所述目標計數值,所述計數器113會完成所述計數操作,並且停止持續累計所述等待計數值。Next, in step S33, the counter 113 determines whether the accumulated waiting count value is equal to the target count value. In response to determining that the accumulated waiting count value is equal to the target count value (step S33àYes), step S34 is executed; in response to determining that the accumulated waiting count value is not equal to the target count value (step S33àNo) , Continue to perform step S33. In one embodiment, in response to determining that the accumulated waiting count value is equal to the target count value, the counter 113 will complete the counting operation and stop continuously accumulating the waiting count value.

在步驟S34中,所述處理器111用以對可複寫式非揮發性記憶體模組120中的一或多個測試實體位址分別執行一讀取測試操作。具體來說,在本實施例中,可複寫式非揮發性記憶體模組120例如是經由一或多個快閃記憶體晶粒(Die)所構成。所述一或多個測試實體位址例如是一或多個快閃記憶體晶粒中的一實體位址(例如,一個實體頁面或一個實體扇區的位址)。所述一或多個測試實體位址皆會預先被寫入(已知的)預設測試資料。本發明並不限定於所述預設測試資料的位元值。In step S34, the processor 111 is configured to perform a read test operation on one or more test physical addresses in the rewritable non-volatile memory module 120, respectively. Specifically, in this embodiment, the rewritable non-volatile memory module 120 is formed by, for example, one or more flash memory dies (Die). The one or more test physical addresses are, for example, a physical address in one or more flash memory dies (for example, the address of a physical page or a physical sector). The one or more test entity addresses are written into (known) default test data in advance. The present invention is not limited to the bit value of the preset test data.

即,在步驟S35中,所述處理器111判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作。具體來說,所述處理器111可對所述一或多個測試實體位址各自執行讀取測試操作,以藉由判斷所讀取的資料是否等於預設測試資料來判斷對應的所述一或多個測試實體位址可被正常地讀取,其中若從一測試實體位址所讀取的資料等於預設測試資料,所述處理器111判定對應的測試實體位址通過對應的所述讀取測試操作。That is, in step S35, the processor 111 determines whether the one or more test entity addresses pass the corresponding read test operation. Specifically, the processor 111 may perform a read test operation on each of the one or more test entity addresses to determine whether the read data is equal to the preset test data to determine the corresponding one. Or multiple test entity addresses can be read normally. If the data read from a test entity address is equal to the preset test data, the processor 111 determines that the corresponding test entity address passes the corresponding Read the test operation.

反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作(步驟S35à是),執行步驟S36;反應於判定所述一或多個測試實體位址不皆通過對應的所述讀取測試操作(步驟S35à否),執行步驟S35。In response to determining that the one or more test entity addresses all pass the corresponding read test operation (step S35àYes), step S36 is executed; in response to determining that the one or more test entity addresses do not all pass the corresponding For the read test operation (step S35à No), step S35 is executed.

也就是說,若所述一或多個測試實體位址皆通過對應的所述讀取測試操作,所述處理器111可判定一或多個快閃記憶體晶粒皆可被正常地讀取,並且判定所述可複寫式非揮發性記憶體模組120已可被正常地存取。反之,若所述一或多個測試實體位址皆通過對應的所述讀取測試操作,所述處理器更用以對所述一或多個測試實體位址中沒有通過對應的所述讀取測試操作的測試實體位址再次執行讀取測試操作,並且再次執行所述判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作的步驟(即,步驟S35)。That is, if the one or more test physical addresses all pass the corresponding read test operation, the processor 111 can determine that one or more flash memory die can be read normally , And it is determined that the rewritable non-volatile memory module 120 can be accessed normally. Conversely, if the one or more test entity addresses all pass the corresponding read test operation, the processor is further configured to detect that the one or more test entity addresses fail the corresponding read test operation. Take the test entity address of the test operation to perform the read test operation again, and perform the step of determining whether the one or more test entity addresses all pass the corresponding read test operation (ie, step S35) .

在步驟S36中,所述處理器111載入對應可複寫式非揮發性記憶體模組120的多個初始化資訊,以完成所述喚醒操作。更具體來說,所述多個初始化資訊可預先被儲存在所述永遠上電儲存單元。所述多個初始化資訊例如是內部低壓差線性穩壓器(LDO)及內部高速RC振盪器(HIRC)初始設定值或校正值等用以初始化可複寫式非揮發性記憶體模組120的資訊。本發明並不限定於所述多個初始化資訊的種類。在載入對應可複寫式非揮發性記憶體模組120的多個初始化資訊後,所述處理器111會判定所執行的所述喚醒操作已經完成。此時,所述處理器111可將所述電子裝置切換至正常運作電源狀態,並且開始執行對應此正常運作電源狀態的記憶體存取操作。In step S36, the processor 111 loads a plurality of initialization information corresponding to the rewritable non-volatile memory module 120 to complete the wake-up operation. More specifically, the plurality of initialization information may be stored in the always-on storage unit in advance. The plurality of initialization information is, for example, information for initializing the rewritable non-volatile memory module 120, such as the initial setting value or calibration value of the internal low dropout linear regulator (LDO) and the internal high-speed RC oscillator (HIRC) . The present invention is not limited to the types of the plurality of initialization information. After loading a plurality of initialization information corresponding to the rewritable non-volatile memory module 120, the processor 111 determines that the executed wake-up operation has been completed. At this time, the processor 111 can switch the electronic device to a normal operating power state, and start to perform a memory access operation corresponding to the normal operating power state.

值得一提的是,在圖3的實施例中,當計數器113所累計的所述等待計數值等於所述目標計數值時,所述處理器111會等到所有的一或多個測試實體位址通過對應的讀取測試操作後,才判定所述喚醒操作已經完成。但,在另一實施例中,所述處理器111可不執行對應一或多個測試實體位址的讀取測試操作。以下利用圖4來說明。It is worth mentioning that in the embodiment of FIG. 3, when the waiting count value accumulated by the counter 113 is equal to the target count value, the processor 111 will wait until all one or more test entity addresses After passing the corresponding read test operation, it is determined that the wake-up operation has been completed. However, in another embodiment, the processor 111 may not perform a read test operation corresponding to one or more test entity addresses. The following description is made using FIG. 4.

圖4是根據本發明的又一實施例所繪示的又一裝置喚醒方法的流程圖。請參照圖4,在步驟S41中,所述處理器111開始執行一喚醒操作,載入一最佳化頻率值與一最佳化目標計數值,以所述最佳化頻率值取代一計數器113的一預設頻率值,並且以所述最佳化目標計數值取代所述計數器113的預設的目標計數值。具體來說,所述步驟S41與所述步驟S31的不同之處在於,在所述S41中,所述處理器111更載入了最佳化目標計數值,並且使用所述最佳化目標計數值以取代原本的所述計數器113的目標計數值。在本實施例中,所述最佳化目標計數值(如,400)小於所述目標計數值。FIG. 4 is a flowchart of another device wake-up method according to another embodiment of the present invention. 4, in step S41, the processor 111 starts to perform a wake-up operation, loads an optimized frequency value and an optimized target count value, and replaces a counter 113 with the optimized frequency value A preset frequency value of, and the optimized target count value replaces the preset target count value of the counter 113. Specifically, the difference between step S41 and step S31 is that, in S41, the processor 111 further loads an optimized target count value, and uses the optimized target counter. The numerical value replaces the original target count value of the counter 113. In this embodiment, the optimized target count value (for example, 400) is less than the target count value.

接著,在步驟S42中,所述計數器113根據所述最佳化頻率值開始持續累計具有一初始值的等待計數值。步驟S42相同於步驟S32,細節不再贅述。Next, in step S42, the counter 113 starts to continuously accumulate a waiting count value having an initial value according to the optimized frequency value. Step S42 is the same as step S32, and the details will not be repeated.

在步驟S43中,所述計數器113判斷所累計的所述等待計數值是否等於所述最佳化目標計數值。即,不同於步驟S33,所述計數器113是判斷所累計的所述等待計數值是否等於所述最佳化目標計數值,而非判斷所累計的所述等待計數值是否等於所述目標計數值。In step S43, the counter 113 determines whether the accumulated waiting count value is equal to the optimized target count value. That is, different from step S33, the counter 113 judges whether the accumulated waiting count value is equal to the optimized target count value, rather than judging whether the accumulated waiting count value is equal to the target count value. .

反應於判定所累計的所述等待計數值等於所述最佳化目標計數值(步驟S43à是),執行步驟S44;反應於判定所累計的所述等待計數值不等於所述最佳化目標計數值(步驟S43à否),繼續執行步驟S43。在一實施例中,反應於判定所累計的所述等待計數值等於所述最佳化目標計數值,所述計數器113會完成所述計數操作,並且停止持續累計所述等待計數值。In response to determining that the accumulated waiting count value is equal to the optimized target count value (Yes in step S43à), step S44 is executed; in response to determining that the accumulated waiting count value is not equal to the optimized target count value Value (step S43→No), proceed to step S43. In one embodiment, in response to determining that the accumulated waiting count value is equal to the optimized target count value, the counter 113 will complete the counting operation and stop continuously accumulating the waiting count value.

在步驟S44中,所述處理器111載入對應可複寫式非揮發性記憶體模組120的多個初始化資訊,以完成所述喚醒操作。步驟S44相同於步驟S36,細節不贅述於此。也就是說,在圖4的實施例中,當計數器113停止計數操作後,所述處理器111會不對可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行所述讀取測試操作,但直接載入對應所述可複寫式非揮發性記憶體模組120的多個初始化資訊,以完成所述喚醒操作。In step S44, the processor 111 loads a plurality of initialization information corresponding to the rewritable non-volatile memory module 120 to complete the wake-up operation. Step S44 is the same as step S36, and the details will not be repeated here. That is to say, in the embodiment of FIG. 4, when the counter 113 stops counting, the processor 111 will not perform all the tests on one or more test physical addresses in the rewritable non-volatile memory module. The read test operation, but directly loads a plurality of initialization information corresponding to the rewritable non-volatile memory module 120 to complete the wake-up operation.

如此一來,在圖4的實施例中,所述喚醒操作的耗費時間(即,喚醒時間)可因為不需要進行所述一或多個讀取測試操作進一步地被縮短。此外,在圖4的實施例中,電子裝置10因不需要執行所述一或多個讀取測試操作,電子裝置10可進一步地避免耗費電力在所述一或多個讀取測試操作上。換句話說,理論上,圖4的實施例所提供的裝置喚醒方法可比圖3的實施例所提供的裝置喚醒方法更快且更省電。In this way, in the embodiment of FIG. 4, the time consuming of the wake-up operation (ie, the wake-up time) can be further shortened because there is no need to perform the one or more read test operations. In addition, in the embodiment of FIG. 4, since the electronic device 10 does not need to perform the one or more read test operations, the electronic device 10 can further avoid power consumption on the one or more read test operations. In other words, theoretically, the device wake-up method provided by the embodiment of FIG. 4 can be faster and more power-saving than the device wake-up method provided by the embodiment of FIG. 3.

但,應注意是,所述最佳化目標計數值是經由於所述喚醒操作被執行之前所完成的一另一喚醒操作所獲得。以下利用圖5來說明。However, it should be noted that the optimized target count value is obtained through another wake-up operation completed before the wake-up operation is executed. The following description will be made using FIG. 5.

圖5是根據本發明的又一實施例所繪示又一裝置喚醒方法的流程圖。請參照圖5,對應所述另一喚醒操作的裝置喚醒方法包括步驟S51、S52、S53、S54、S55、S56。其中,與圖3的實施例的裝置喚醒方法相比,步驟S51相同於步驟S31;步驟S52相同於步驟S32;步驟S53相同於步驟S34;步驟S54相同於步驟S35;步驟S56相同於步驟S36。基此,上述步驟S51、S52、S53、S54、S56的細節不再贅述。以下僅針對圖5的實施例的裝置喚醒方法與圖3的實施例的裝置喚醒方法的不同之處進行說明。FIG. 5 is a flowchart of another device wake-up method according to another embodiment of the present invention. 5, the device wake-up method corresponding to the another wake-up operation includes steps S51, S52, S53, S54, S55, and S56. Among them, compared with the device wake-up method of the embodiment of FIG. 3, step S51 is the same as step S31; step S52 is the same as step S32; step S53 is the same as step S34; step S54 is the same as step S35; and step S56 is the same as step S36. Based on this, the details of the above steps S51, S52, S53, S54, and S56 will not be repeated. The following describes only the differences between the device wake-up method of the embodiment of FIG. 5 and the device wake-up method of the embodiment of FIG. 3.

具體來說,在執行步驟S52後,所述處理器111不會去判斷所累計的所述等待計數值是否等於目標計數值,但所述處理器111會直接對可複寫式非揮發性記憶體模組中的所述一或多個測試實體位址分別執行所述讀取測試操作,並且判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作(S54)。反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作(步驟S54à是),接續至步驟S55;反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作(步驟S54à否),接續至步驟S54。Specifically, after step S52 is executed, the processor 111 will not determine whether the accumulated waiting count value is equal to the target count value, but the processor 111 will directly respond to the rewritable non-volatile memory. The one or more test entity addresses in the module execute the read test operation respectively, and determine whether the one or more test entity addresses all pass the corresponding read test operation (S54). In response to determining that the one or more test entity addresses all pass the corresponding read test operation (step S54àYes), proceed to step S55; in response to determining that the one or more test entity addresses all pass the corresponding The read test operation (step S54→No), proceed to step S54.

在步驟S55中,計數器113停止累計所述等待計數值,並且所述處理器111儲存所累計的所述等待計數值為所述最佳化目標計數值。所述最佳化目標計數值被儲存在所述永遠上電儲存單元中。也就是說,為了精確地獲得最佳化目標計數值,所述處理器111藉由執行所述另一喚醒操作,利用所述一或多個測試實體位址皆通過對應的所述讀取測試操作的時機點來將所累計的等待計數值作為最佳化目標計數值。換句話說,所述處理器111可知道,在開始執行喚醒操作且經過將等待計數值從0累加至所述最佳化目標計數值的時間後,所述可複寫式非揮發性記憶體模組120可進入至正常地被存取的狀態(因所述一或多個測試實體位址在經過所述時間後,已可皆通過讀取測試操作)。In step S55, the counter 113 stops accumulating the waiting count value, and the processor 111 stores the accumulated waiting count value as the optimized target count value. The optimized target count value is stored in the always-on storage unit. In other words, in order to accurately obtain the optimized target count value, the processor 111 performs the other wake-up operation, and uses the one or more test entity addresses to pass the corresponding read test. The timing of the operation is to use the accumulated waiting count value as the optimized target count value. In other words, the processor 111 can know that after the wake-up operation is started and the waiting count value is accumulated from 0 to the optimized target count value, the rewritable non-volatile memory model The group 120 can enter the normally accessed state (because the one or more test entity addresses can all pass the read test operation after the time has passed).

在一實施例中,舉例來說,在電子裝置10第一次執行喚醒操作時,所述處理器111可執行圖5的實施例所提供的裝置喚醒方法,以獲得所述最佳化目標計數值。In an embodiment, for example, when the electronic device 10 performs a wake-up operation for the first time, the processor 111 may execute the device wake-up method provided in the embodiment of FIG. 5 to obtain the optimized target plan. Numerical value.

綜上所述,本發明的實施例所提供的電子裝置與裝置喚醒方法,可在執行喚醒操作時,使用所述最佳化頻率值取代計數器的預設頻率值,或更使用所述最佳化目標計數值取代所述計數器的預設的目標計數值,以縮短計數器的計數時間且更可省略讀取測試操作,進而縮短用以完成所述喚醒操作的耗費時間。如此一來,由於完成所述喚醒操作的耗費時間減少,使電子裝置在喚醒階段的電力消耗可大量地被減少,進而增進了電子裝置的電池的續航能力。此外,由於完成所述喚醒操作的耗費時間減少,使電子裝置被喚醒的速度增快,進而增進了電子裝置從待機階段進入至正常使用階段的速度,而增進了電子裝置整體的運作效率。In summary, the electronic device and device wake-up method provided by the embodiments of the present invention can use the optimized frequency value instead of the preset frequency value of the counter when performing the wake-up operation, or use the optimized frequency value. The target count value is changed to replace the preset target count value of the counter, so as to shorten the counting time of the counter and even omit the read test operation, thereby shortening the time consumed to complete the wake-up operation. In this way, since the time consumed to complete the wake-up operation is reduced, the power consumption of the electronic device during the wake-up phase can be greatly reduced, thereby improving the battery life of the electronic device. In addition, since the time taken to complete the wake-up operation is reduced, the speed at which the electronic device is awakened is increased, thereby increasing the speed of the electronic device from the standby stage to the normal use stage, and improving the overall operating efficiency of the electronic device.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be determined by the scope of the attached patent application.

TRHR、TWUP、TMOP、TSTB:時間 T1、T2、T3:時間點 10:電子裝置 110:控制器 120:可複寫式非揮發性記憶體模組 130:電池 111:處理器 112:記憶體介面控制電路 113:計數器 S31、S32、S33、S34、S35、S36:裝置喚醒方法的流程步驟 S41、S42、S43、S44:裝置喚醒方法的流程步驟 S51、S52、S53、S54、S55、S56:裝置喚醒方法的流程步驟T RHR , T WUP , T MOP , T STB : time T1, T2, T3: time point 10: electronic device 110: controller 120: rewritable non-volatile memory module 130: battery 111: processor 112: Memory interface control circuit 113: counters S31, S32, S33, S34, S35, S36: device wake-up method process steps S41, S42, S43, S44: device wake-up method process steps S51, S52, S53, S54, S55, S56: Process steps of device wake-up method

圖1是根據本發明的一實施例所繪示多個訊號的示意圖。 圖2是根據本發明的一實施例所繪示的電子裝置的方塊示意圖。 圖3是根據本發明的一實施例所繪示的裝置喚醒方法的流程圖。 圖4是根據本發明的又一實施例所繪示的又一裝置喚醒方法的流程圖。 圖5是根據本發明的又一實施例所繪示又一裝置喚醒方法的流程圖。FIG. 1 is a schematic diagram of multiple signals drawn according to an embodiment of the invention. FIG. 2 is a block diagram of an electronic device according to an embodiment of the invention. Fig. 3 is a flowchart of a device wake-up method according to an embodiment of the invention. FIG. 4 is a flowchart of another device wake-up method according to another embodiment of the present invention. FIG. 5 is a flowchart of another device wake-up method according to another embodiment of the present invention.

S31、S32、S33、S34、S35、S36:裝置喚醒方法的流程步驟 S31, S32, S33, S34, S35, S36: process steps of the device wake-up method

Claims (10)

一種電子裝置,包括: 一可複寫式非揮發性記憶體模組,用以儲存資料;以及 一控制器,所述控制器包括: 一處理器,耦接至所述可複寫式非揮發性記憶體模組; 一計數器, 耦接至所述處理器,用以接收所述處理器的指示來累計一計數值, 其中所述處理器用以開始執行一喚醒操作,載入一最佳化頻率值,並且以所述最佳化頻率值取代所述計數器的預設頻率值, 其中所述處理器更用以指示所述計數器根據所述最佳化頻率值開始持續累計具有一初始值的等待計數值, 其中反應於判定所累計的所述等待計數值等於一目標計數值,所述處理器更用以對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作, 其中所述處理器更用以判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作, 其中反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。An electronic device including: A rewritable non-volatile memory module for storing data; and A controller, the controller includes: A processor coupled to the rewritable non-volatile memory module; A counter, coupled to the processor, for receiving an instruction from the processor to accumulate a count value, The processor is used to start a wake-up operation, load an optimized frequency value, and replace the preset frequency value of the counter with the optimized frequency value, The processor is further configured to instruct the counter to start continuously accumulating a waiting count value having an initial value according to the optimized frequency value, Wherein in response to determining that the accumulated waiting count value is equal to a target count value, the processor is further configured to execute respectively on one or more test entity addresses in the rewritable non-volatile memory module One read test operation, The processor is further used to determine whether the one or more test entity addresses pass the corresponding read test operation, Wherein in response to determining that the one or more test entity addresses have passed the corresponding read test operation, the processor is further used to load a plurality of initialization information corresponding to the rewritable non-volatile memory module To complete the wake-up operation. 如申請專利範圍第1項所述的電子裝置,其中反應於判定所述一或多個測試實體位址沒有皆通過對應的所述讀取測試操作, 所述處理器更用以對所述一或多個測試實體位址中沒有通過對應的所述讀取測試操作的測試實體位址再次執行對應的所述讀取測試操作,並且再次執行所述判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作的步驟。The electronic device according to the first item of the scope of patent application, wherein it is reflected in the determination that the one or more test entity addresses have not passed the corresponding read test operation, The processor is further configured to perform the corresponding read test operation again on the test entity addresses that have not passed the corresponding read test operation among the one or more test entity addresses, and perform the corresponding read test operation again. It is determined whether the one or more test entity addresses pass the corresponding steps of the read test operation. 如申請專利範圍第1項所述的電子裝置,其中反應於判定所累計的所述等待計數值等於所述目標計數值,所述處理器更用以指示所述計數器停止持續累計所述等待計數值。The electronic device according to claim 1, wherein in response to determining that the accumulated waiting count value is equal to the target count value, the processor is further configured to instruct the counter to stop continuously accumulating the waiting count Numerical value. 一種電子裝置,包括: 一可複寫式非揮發性記憶體模組,用以儲存資料;以及 一控制器,所述控制器包括: 一處理器,耦接至所述可複寫式非揮發性記憶體模組; 一計數器, 耦接至所述處理器,用以接收所述處理器的指示來累計一計數值, 其中所述處理器用以開始執行一喚醒操作,載入一最佳化頻率值與一最佳化目標計數值,以所述最佳化頻率值取代所述計數器的一預設頻率值,並且以所述最佳化目標計數值取代所述計數器的預設的一目標計數值,其中所述最佳化目標計數值經由於所述喚醒操作被執行之前所完成的一另一喚醒操作所獲得, 其中所述處理器更用以指示所述計數器根據所述最佳化頻率值開始持續累計具有一初始值的一等待計數值, 其中反應於判定所累計的所述等待計數值等於所述最佳化目標計數值,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。An electronic device including: A rewritable non-volatile memory module for storing data; and A controller, the controller includes: A processor coupled to the rewritable non-volatile memory module; A counter, coupled to the processor, for receiving an instruction from the processor to accumulate a count value, The processor is used to start a wake-up operation, load an optimized frequency value and an optimized target count value, replace a preset frequency value of the counter with the optimized frequency value, and use The optimized target count value replaces a preset target count value of the counter, wherein the optimized target count value is obtained through another wake-up operation completed before the wake-up operation is performed, The processor is further configured to instruct the counter to start continuously accumulating a waiting count value having an initial value according to the optimized frequency value, Wherein in response to determining that the accumulated waiting count value is equal to the optimized target count value, the processor is further used to load a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete The wake-up operation. 如申請專利範圍第4項所述的電子裝置,在所述另一喚醒操作中, 所述處理器開始執行所述另一喚醒操作,載入所述最佳化頻率值,並且以所述最佳化頻率值取代所述計數器的所述預設頻率值, 其中所述處理器指示所述計數器根據所述最佳化頻率值開始持續累計具有所述初始值的所述等待計數值, 其中所述處理器對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作, 其中所述處理器判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作, 其中反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,所述處理器停止累計所述等待計數值,並且儲存所累計的所述等待計數值為所述最佳化目標計數值, 其中所述處理器載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述另一喚醒操作。In the electronic device described in item 4 of the scope of patent application, in the another wake-up operation, The processor starts to perform the another wake-up operation, loads the optimized frequency value, and replaces the preset frequency value of the counter with the optimized frequency value, Wherein the processor instructs the counter to start continuously accumulating the waiting count value having the initial value according to the optimized frequency value, The processor performs a read test operation on one or more test physical addresses in the rewritable non-volatile memory module, respectively, Wherein the processor determines whether the one or more test entity addresses pass the corresponding read test operation, Wherein in response to determining that the one or more test entity addresses have passed the corresponding read test operation, the processor stops accumulating the waiting count value, and stores the accumulated waiting count value as the Optimize the target count value, The processor loads a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete the another wake-up operation. 一種裝置喚醒方法,適用於一電子裝置,其中所述電子裝置包括一可複寫式非揮發性記憶體模組、一處理器與一計數器,所述方法包括: 開始執行一喚醒操作,載入一最佳化頻率值; 根據所述最佳化頻率值開始持續累計具有一初始值的等待計數值; 反應於判定所累計的所述等待計數值等於一目標計數值,對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作; 判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作;以及 反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。A device wake-up method is suitable for an electronic device, wherein the electronic device includes a rewritable non-volatile memory module, a processor, and a counter. The method includes: Start to perform a wake-up operation and load an optimized frequency value; Start to continuously accumulate a waiting count value with an initial value according to the optimized frequency value; In response to determining that the accumulated waiting count value is equal to a target count value, perform a read test operation on one or more test entity addresses in the rewritable non-volatile memory module; Determine whether the one or more test entity addresses pass the corresponding read test operation; and In response to determining that the one or more test entity addresses have passed the corresponding read test operation, a plurality of initialization information corresponding to the rewritable non-volatile memory module is loaded to complete the wake-up operation. 如申請專利範圍第6項所述的裝置喚醒方法,其中反應於判定所述一或多個測試實體位址沒有皆通過對應的所述讀取測試操作, 所述處理器更用以對所述一或多個測試實體位址中沒有通過對應的所述讀取測試操作的測試實體位址再次執行對應的所述讀取測試操作,並且再次執行所述判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作的步驟。The device wake-up method as described in item 6 of the scope of patent application, wherein it is reflected in the determination that the one or more test entity addresses have not passed the corresponding read test operation, The processor is further configured to perform the corresponding read test operation again on the test entity addresses that have not passed the corresponding read test operation among the one or more test entity addresses, and perform the corresponding read test operation again. It is determined whether the one or more test entity addresses pass the corresponding steps of the read test operation. 如申請專利範圍第6項所述的裝置喚醒方法,其中反應於判定所累計的所述等待計數值等於所述目標計數值,停止持續累計所述等待計數值。The device wake-up method according to item 6 of the scope of patent application, wherein in response to determining that the accumulated waiting count value is equal to the target count value, the continuous accumulation of the waiting count value is stopped. 一種裝置喚醒方法,適用於一電子裝置,其中所述電子裝置包括一可複寫式非揮發性記憶體模組、一處理器與一計數器,所述方法包括: 開始執行一喚醒操作,載入一最佳化頻率值與一最佳化目標計數值,其中所述最佳化目標計數值經由於所述喚醒操作被執行之前所完成的一另一喚醒操作所獲得; 根據所述最佳化頻率值開始持續累計具有一初始值的一等待計數值; 反應於判定所累計的所述等待計數值等於所述最佳化目標計數值,所述處理器更用以載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述喚醒操作。A device wake-up method is suitable for an electronic device, wherein the electronic device includes a rewritable non-volatile memory module, a processor, and a counter. The method includes: Start performing a wake-up operation, load an optimized frequency value and an optimized target count value, wherein the optimized target count value is determined by another wake-up operation completed before the wake-up operation is performed obtain; Start to continuously accumulate a waiting count value with an initial value according to the optimized frequency value; In response to determining that the accumulated waiting count value is equal to the optimized target count value, the processor is further used to load a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete all The wake-up operation. 如申請專利範圍第9項所述的裝置喚醒方法,其中所述另一喚醒操作包括: 開始執行所述另一喚醒操作,載入所述最佳化頻率值; 根據所述最佳化頻率值開始持續累計具有所述初始值的所述等待計數值; 對所述可複寫式非揮發性記憶體模組中的一或多個測試實體位址分別執行一讀取測試操作; 判斷所述一或多個測試實體位址是否皆通過對應的所述讀取測試操作; 反應於判定所述一或多個測試實體位址皆通過對應的所述讀取測試操作,停止累計所述等待計數值,並且儲存所累計的所述等待計數值為所述最佳化目標計數值;以及 載入對應可複寫式非揮發性記憶體模組的多個初始化資訊,以完成所述另一喚醒操作。According to the device wake-up method described in the scope of patent application, the other wake-up operation includes: Start to execute the another wake-up operation, and load the optimized frequency value; Start to continuously accumulate the waiting count value with the initial value according to the optimized frequency value; Perform a read test operation on one or more test physical addresses in the rewritable non-volatile memory module; Determining whether the one or more test entity addresses pass the corresponding read test operation; In response to determining that the one or more test entity addresses have passed the corresponding read test operation, stop accumulating the waiting count value, and storing the accumulated waiting count value as the optimized target counter Value; and Load a plurality of initialization information corresponding to the rewritable non-volatile memory module to complete the another wake-up operation.
TW108104137A 2019-02-01 2019-02-01 Electronic device and device wake-up method TWI690844B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW108104137A TWI690844B (en) 2019-02-01 2019-02-01 Electronic device and device wake-up method
CN201911079883.9A CN111522587B (en) 2019-02-01 2019-11-07 Electronic device and device wake-up method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108104137A TWI690844B (en) 2019-02-01 2019-02-01 Electronic device and device wake-up method

Publications (2)

Publication Number Publication Date
TWI690844B TWI690844B (en) 2020-04-11
TW202030593A true TW202030593A (en) 2020-08-16

Family

ID=71134250

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108104137A TWI690844B (en) 2019-02-01 2019-02-01 Electronic device and device wake-up method

Country Status (2)

Country Link
CN (1) CN111522587B (en)
TW (1) TWI690844B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566075B (en) * 2020-11-25 2023-07-28 深圳市沃特沃德信息有限公司 Data packet sending method and device of cellular internet of things equipment and computer equipment
TWI766514B (en) * 2020-12-30 2022-06-01 新唐科技股份有限公司 Electronic device and powering method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200506725A (en) * 2003-08-08 2005-02-16 Wistron Corp Wake-up method for standby mode and its device
US8799687B2 (en) * 2005-12-30 2014-08-05 Intel Corporation Method, apparatus, and system for energy efficiency and energy conservation including optimizing C-state selection under variable wakeup rates
CN101710253B (en) * 2009-11-25 2012-06-13 安凯(广州)微电子技术有限公司 Deep-sleep method of embedded system
US8824222B2 (en) * 2010-08-13 2014-09-02 Rambus Inc. Fast-wake memory
FR2992517A1 (en) * 2012-06-21 2013-12-27 France Telecom REMOTE WAKE-UP METHOD OF WIRELESS ROUTER EQUIPMENT
TWI508099B (en) * 2013-01-28 2015-11-11 Phison Electronics Corp Clock switching meyhod, memory controller and memory storage apparatus
KR102060430B1 (en) * 2013-08-08 2020-02-11 삼성전자주식회사 SYSTEM ON CHIP(SoC) CAPABLE OF REDUCING WAKE-UP TIME, APPLICATION PROCESSOR, AND COMPUTER SYSTEM HAVING SAME
TWI614706B (en) * 2013-12-10 2018-02-11 深圳市華星光電技術有限公司 Operation method of portable electronic apparatus
TW201616277A (en) * 2014-10-27 2016-05-01 宏碁股份有限公司 Portable electronic device and method for waking-up portable electronic device thereof
JP6376006B2 (en) * 2015-03-12 2018-08-22 株式会社デンソー Electronic control unit
CN105302548B (en) * 2015-09-24 2019-02-12 深圳Tcl数字技术有限公司 The standby of Android device, awakening method and device
US10725856B2 (en) * 2017-01-09 2020-07-28 Micron Technology, Inc. Error correction to reduce a failure in time rate
TWI625736B (en) * 2017-05-19 2018-06-01 華邦電子股份有限公司 Flash memory storage apparatus

Also Published As

Publication number Publication date
CN111522587B (en) 2023-09-01
CN111522587A (en) 2020-08-11
TWI690844B (en) 2020-04-11

Similar Documents

Publication Publication Date Title
US20220115048A1 (en) Customizable backup and restore from nonvolatile logic array
CN109388339B (en) Memory controller and method of operating the same
US9189053B2 (en) Performance based power management of a memory and a data storage system using the memory
US10223017B2 (en) Memory apparatus and energy-saving control method thereof
US7941683B2 (en) Data processing device with low-power cache access mode
KR20170035150A (en) Memory controller and memory system controlling training operation and operating method thereof
US8339889B2 (en) Semiconductor memory device
TWI581092B (en) Memory apparatus and energy-saving controlling method thereof
TWI690844B (en) Electronic device and device wake-up method
US9659616B2 (en) Configuration fuse data management in a partial power-on state
US7895457B2 (en) Memory card with power saving
US11496118B2 (en) Semiconductor device
US10998073B2 (en) Systems and methods to wake up memory array
US9454437B2 (en) Non-volatile logic based processing device
US10631248B2 (en) Mid-cycle adjustment of internal clock signal timing
US10338664B2 (en) Control module for data retention and method of operating control module
TWI235298B (en) Method to read the battery status by the operating system of portable computer
CN112148365B (en) Control module, method and microcontroller chip
US20140281703A1 (en) Local Repair Signature Handling for Repairable Memories
US20200073563A1 (en) Memory system
JP2007042221A (en) Method of controlling writing to nonvolatile storage circuit, and semiconductor integrated circuit