TWI691895B - Data-programming methods, programming systems, data update methods, and storage devices - Google Patents

Data-programming methods, programming systems, data update methods, and storage devices Download PDF

Info

Publication number
TWI691895B
TWI691895B TW107147578A TW107147578A TWI691895B TW I691895 B TWI691895 B TW I691895B TW 107147578 A TW107147578 A TW 107147578A TW 107147578 A TW107147578 A TW 107147578A TW I691895 B TWI691895 B TW I691895B
Authority
TW
Taiwan
Prior art keywords
data
storage device
bit
written
signal edge
Prior art date
Application number
TW107147578A
Other languages
Chinese (zh)
Other versions
TW202026863A (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 TW107147578A priority Critical patent/TWI691895B/en
Priority to CN201911353709.9A priority patent/CN111381838B/en
Application granted granted Critical
Publication of TWI691895B publication Critical patent/TWI691895B/en
Publication of TW202026863A publication Critical patent/TW202026863A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Abstract

A data-programming method, which is adapted in a test system programming the program data into a storage device through a data pin of a data access interface, includes: inputting an operation command such that the storage device enters a test mode according to the operation command; inputting a program address range such that the storage device erases the data in the program address range, in which the storage device generates a signal edge at the data pin when the data of the program address range is erased; when the signal edge is received, transmitting a first bit of the program data by using a bit frame; when the signal edge is received, transmitting a second bit of the program data by using the bit frame; when the program data is transmitted, transmitting a transmit check code; and when the signal edge is received, determining that the program data is correctly programmed into the storage device.

Description

資料寫入方法、燒錄系統、資料更新方法以及儲存裝置Data writing method, burning system, data updating method and storage device

本發明係有關於一種資料寫入方法以及資料更新方法,特別係有關於一種利用單一資料針腳進行韌體更新之寫入以及更新方法。The invention relates to a data writing method and a data updating method, in particular to a writing and updating method using a single data pin to perform firmware update.

在生產線上往往會遇到產品已經裝機卻需要拆卸機殼重新燒錄資料,例如更新電子裝置的韌體等等。由於大量的拆卸與組裝機殼需要耗費可觀的人力與資源,為了降低生產成本,因此有必要針對如何有效率的寫入與更新資料進行最佳化。On the production line, it is often encountered that the product has been installed but needs to be disassembled to re-burn the data, such as updating the firmware of the electronic device. Since a large amount of disassembly and assembly requires a considerable amount of manpower and resources, in order to reduce production costs, it is necessary to optimize how to efficiently write and update data.

本發明之複數實施例提供了資料寫入方法以及資料更新方法,使得燒錄系統得以透過資料針腳而不需拆卸機殼,即可將資料寫入至電子裝置之儲存單元,已減少大量拆卸與組裝機殼所需耗費的人力與資源。根據本發明之一實施例,由於電子裝置利用信號緣通知燒錄系統操作是否正確,燒錄系統無法存取電子裝置內部的資料,以提升電子裝置之資料安全性。根據本發明之另一實施例,燒錄系統更可使用加密資料寫入電子裝置,而電子裝置再將加密資料解密,更可大幅增加電子裝置之資料安全性。The multiple embodiments of the present invention provide a data writing method and a data updating method, so that the programming system can write data to the storage unit of the electronic device without disassembling the case through the data pins, which has reduced a lot of disassembly and The manpower and resources required to assemble the cabinet. According to an embodiment of the present invention, since the electronic device uses the signal edge to inform the programming system whether the operation is correct, the programming system cannot access the data inside the electronic device to improve the data security of the electronic device. According to another embodiment of the present invention, the programming system can use encrypted data to write to the electronic device, and the electronic device can decrypt the encrypted data, which can greatly increase the data security of the electronic device.

有鑑於此,本發明提出一種資料寫入方法,適用於一燒錄系統透過一資料存取介面之一資料針腳將一寫入資料寫入一儲存裝置,上述資料寫入方法包括:將一操作指令輸入至上述資料針腳,使得上述儲存裝置根據上述操作指令進入一測試模式;輸入一寫入位址範圍,使得上述儲存裝置抹除上述寫入位址範圍之資料,其中當上述儲存裝置完成抹除上述寫入位址範圍之資料時,上述儲存裝置於上述資料針腳產生一信號緣;當自上述資料針腳接收到一信號緣時,利用一位元框架發送上述寫入資料之一第一位元;當自上述資料針腳接收到上述信號緣時,利用上述位元框架發送上述寫入資料之一第二位元;當上述寫入資料發送完成時,輸出一傳輸確認碼;以及當自上述資料針腳接收到上述信號緣時,判斷上述寫入資料已正確寫入上述儲存裝置。In view of this, the present invention proposes a data writing method suitable for a programming system to write a written data to a storage device through a data pin of a data access interface. The above data writing method includes: writing an operation The command is input to the data pin, so that the storage device enters a test mode according to the operation command; input a write address range, so that the storage device erases the data of the write address range, wherein when the storage device completes erasing In addition to the data written to the address range, the storage device generates a signal edge at the data pin; when a signal edge is received from the data pin, the first bit of the written data is sent using a one-bit frame When receiving the signal edge from the data pin, use the bit frame to send a second bit of the written data; when the written data is sent, output a transmission confirmation code; and when from the above When the data pin receives the signal edge, it determines that the written data has been correctly written into the storage device.

根據本發明之一實施例,上述資料存取介面更包括一時脈針腳,其中當上述儲存裝置進入上述測試模式時,上述時脈針腳係耦接至一第一邏輯位準。According to an embodiment of the invention, the data access interface further includes a clock pin, wherein when the storage device enters the test mode, the clock pin is coupled to a first logic level.

根據本發明之一實施例,資料寫入方法更包括:輸出一結束指標。上述儲存裝置根據上述結束指標,抹除上述寫入位址範圍之資料。According to an embodiment of the present invention, the data writing method further includes: outputting an end indicator. The storage device erases the data in the write address range according to the end index.

根據本發明之一實施例,上述位元框架包括一回應時間、一閂鎖時間以及一資料處理時間,其中上述資料寫入方法更包括:於上述回應時間,判斷是否自上述資料針腳接收到上述信號緣;當接收到上述信號緣時,於上述閂鎖時間發送上述第一位元;於上述資料處理時間判斷是否自上述資料針腳接收到上述信號緣,其中上述寫入資料於上述資料處理時間中寫入上述儲存裝置;當接收到上述信號緣時,判斷上述第一位元寫入完成;於下一閂鎖時間中,發送上述第二位元;以及當一既定時間內並未接收到上述信號緣時,發出一警示。According to an embodiment of the invention, the bit frame includes a response time, a latch time, and a data processing time. The data writing method further includes: at the response time, determining whether the data pin is received from the data pin Signal edge; when the signal edge is received, the first bit is sent at the latch time; at the data processing time, it is determined whether the signal edge is received from the data pin, wherein the written data is at the data processing time Write to the storage device in the middle; when the signal edge is received, judge the writing of the first bit is completed; send the second bit in the next latch time; and when not received within a predetermined time When the above signal edge occurs, a warning is issued.

根據本發明之一實施例,資料寫入方法更包括:當發送上述寫入資料之一第一既定數量之位元後,發出一區段確認碼;判斷是否自上述資料針腳接收到上述信號緣;當自上述資料針腳接收到上述信號緣時,判斷上述第一既定數量之位元寫入正確,並利用上述位元框架繼續發送上述寫入資料之下一位元;以及當一既定時間內並未接收到上述信號緣超過時,發出上述警示。According to an embodiment of the present invention, the data writing method further includes: after sending a first predetermined number of bits of the written data, sending out a sector confirmation code; determining whether the signal edge is received from the data pin ; When the signal edge is received from the data pin, determine that the first predetermined number of bits are written correctly, and continue to send the next bit of the written data using the bit frame; and when a predetermined time When the above signal edge is not received, the above warning is issued.

根據本發明之一實施例,上述將上述操作指令輸入至上述資料針腳之步驟之前,上述資料寫入方法更包括:於上述資料針腳上產生一第二既定數量之上述信號緣,用以致能上述儲存裝置。According to an embodiment of the invention, before the step of inputting the operation instruction to the data pin, the data writing method further includes: generating a second predetermined number of the signal edges on the data pin to enable the above Storage device.

根據本發明之一實施例,上述寫入資料係經過一加密處理,上述儲存裝置接收到上述寫入資料時,會將接收到之上述寫入資料解密為一解密資料,再將上述解密資料寫入上述寫入位址範圍。According to an embodiment of the present invention, the written data is subjected to an encryption process, and when the storage device receives the written data, it decrypts the received written data into a decrypted data, and then writes the decrypted data Enter the above address range.

本發明更提出一種燒錄系統,用以透過一資料存取介面之一資料針腳將一寫入資料寫入一儲存裝置,上述燒錄系統包括:一內部儲存裝置以及一燒錄裝置。上述內部儲存裝置用以儲存一指令程式。上述燒錄裝置執行上述指令程式而執行一資料寫入方法,其中上述資料寫入方法包括:將一操作指令輸入至上述資料針腳,使得上述儲存裝置根據上述操作指令進入一測試模式;輸入一寫入位址範圍,使得上述儲存裝置抹除上述寫入位址範圍之資料,其中當上述儲存裝置完成抹除上述寫入位址範圍之資料時,上述儲存裝置於上述資料針腳產生一信號緣;當自上述資料針腳接收到上述信號緣時,利用一位元框架發送上述寫入資料之一第一位元;當自上述資料針腳接收到上述信號緣時,利用上述位元框架發送上述寫入資料之一第二位元;當上述寫入資料發送完成時,輸出一傳輸確認碼;以及當自上述資料針腳接收到上述信號緣時,判斷上述寫入資料已正確寫入上述儲存裝置。The present invention further proposes a programming system for writing a written data into a storage device through a data pin of a data access interface. The foregoing programming system includes: an internal storage device and a programming device. The internal storage device is used to store a command program. The programming device executes the instruction program to execute a data writing method, wherein the data writing method includes: inputting an operation command to the data pin, so that the storage device enters a test mode according to the operation command; inputting a write Entering the address range, so that the storage device erases the data in the write address range, wherein when the storage device finishes erasing the data in the write address range, the storage device generates a signal edge at the data pin; When the signal edge is received from the data pin, a first bit of the written data is sent using a bit frame; when the signal edge is received from the data pin, the write is sent using the bit frame One second bit of data; when the writing of the written data is completed, a transmission confirmation code is output; and when the signal edge is received from the data pin, it is judged that the written data has been correctly written into the storage device.

本發明更提出一種資料更新方法,適用於一儲存裝置,其中一燒錄系統透過一資料存取介面之一資料針腳將一寫入資料寫入上述儲存裝置,上述資料更新方法包括:自上述資料針腳接收一操作指令;自上述資料針腳接收一寫入位址範圍;根據上述操作指令進入一測試模式;抹除上述寫入位址範圍之資料;當上述寫入位址範圍之資料抹除後,發出一信號緣;利用一位元框架接收上述寫入資料之一第一位元;根據上述第一位元,更新上述寫入位址範圍之一第一位址;當上述第一位址更新完成時,發出上述信號緣;自上述資料針腳接收一傳輸確認碼;根據上述寫入位址範圍之資料,產生一接收碼;判斷上述接收碼與上述傳輸確認碼是否相符;當上述接收碼與上述傳輸確認碼相符時,發出上述信號緣;以及當上述接收碼與上述傳輸確認碼不相符時,不發出上述信號緣。The present invention further proposes a data update method suitable for a storage device, in which a programming system writes a written data to the storage device through a data pin of a data access interface, the data update method includes: Pin receives an operation command; receives a write address range from the data pin; enters a test mode according to the operation command; erases the data in the write address range; after erasing the data in the write address range , Send out a signal edge; use a bit frame to receive the first bit of the written data; update the first address of the written address range according to the first bit; when the first address When the update is completed, the signal edge is sent out; a transmission confirmation code is received from the data pin; a reception code is generated based on the data written in the address range; whether the reception code matches the transmission confirmation code is determined; when the reception code When the transmission confirmation code matches, the signal edge is sent out; and when the reception code does not match the transmission confirmation code, the signal edge is not sent out.

根據本發明之一實施例,上述資料存取介面更包括一時脈針腳,其中當上述儲存裝置進入上述測試模式時,上述時脈針腳係耦接至一第一邏輯位準。According to an embodiment of the invention, the data access interface further includes a clock pin, wherein when the storage device enters the test mode, the clock pin is coupled to a first logic level.

根據本發明之一實施例,資料更新方法更包括:自上述資料針腳接收一結束指標;以及根據上述結束指標,抹除上述寫入位址範圍之資料。According to an embodiment of the present invention, the data update method further includes: receiving an end indicator from the data pin; and erasing the data in the write address range according to the end indicator.

根據本發明之一實施例,上述位元框架包括一回應時間、一閂鎖時間以及一資料處理時間,其中上述資料更新方法更包括:於上述回應時間,透過上述資料針腳發送上述信號緣;於上述閂鎖時間中接收上述第一位元;於上述資料處理時間中,利用上述第一位元更新上述第一位址,並判斷上述第一位元是否更新成功;當上述第一位址更新完成時,於下一回應時間發出上述信號緣;以及當上述第一位址更新失敗時,不發出上述信號緣。According to an embodiment of the invention, the bit frame includes a response time, a latch time, and a data processing time, wherein the data update method further includes: sending the signal edge through the data pin at the response time; Receiving the first bit during the latch time; during the data processing time, using the first bit to update the first address, and determining whether the first bit is successfully updated; when the first address is updated Upon completion, the signal edge is sent at the next response time; and when the update of the first address fails, the signal edge is not sent.

根據本發明之一實施例,資料更新方法更包括:當接收到上述寫入資料之一第一既定數量之位元後,接收一區段確認碼;對接收之上述第一既定數量之位元進行一邏輯運算而產生一接收確認碼;判斷上述接收確認碼是否與上述區段確認碼相符;當上述接收確認碼與上述區段確認碼相符時,發出上述信號緣;以及當上述接收確認碼與上述區段確認碼不相符時,停止動作。According to an embodiment of the invention, the data updating method further includes: after receiving a first predetermined number of bits of the written data, receiving a sector confirmation code; and receiving the first predetermined number of bits received Perform a logical operation to generate a reception confirmation code; determine whether the reception confirmation code matches the sector confirmation code; when the reception confirmation code matches the sector confirmation code, issue the signal edge; and when the reception confirmation code When it does not match the above sector confirmation code, the operation is stopped.

根據本發明之一實施例,上述自上述資料針腳接收上述操作指令之步驟之前,上述資料更新方法更包括:根據上述資料針腳之一第二既定數量之上述信號緣而啟動。According to an embodiment of the invention, before the step of receiving the operation command from the data pin, the data updating method further includes: starting according to a second predetermined number of the signal edges of one of the data pins.

根據本發明之一實施例,上述寫入資料係經過一加密處理,上述資料更新方法更包括:將接收之上述寫入資料解密而產生一解密資料;以及將上述解密資料寫入上述寫入位址範圍。According to an embodiment of the present invention, the write data is subjected to an encryption process, and the data update method further includes: decrypting the received write data to generate a decrypted data; and writing the decrypted data into the write bit Address range.

一種儲存裝置,其中一燒錄系統將一寫入資料寫入上述儲存裝置,上述儲存裝置包括:一儲存單元、一資料存取介面以及一控制器。上述資料存取介面包括一資料針腳,其中上述資料針腳接收上述燒錄系統之一操作指令、一寫入位置範圍以及上述寫入資料,且發出一信號緣,其中上述資料存取介面更利用一位元框架,依序接收上述寫入資料之每一位元。上述控制器根據上述操作指令,進入一測試模式且抹除上述儲存單元之上述寫入位址範圍之資料,其中當上述寫入位址範圍之資料抹除後,上述控制器透過上述資料存取界面發出上述信號緣至上述燒錄系統,其中當上述資料存取介面接收上述寫入資料之一第一位元時,上述控制器根據上述第一位元,更新上述儲存單元之上述寫入位址範圍之一第一位址,當上述第一位址更新完成時,上述控制器發出上述信號緣,其中上述控制器自上述資料針腳接收一傳輸確認碼,其中上述控制器根據上述寫入位址範圍之資料產生一接收碼,並判斷上述接收碼是否與上述傳輸確認碼相符,其中當上述接收碼與上述傳輸確認碼相符時,上述控制器發出上述信號緣,其中當上述接收碼與上述傳輸確認碼不相符時,上述控制器不發出上述信號緣。A storage device, wherein a programming system writes a written data to the storage device, the storage device includes: a storage unit, a data access interface and a controller. The data access interface includes a data pin, wherein the data pin receives an operation command of the programming system, a write position range, and the write data, and sends out a signal edge, wherein the data access interface further uses a The bit frame receives each bit of the written data in sequence. The controller enters a test mode according to the operation instruction and erases the data of the write address range of the storage unit, wherein when the data of the write address range is erased, the controller accesses through the data The interface sends the signal edge to the programming system, wherein when the data access interface receives a first bit of the written data, the controller updates the written bit of the storage unit according to the first bit The first address in the address range. When the update of the first address is completed, the controller sends out the signal edge, wherein the controller receives a transmission confirmation code from the data pin, and the controller according to the write bit The data in the address range generates a receiving code, and judges whether the receiving code matches the transmission confirmation code. When the receiving code matches the transmission confirmation code, the controller sends out the signal edge. When the receiving code matches the transmission code When the transmission confirmation code does not match, the above controller does not send out the above signal edge.

以下說明為本發明的實施例。其目的是要舉例說明本發明一般性的原則,不應視為本發明之限制,本發明之範圍當以申請專利範圍所界定者為準。The following description is an embodiment of the present invention. Its purpose is to exemplify the general principles of the present invention, and should not be regarded as a limitation of the present invention.

值得注意的是,以下所揭露的內容可提供多個用以實踐本發明之不同特點的實施例或範例。以下所述之特殊的元件範例與安排僅用以簡單扼要地闡述本發明之精神,並非用以限定本發明之範圍。此外,以下說明書可能在多個範例中重複使用相同的元件符號或文字。然而,重複使用的目的僅為了提供簡化並清楚的說明,並非用以限定多個以下所討論之實施例以及/或配置之間的關係。此外,以下說明書所述之一個特徵連接至、耦接至以及/或形成於另一特徵之上等的描述,實際可包含多個不同的實施例,包括該等特徵直接接觸,或者包含其它額外的特徵形成於該等特徵之間等等,使得該等特徵並非直接接觸。It is worth noting that the content disclosed below can provide multiple embodiments or examples for practicing different features of the present invention. The specific element examples and arrangements described below are only used to briefly explain the spirit of the present invention and are not intended to limit the scope of the present invention. In addition, the following specification may reuse the same symbol or text in multiple examples. However, the purpose of repeated use is merely to provide a simplified and clear description, and is not intended to limit the relationship between multiple embodiments and/or configurations discussed below. In addition, the description that one feature described in the following specification is connected to, coupled to, and/or formed on another feature, etc., may actually include a plurality of different embodiments, including direct contact of such features, or other additional features The features are formed between the features, etc., so that the features are not in direct contact.

第1圖係顯示根據本發明之一實施例所述之電子裝置之示意圖。如第1圖所示,電子裝置100包括資料存取介面110、儲存單元120以及控制器130,並且燒錄系統10透過資料存取介面110將寫入資料DT寫入儲存單元120。FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in FIG. 1, the electronic device 100 includes a data access interface 110, a storage unit 120, and a controller 130, and the programming system 10 writes the write data DT into the storage unit 120 through the data access interface 110.

控制器130根據燒錄系統10之動作請求RT而將寫入資料DT寫入儲存單元120,並且當燒錄系統10之動作請求RT執行成功時,控制器130會透過資料存取介面110傳送信號緣SE,用以通知燒錄系統10動作請求RT已完成。根據本發明之一實施例,資料存取介面110包括時脈針腳CLK以及資料針腳DAT。The controller 130 writes the write data DT into the storage unit 120 according to the action request RT of the programming system 10, and when the action request RT of the programming system 10 is successfully executed, the controller 130 transmits a signal through the data access interface 110 The margin SE is used to notify the programming system 10 that the action request RT has been completed. According to an embodiment of the invention, the data access interface 110 includes a clock pin CLK and a data pin DAT.

根據本發明之一實施例,信號緣SE係為上升緣。根據本發明之另一實施例,信號緣SE亦可為下降緣。以下信號緣SE將以上升緣為例,以利進行說明解釋,本發明並非以任何形式限定於此。According to an embodiment of the invention, the signal edge SE is a rising edge. According to another embodiment of the present invention, the signal edge SE may also be a falling edge. The following signal edge SE will take the rising edge as an example to facilitate explanation and explanation, and the present invention is not limited thereto in any form.

第2圖係顯示根據本發明之一實施例所述之資料寫入方法之流程圖,其中資料寫入方法200適用於第1圖之燒錄系統10。以下針對資料寫入方法200之敘述,將搭配第1圖,以利詳細說明解釋。FIG. 2 is a flowchart showing a data writing method according to an embodiment of the present invention, wherein the data writing method 200 is applicable to the programming system 10 of FIG. 1. The following description of the data writing method 200 will be combined with FIG. 1 to facilitate detailed explanation.

當燒錄系統10欲將寫入資料DT寫入至電子裝置100之儲存單元120時,燒錄系統10首先透過資料存取介面110之資料針腳DAT輸入第一既定數量之信號緣(步驟S201),用以啟動電子裝置100。When the programming system 10 intends to write the written data DT to the storage unit 120 of the electronic device 100, the programming system 10 first inputs a first predetermined number of signal edges through the data pins DAT of the data access interface 110 (step S201) To activate the electronic device 100.

第3圖係顯示根據本發明之一實施例所述之存取介面之時脈針腳以及資料針腳之波形圖。如第3圖所示,當燒錄系統10欲將寫入資料DT寫入至電子裝置100之儲存單元120時,時脈針腳CLK係為第一邏輯位準。根據本發明之一實施例,第一邏輯位準係為高邏輯位準。根據本發明之另一實施例,第一邏輯位準係為低邏輯位準。換句話說,當燒錄系統10欲將寫入資料DT寫入至電子裝置100之儲存單元120時,時脈針腳CLK可為高邏輯位準或低邏輯位準,係依據電子裝置100之設計而定。FIG. 3 is a waveform diagram showing clock pins and data pins of the access interface according to an embodiment of the invention. As shown in FIG. 3, when the programming system 10 intends to write the write data DT to the storage unit 120 of the electronic device 100, the clock pin CLK is the first logic level. According to an embodiment of the invention, the first logic level is a high logic level. According to another embodiment of the present invention, the first logic level is a low logic level. In other words, when the programming system 10 wants to write the write data DT to the storage unit 120 of the electronic device 100, the clock pin CLK may be a high logic level or a low logic level, according to the design of the electronic device 100 It depends.

如第3圖所示,燒錄系統10首先透過資料針腳DAT輸入致能信號EN,用以啟動電子裝置100,其中致能信號EN係為既定數量之信號緣。根據本發明之一實施例,既定數量之信號緣係為既定數量之上升緣,控制器130計數上升緣之數量而啟動。根據本發明之另一實施例,既定數量之信號緣係為既定數量之下降緣,控制器130計數下降緣之數量而啟動。根據本發明之其他實施例,設計者可決定既定數量為任意正整數。As shown in FIG. 3, the programming system 10 first inputs the enable signal EN through the data pin DAT to start the electronic device 100, where the enable signal EN is a predetermined number of signal edges. According to an embodiment of the invention, the predetermined number of signal edges is a predetermined number of rising edges, and the controller 130 counts the number of rising edges to start. According to another embodiment of the present invention, the predetermined number of signal edges is a predetermined number of falling edges, and the controller 130 counts the number of falling edges to start. According to other embodiments of the present invention, the designer may decide that the predetermined number is any positive integer.

如第2圖以及第3圖所示,燒錄系統10接著透過資料針腳DAT,輸入操作指令EC(步驟S202)、寫入位址範圍(步驟S203)以及結束指標EOF(步驟S204)。根據本發明之一實施例,如第3圖所示,燒錄系統10輸入之寫入位址範圍係由起始位址STR以及寫入位址大小SZ所定義。As shown in FIGS. 2 and 3, the programming system 10 then inputs the operation command EC (step S202), the write address range (step S203), and the end index EOF (step S204) through the data pin DAT. According to an embodiment of the present invention, as shown in FIG. 3, the range of the write address input by the programming system 10 is defined by the start address STR and the write address size SZ.

根據本發明之一實施例,第1圖之燒錄系統10更包括內部儲存裝置(第1圖並未顯示)以及燒錄裝置(第1圖並未顯示)。燒錄系統10之內部儲存裝置用以儲存指令程式,燒錄系統10之燒錄裝置用以存取內部儲存裝置所儲存之指令程式,而執行第2圖所示之資料寫入方法200。According to an embodiment of the present invention, the burning system 10 of FIG. 1 further includes an internal storage device (not shown in FIG. 1) and a burning device (not shown in FIG. 1). The internal storage device of the programming system 10 is used to store the command program, and the programming device of the programming system 10 is used to access the command program stored in the internal storage device, and the data writing method 200 shown in FIG. 2 is executed.

第4圖係顯示根據本發明之一實施例所述之資料更新方法之流程圖,其中資料更新方法400適用於第1圖之電子裝置100之控制器130。以下針對資料寫入方法400之敘述,將搭配第1圖之方塊圖以及第2圖之資料寫入方法200,以利詳細說明解釋。FIG. 4 is a flowchart showing a data updating method according to an embodiment of the invention, wherein the data updating method 400 is applicable to the controller 130 of the electronic device 100 of FIG. 1. The following description of the data writing method 400 will be combined with the block diagram of FIG. 1 and the data writing method 200 of FIG. 2 to facilitate detailed explanation.

當控制器130自資料針腳DAT接收到第3圖之致能信號EN時,控制器130啟動(步驟S401)。當控制器130接收到操作指令EC時,控制器130進入操作模式(步驟S402)。當控制器130接收到結束指標EOF時,控制器130根據燒錄系統10輸入之寫入位址範圍(即,第3圖所示之起始位址STR以及寫入位址大小SZ),對寫入位址範圍進行抹除操作(步驟S403),並判斷抹除操作是否完成(步驟S404)。當抹除操作完成時,控制器130透過資料針腳DAT發出信號緣SE(步驟S405)。When the controller 130 receives the enable signal EN of FIG. 3 from the data pin DAT, the controller 130 starts (step S401). When the controller 130 receives the operation instruction EC, the controller 130 enters the operation mode (step S402). When the controller 130 receives the end index EOF, the controller 130 according to the write address range input by the programming system 10 (that is, the start address STR and the write address size SZ shown in FIG. 3), to Write an address range to perform an erase operation (step S403), and determine whether the erase operation is completed (step S404). When the erase operation is completed, the controller 130 sends a signal edge SE through the data pin DAT (step S405).

根據本發明之另一實施例,控制器130可於接收到結束指標EOF時,才開始進入操作模式(步驟S402)以及對寫入位址範圍進行抹除操作(步驟S403),並且於抹除操作完成時發出信號緣SE(步驟S405)。According to another embodiment of the present invention, the controller 130 can only enter the operation mode (step S402) and erase the write address range (step S403) when receiving the end indicator EOF, and then erase When the operation is completed, a signal edge SE is issued (step S405).

回到第2圖,燒錄系統10輸入結束指標EOF後,燒錄系統10等待控制器130進行操作,並判斷是否接收到信號緣SE(步驟S205)。當燒錄系統10接收到信號緣SE時,代表抹除操作已完成,因此開始發送寫入資料DT(步驟S206),並且於發藂寫入資料後,再次判斷是否接收到信號緣SE(步驟S207)。Returning to FIG. 2, after the burning system 10 inputs the end index EOF, the burning system 10 waits for the controller 130 to operate, and determines whether the signal edge SE is received (step S205). When the programming system 10 receives the signal edge SE, it means that the erasing operation is completed, so it starts to send the write data DT (step S206), and after writing the data, it is judged again whether the signal edge SE is received (step S207).

當燒錄系統10接收到信號緣SE時,代表成功將寫入資料DT寫入第1圖之儲存單元120。根據本發明之一實施例,燒錄系統10係利用位元框架(bit frame)的方式,發送寫入資料DT。When the programming system 10 receives the signal edge SE, it indicates that the writing data DT is successfully written into the storage unit 120 of FIG. 1. According to an embodiment of the present invention, the programming system 10 uses a bit frame to send the written data DT.

回到步驟S205以及步驟S207,根據本發明之一實施例,當燒錄系統10於既定時間內並未接收到信號緣SE時,燒錄系統10判斷資料寫入方法200發生錯誤,並且發出警示(步驟S211),用以通知測試者資料寫入方法200執行失敗。Returning to step S205 and step S207, according to an embodiment of the present invention, when the programming system 10 does not receive the signal edge SE within a predetermined time, the programming system 10 determines that an error has occurred in the data writing method 200 and issues a warning (Step S211), to notify the tester that the data writing method 200 has failed to execute.

回到第4圖之步驟S405,控制器130透過資料針腳DAT接收寫入資料DT(步驟S406),並且將接收之寫入資料DT更新寫入位址範圍(步驟S407)。接著,控制器130判斷寫入位址範圍之更新是否完成(步驟S408)。當判斷更新完成時,控制器130發出信號緣SE(步驟S409);當步驟S408判斷更新失敗時,控制器130結束資料更新方法400。Returning to step S405 of FIG. 4, the controller 130 receives the write data DT through the data pin DAT (step S406), and updates the write address range of the received write data DT (step S407). Next, the controller 130 determines whether the update of the write address range is completed (step S408). When it is determined that the update is completed, the controller 130 issues a signal edge SE (step S409); when it is determined that the update fails in step S408, the controller 130 ends the data update method 400.

根據本發明之一實施例,當資料寫入方法200執行到步驟S211時,燒錄系統10可對電子裝置100斷電後重新上電,再次重新執行資料寫入方法200之步驟S201,而控制器130亦對應執行資料更新方法400。According to an embodiment of the present invention, when the data writing method 200 executes to step S211, the programming system 10 can power off the electronic device 100 and then power on again, and re-execute step S201 of the data writing method 200 to control The device 130 also executes the data updating method 400 correspondingly.

第5圖係顯示根據本發明之一實施例所述之燒錄系統發送寫入資料之示意圖。根據本發明之一實施例,當燒錄系統10執行步驟S204而發送結束指標EOF時,控制器130執行步驟S403而對寫入位址範圍進行抹除操作。如第5圖所示,控制器130係於等待時間TW中,對儲存單元120之寫入位址範圍進行抹除操作。FIG. 5 is a schematic diagram showing the writing data sent by the burning system according to an embodiment of the invention. According to an embodiment of the present invention, when the programming system 10 executes step S204 to send the end index EOF, the controller 130 executes step S403 to erase the write address range. As shown in FIG. 5, the controller 130 performs an erase operation on the write address range of the storage unit 120 during the waiting time TW.

當抹除操作完成時,控制器130發出信號緣SE(步驟S405),以通知燒錄系統10該抹除操作已完成,其中該信號緣SE係對應至第5圖之第一上升緣E1。當燒錄系統10接收到第一上升緣E1時,隨即利用第一位元框架BF1傳輸寫入資料DT之第一位元BT1。When the erasing operation is completed, the controller 130 sends a signal edge SE (step S405) to notify the programming system 10 that the erasing operation has been completed, wherein the signal edge SE corresponds to the first rising edge E1 in FIG. 5. When the programming system 10 receives the first rising edge E1, the first bit frame BF1 is then used to transmit the first bit BT1 of the written data DT.

當第一位元BT1傳輸完成後,燒錄系統10接著利用第二位元框架BF2傳輸寫入資料DT之第二位元BT2,並依此類推,直到寫入資料DT全部傳輸完成為止。根據本發明之一實施例,燒錄系統10係依序發送寫入資料DT之每一位元。After the transfer of the first bit BT1 is completed, the programming system 10 then uses the second bit frame BF2 to transfer the second bit BT2 of the write data DT, and so on, until all the write data DT is completely transferred. According to an embodiment of the present invention, the programming system 10 sequentially sends each bit of the written data DT.

如第5圖所示,第一位元框架BF1以及第二位元框架BF2皆可劃分為回應時間TAN、閂鎖時間TL以及資料處理時間TP,其中燒錄系統10係分別於第一位元框架BF1以及第二位元框架BF2之閂鎖時間TL,發出第一位元BT1以及第二位元BT2。As shown in FIG. 5, the first bit frame BF1 and the second bit frame BF2 can be divided into response time TAN, latch time TL, and data processing time TP, in which the programming system 10 is located in the first bit The latch time TL of the frame BF1 and the second bit frame BF2 sends out the first bit BT1 and the second bit BT2.

第6圖係顯示根據本發明之一實施例所述之位元框架之示意圖。如第6圖所示,當燒錄系統10於步驟S205判斷接收到信號緣SE(即,對應至第6圖之上升緣ER)時,燒錄系統10隨即開啟位元框架BF以傳輸寫入資料DT。FIG. 6 is a schematic diagram showing a bit frame according to an embodiment of the invention. As shown in FIG. 6, when the programming system 10 determines in step S205 that the signal edge SE (ie, corresponding to the rising edge ER of FIG. 6) is received, the programming system 10 immediately opens the bit frame BF to transfer the write Information DT.

如第6圖所示,位元框架BF包括回應時間TAN、閂鎖時間TL以及資料處理時間TP。燒錄系統10係於回應時間TAN內執行步驟S205,用以判斷是否接收到信號緣SE(即,對應至第6圖之上升緣ER)。一旦燒錄系統10判斷接收到信號緣SE(即,對應至第6圖之上升緣ER),隨即進入閂鎖時間TL,並發出寫入資料DT之位元BT,其中發送之位元BT係為高邏輯位準H或低邏輯位準L。As shown in FIG. 6, the bit frame BF includes a response time TAN, a latch time TL, and a data processing time TP. The programming system 10 executes step S205 within the response time TAN to determine whether the signal edge SE is received (ie, corresponds to the rising edge ER in FIG. 6). Once the programming system 10 judges to receive the signal edge SE (ie, corresponding to the rising edge ER in Figure 6), it immediately enters the latch time TL and sends out the bit BT of the written data DT, where the sent bit BT is It is high logic level H or low logic level L.

根據本發明之一實施例,當控制器130於閂鎖時間TL中接收到燒錄系統10所發送之位元BT後,控制器130於資料處理時間TP中將接收之位元BT更新寫入位址範圍之對應的位址。當控制器130更新完成時則立即發送信號緣SE(即,對應至第6圖之上升緣ER),使得燒錄系統10根據信號緣SE(即,對應至第6圖之上升緣ER),再次利用位元框架BF傳送寫入資料DT之下一位元。According to an embodiment of the present invention, after the controller 130 receives the bit BT sent by the programming system 10 during the latch time TL, the controller 130 updates the written bit BT during the data processing time TP The corresponding address of the address range. When the controller 130 is updated, it immediately sends a signal edge SE (ie, corresponds to the rising edge ER in FIG. 6), so that the programming system 10 according to the signal edge SE (ie, corresponds to the rising edge ER in FIG. 6), The bit frame BF is used again to transfer the next bit of the written data DT.

回到第5圖,根據本發明之一實施例,控制器130係於第一位元框架BF1之資料處理時間TP,將第一位元BT1更新寫入位址範圍之第一位址。當第一位元BT1更新完成時控制器130發出第二上升緣E2,燒錄系統10在第二位元框架BT2之回應時間TAN中,根據第二上升緣E2判斷第一位元BT1已寫入完成,便於第二位元框架BT2之閂鎖時間TL再次發送寫入資料DT之第二位元BT2。Returning to FIG. 5, according to an embodiment of the present invention, the controller 130 updates the first bit BT1 to the first address in the address range at the data processing time TP of the first bit frame BF1. When the update of the first bit BT1 is completed, the controller 130 issues a second rising edge E2. In the response time TAN of the second bit frame BT2, the programming system 10 determines that the first bit BT1 has been written according to the second rising edge E2 After the input is completed, it is convenient for the latch time TL of the second bit frame BT2 to send the second bit BT2 of the written data DT again.

當控制器130於第二位元框架BF2之資料處理時間TP中完成將第二位元BT2更新寫入位址範圍之第二位址時,控制器130會再次發出第三上升緣E3,以此類推。燒錄系統10藉此依序傳送寫入資料DT之每一位元。When the controller 130 finishes updating the second bit BT2 to the second address in the address range during the data processing time TP of the second bit frame BF2, the controller 130 will issue a third rising edge E3 again to And so on. The programming system 10 thereby sequentially transmits each bit of the written data DT.

根據本發明之一實施例,當控制器130於資料處理時間TP更新寫入位址範圍不成功時,控制器130不會發出信號緣SE(即,對應至第5圖之第一上升緣E1、第二上升緣E2或第三上升緣E3),燒錄系統10於既定時間內並未接收到信號緣SE時,則執行步驟S211而發出警示。根據本發明之一實施例,既定時間係等於第5圖以及第6圖之回應時間TAN。According to an embodiment of the present invention, when the controller 130 fails to update the write address range at the data processing time TP, the controller 130 does not issue a signal edge SE (ie, corresponds to the first rising edge E1 in FIG. 5 2. The second rising edge E2 or the third rising edge E3). When the programming system 10 does not receive the signal edge SE within a predetermined time, step S211 is executed to issue a warning. According to an embodiment of the present invention, the predetermined time is equal to the response time TAN in FIGS. 5 and 6.

回到步驟S207,當燒錄系統10判斷接收到信號緣SE時,燒錄系統10更判斷寫入資料DT是否全部發送完畢(步驟S208)。若是判斷寫入資料DT並未發送完畢,燒錄系統10回到步驟S206,繼續利用第6圖所示之位元框架BF,發送寫入資料DT之其他位元。Returning to step S207, when the programming system 10 determines that the signal edge SE is received, the programming system 10 further determines whether all written data DT has been sent (step S208). If it is determined that the writing data DT has not been sent, the programming system 10 returns to step S206 and continues to use the bit frame BF shown in FIG. 6 to send other bits of the writing data DT.

回到步驟S208,若是判斷寫入資料DT係以發送完畢,燒錄系統10發送傳輸確認碼(步驟S209),並且燒錄系統10判斷是否接收到信號緣SE(步驟S210)。根據本發明之一實施例,傳輸確認碼係用以確認燒錄系統10所發送之寫入資料DT與控制器130更新寫入位址範圍之資料是否相符。Returning to step S208, if it is judged that the writing of the data DT is completed, the programming system 10 sends a transmission confirmation code (step S209), and the programming system 10 determines whether the signal edge SE is received (step S210). According to an embodiment of the present invention, the transmission confirmation code is used to confirm whether the written data DT sent by the programming system 10 and the data updated by the controller 130 in the written address range match.

根據本發明之一實施例,傳輸確認碼係為寫入資料DT之每一位元之和。根據本發明之其他實施例,燒錄系統10對寫入資料DT之每一位元進行邏輯運算,而產生傳輸確認碼,在此並非以任何形式限定於此。According to an embodiment of the invention, the transmission confirmation code is the sum of each bit of the written data DT. According to other embodiments of the present invention, the programming system 10 performs a logical operation on each bit of the written data DT to generate a transmission confirmation code, which is not limited in any form here.

參考第4圖,當燒錄系統10發出傳輸確認碼時,控制器130透過資料針腳DAT接收傳輸確認碼(步驟S410),並計算寫入位址範圍之資料的接收碼(步驟S411)。根據本發明之一實施例,控制器130係透過與產生傳輸確認碼之相同的邏輯運算,計算寫入位址範圍之資料的接收碼。Referring to FIG. 4, when the programming system 10 issues a transmission confirmation code, the controller 130 receives the transmission confirmation code through the data pin DAT (step S410), and calculates the reception code of the data written into the address range (step S411). According to an embodiment of the present invention, the controller 130 calculates the reception code of the data written into the address range through the same logic operation as generating the transmission confirmation code.

當產生接收碼後,控制器130判斷接收之傳輸確認碼與接收碼是否相符(步驟S412)。若是傳輸確認碼與接收碼相符,控制器130則發出信號緣SE(步驟S413),通知燒錄系統10寫入位址範圍係以寫入資料DT更新成功。回到步驟S210,當燒錄系統10判斷接收到信號緣SE時,代表寫入資料DT係已成功更新寫入位址範圍,因此終止資料寫入方法200。After the reception code is generated, the controller 130 determines whether the received transmission confirmation code and the reception code match (step S412). If the transmission confirmation code matches the received code, the controller 130 sends out a signal edge SE (step S413) to notify the programming system 10 that the write address range is written so that the write data DT update is successful. Returning to step S210, when the programming system 10 determines that the signal edge SE is received, it means that the writing data DT has successfully updated the writing address range, so the data writing method 200 is terminated.

回到步驟S412,若是判斷傳輸確認碼與接收碼不相符,控制器130則不發出信號緣SE,並直接終止資料更新方法400。根據本發明之一實施例,回到步驟S210,當燒錄系統10於既定時間內並未接收到信號緣SE時,燒錄系統210執行步驟S211而發出警示,通知測試者資料寫入方法200執行失敗。Returning to step S412, if it is determined that the transmission confirmation code does not match the received code, the controller 130 does not send out the signal edge SE, and directly terminates the data update method 400. According to an embodiment of the present invention, returning to step S210, when the programming system 10 does not receive the signal edge SE within a predetermined time, the programming system 210 executes step S211 to issue a warning to notify the tester of the data writing method 200 Execution failed.

第7圖係顯示根據本發明之另一實施例所述之資料寫入方法之示意圖。如第7圖所示,燒錄系統10依序發送寫入資料DT之第一位元BT1、第二位元BT2、…以及第N位元BTN,並於發送完第N位元BTN後發出區段確認碼CK。根據本發明之一實施例,區段確認碼CK係為第一位元BT1、第二位元BT2、…以及第N位元BTN經邏輯運算之結果,用以確認控制器130更新之資料是否與第一位元BT1、第二位元BT2、…以及第N位元BTN相符。FIG. 7 is a schematic diagram showing a data writing method according to another embodiment of the invention. As shown in FIG. 7, the burning system 10 sequentially sends the first bit BT1, the second bit BT2, ... and the Nth bit BTN of the written data DT, and sends it out after sending the Nth bit BTN Section confirmation code CK. According to an embodiment of the present invention, the sector confirmation code CK is the result of the logical operation of the first bit BT1, the second bit BT2, ..., and the Nth bit BTN to confirm whether the data updated by the controller 130 is Consistent with the first bit BT1, the second bit BT2, ... and the Nth bit BTN.

根據本發明之一實施例,區段確認碼CK係為第一位元BT1、第二位元BT2、…以及第N位元BTN經互斥或邏輯運算之結果,在此僅用以說明解釋,並非以任何形式限定於此。根據本發明之一實施例,燒錄系統10可選定發送任意既定數量之位元後即發送區段確認碼CK,在此並非以任何形式限定於此。According to an embodiment of the present invention, the section confirmation code CK is the result of the mutual exclusion or logical operation of the first bit BT1, the second bit BT2,... And the Nth bit BTN, which are used for explanation only , Is not limited to this in any form. According to an embodiment of the present invention, the programming system 10 may select to send any predetermined number of bits and then send the section confirmation code CK, which is not limited in any form here.

根據本發明之一實施例,當控制器130接收到區段確認碼CK時,控制器130同樣將接收之資料進行邏輯運算而產生接收確認碼,並判斷接收確認碼是否與區段確認碼CK相符。當接收確認碼與區段確認碼CK相符時,控制器130再次發出信號緣SE,通知燒錄系統10繼續發送寫入資料DT。當控制器130接著發出寫入資料DT之其他N個位元後,控制器130再次發出區段確認碼CK,直到寫入資料DT發送完畢。According to an embodiment of the present invention, when the controller 130 receives the sector confirmation code CK, the controller 130 also performs a logical operation on the received data to generate a reception confirmation code, and determines whether the reception confirmation code and the sector confirmation code CK Match. When the received confirmation code matches the sector confirmation code CK, the controller 130 sends out a signal edge SE again to notify the programming system 10 to continue to send the writing data DT. When the controller 130 then sends out the other N bits of the write data DT, the controller 130 sends out the sector confirmation code CK again until the write data DT is sent.

當接收確認碼與區段確認碼CK不相符時,控制器130則不發出信號緣SE並直接終止資料更新方法400。此外,當燒錄系統10超過既定時間並未接收到信號緣SE時,執行第2圖之步驟S211而發出警示。When the received confirmation code does not match the section confirmation code CK, the controller 130 does not send the signal edge SE and directly terminates the data update method 400. In addition, when the programming system 10 does not receive the signal edge SE for more than a predetermined time, it executes step S211 in FIG. 2 to issue a warning.

第8圖係顯示根據本發明之另一實施例所述之資料寫入方法之示意圖。如第8圖所示,燒錄系統10係透過資料針腳DAT同時耦接至第一電子裝置800_1、第二電子裝置800_2、…以及第N電子裝置800_N,並且同時針對第一電子裝置800_1、第二電子裝置800_2、…以及第N電子裝置800_N執行第2圖之資料寫入方法200,第一電子裝置800_1、第二電子裝置800_2、…以及第N電子裝置800_N之每一者,也可分別執行第4圖之資料更新方法400。FIG. 8 is a schematic diagram showing a data writing method according to another embodiment of the invention. As shown in FIG. 8, the programming system 10 is simultaneously coupled to the first electronic device 800_1, the second electronic device 800_2, ..., and the Nth electronic device 800_N through the data pin DAT, and simultaneously targets the first electronic device 800_1, the first The second electronic device 800_2, ..., and the Nth electronic device 800_N execute the data writing method 200 of FIG. 2, each of the first electronic device 800_1, the second electronic device 800_2, ..., and the Nth electronic device 800_N may also be separately Perform the method 400 for updating the data in Figure 4.

第9圖係顯示根據本發明之另一實施例所述之電子裝置之方塊圖。如第9圖所示,電子裝置900包括資料存取介面910、儲存單元920、控制器930以及解密單元940。根據本發明之一實施例,為了增加電子裝置900之資料安全性,第1圖之寫入資料DT係透過加密裝置20加密後而產生加密資料DT_E,並將加密資料DT_E提供給燒錄系統10。FIG. 9 is a block diagram of an electronic device according to another embodiment of the invention. As shown in FIG. 9, the electronic device 900 includes a data access interface 910, a storage unit 920, a controller 930 and a decryption unit 940. According to an embodiment of the present invention, in order to increase the data security of the electronic device 900, the written data DT in FIG. 1 is encrypted by the encryption device 20 to generate encrypted data DT_E, and the encrypted data DT_E is provided to the burning system 10 .

根據本發明之一實施例,燒錄系統10同樣透過資料存取介面910之資料腳位DAT,將加密資料DT_E寫入儲存單元920。當電子裝置900接收到加密資料DT_E時,解密單元940將接收之加密資料DT_E進行解密而產生解密資料DT_D,控制器930在將解密資料DT_D更新儲存單元920之寫入位址範圍。根據本發明之一實施例,解密單元940之解密邏輯係相對於加密裝置20,使得解密資料DT_D係與寫入資料DT相符。 According to an embodiment of the present invention, the programming system 10 also writes the encrypted data DT_E into the storage unit 920 through the data pin DAT of the data access interface 910. When the electronic device 900 receives the encrypted data DT_E, the decryption unit 940 decrypts the received encrypted data DT_E to generate the decrypted data DT_D, and the controller 930 updates the decrypted data DT_D to the write address range of the storage unit 920. According to an embodiment of the invention, the decryption logic of the decryption unit 940 is relative to the encryption device 20 so that the decrypted data DT_D matches the written data DT.

本發明之複數實施例提供了資料寫入方法以及資料更新方法,使得燒錄系統得以透過資料針腳而不需拆卸機殼,即可將資料寫入至電子裝置之儲存單元,已減少大量拆卸與組裝機殼所需耗費的人力與資源。根據本發明之一實施例,由於電子裝置利用信號緣通知燒錄系統操作是否正確,燒錄系統無法存取電子裝置內部的資料,以提升電子裝置之資料安全性。根據本發明之另一實施例,燒錄系統更可使用加密資料寫入電子裝置,而電子裝置再將加密資料解密,更可大幅增加電子裝置之資料安全性。 The multiple embodiments of the present invention provide a data writing method and a data updating method, so that the programming system can write data to the storage unit of the electronic device without disassembling the case through the data pins, which has reduced a lot of disassembly and The manpower and resources required to assemble the cabinet. According to an embodiment of the present invention, since the electronic device uses the signal edge to inform the programming system whether the operation is correct, the programming system cannot access the data inside the electronic device to improve the data security of the electronic device. According to another embodiment of the present invention, the programming system can use encrypted data to write to the electronic device, and the electronic device can decrypt the encrypted data, which can greatly increase the data security of the electronic device.

以上所述為實施例的概述特徵。所屬技術領域中具有通常知識者應可以輕而易舉地利用本發明為基礎設計或調整以實行相同的目的和/或達成此處介紹的實施例的相同優點。所屬技術領域中具有通常知識者也應了解相同的配置不應背離本創作的精神與範圍,在不背離本創作的精神與範圍下他們可做出各種改變、取代和交替。說明性的方法僅表示示範性的步驟,但這些步驟並不一定要以所表示的順序執行。可另外加入、取代、改變順序和/或消除步驟以視情況而作調整,並與所揭露的實施例精神和範圍一致。The above is an overview of the embodiment. Those of ordinary skill in the art should be able to easily design or adjust based on the present invention to perform the same purpose and/or achieve the same advantages of the embodiments described herein. Those with ordinary knowledge in the technical field should also understand that the same configuration should not deviate from the spirit and scope of this creation, and they can make various changes, substitutions, and alterations without departing from the spirit and scope of this creation. The illustrative method represents only exemplary steps, but these steps are not necessarily performed in the order shown. Additional steps may be added, substituted, changed in order, and/or eliminated to adjust as appropriate and consistent with the spirit and scope of the disclosed embodiments.

10:燒錄系統10: Burning system

20:加密裝置20: encryption device

100、900:電子裝置100, 900: electronic device

110、910:資料存取介面110, 910: data access interface

120、920:儲存單元120, 920: storage unit

130、930:控制器130, 930: controller

200:資料寫入方法200: Data writing method

400:資料更新方法400: data update method

800_1:第一電子裝置800_1: the first electronic device

800_2:第二電子裝置800_2: Second electronic device

800_N:第N電子裝置800_N: Nth electronic device

940:解密單元940: Decryption unit

EN:致能信號EN: enable signal

RT:動作請求RT: Action request

DT:寫入資料DT: Write data

SE:信號緣SE: signal edge

CLK:時脈針腳CLK: clock pin

DAT:資料針腳DAT: data pin

EC:操作指令EC: Operation instruction

STR:起始位址STR: start address

SZ:寫入位址大小SZ: write address size

EOF:結束指標EOF: End indicator

TW:等待時間TW: waiting time

E1:第一上升緣E1: First rising edge

E2:第二上升緣E2: second rising edge

E3:第三上升緣E3: third rising edge

BT1:第一位元BT1: the first digit

BT2:第二位元BT2: second digit

BTN:第N位元BTN: Nth bit

BF1:第一位元框架BF1: the first bit frame

BF2:第二位元框架BF2: the second bit frame

BF:位元框架BF: bit frame

TAN:回應時間TAN: response time

TL:閂鎖時間TL: Latch time

TP:資料處理時間TP: data processing time

ER:上升緣ER: rising edge

H:高邏輯位準H: High logic level

L:低邏輯位準L: Low logic level

DT_E:加密資料DT_E: Encrypted data

DT_D:解密資料DT_D: decrypt data

S201~S211、S401~S413:步驟流程S201~S211, S401~S413: Step flow

第1圖係顯示根據本發明之一實施例所述之電子裝置之示意圖; 第2圖係顯示根據本發明之一實施例所述之資料寫入方法之流程圖; 第3圖係顯示根據本發明之一實施例所述之存取介面之時脈針腳以及資料針腳之波形圖; 第4圖係顯示根據本發明之一實施例所述之資料更新方法之流程圖; 第5圖係顯示根據本發明之一實施例所述之燒錄系統發送寫入資料之示意圖; 第6圖係顯示根據本發明之一實施例所述之位元框架之示意圖; 第7圖係顯示根據本發明之另一實施例所述之資料寫入方法之示意圖; 第8圖係顯示根據本發明之另一實施例所述之資料寫入方法之示意圖;以及 第9圖係顯示根據本發明之另一實施例所述之電子裝置之方塊圖。FIG. 1 is a schematic diagram showing an electronic device according to an embodiment of the invention; FIG. 2 is a flowchart showing a data writing method according to an embodiment of the invention; FIG. 3 is a display according to the present invention. The waveform diagram of the clock pin and the data pin of the access interface according to an embodiment of the invention; FIG. 4 is a flowchart showing a data update method according to an embodiment of the invention; FIG. 5 is a display based on A schematic diagram of writing data sent by a burning system according to an embodiment of the present invention; FIG. 6 is a schematic diagram showing a bit frame according to an embodiment of the present invention; FIG. 7 is a schematic diagram showing another according to the present invention FIG. 8 is a schematic diagram of a data writing method according to another embodiment; FIG. 8 is a schematic diagram of a data writing method according to another embodiment of the invention; and FIG. 9 is another embodiment of the invention. The block diagram of the electronic device.

200:資料寫入方法 200: Data writing method

S201~S211:步驟流程 S201~S211: Step flow

Claims (10)

一種資料寫入方法,適用於一燒錄系統透過一資料存取介面之一資料針腳將一寫入資料寫入一儲存裝置,上述資料寫入方法包括:利用上述燒錄系統,將一操作指令上述資料針腳輸入至上述儲存裝置,使得上述儲存裝置根據上述操作指令進入一測試模式;利用上述燒錄系統,將一寫入位址範圍輸入至上述儲存裝置,使得上述儲存裝置抹除上述寫入位址範圍之資料,其中當上述儲存裝置完成抹除上述寫入位址範圍之資料時,上述儲存裝置於上述資料針腳產生一信號緣;當上述燒錄系統自上述資料針腳接收到上述信號緣時,利用上述燒錄系統使用一位元框架發送上述寫入資料之一第一位元;當上述燒錄系統自上述資料針腳接收到上述信號緣時,利用上述燒錄系統使用上述位元框架發送上述寫入資料之一第二位元;當上述寫入資料發送完成時,利用上述燒錄系統輸出一傳輸確認碼;以及當上述燒錄系統自上述資料針腳接收到上述信號緣時,判斷上述寫入資料已正確寫入上述儲存裝置。 A data writing method is suitable for a programming system to write a written data into a storage device through a data pin of a data access interface. The data writing method includes: using the programming system to write an operation instruction Input to the storage device through the data pin, so that the storage device enters a test mode according to the operation command; using the programming system, input a write address range to the storage device, so that the storage device erases the write Data in the address range, where the storage device generates a signal edge at the data pin when the storage device completes erasing the data in the write address range; when the programming system receives the signal from the data pin When the edge occurs, the first bit of the written data is sent using the bit system using the programming system; when the programming system receives the signal edge from the data pins, the programming system uses the bit The frame sends a second bit of the written data; when the written data is sent, the transmission system uses the programming system to output a transmission confirmation code; and when the programming system receives the signal edge from the data pin, It is judged that the written data has been correctly written into the storage device. 如申請專利範圍第1項所述之資料寫入方法,其中上述資料存取介面更包括一時脈針腳,其中當上述儲存裝置進入上述測試模式時,上述時脈針腳係耦接至一第一邏輯位準。 The data writing method as described in item 1 of the patent application scope, wherein the data access interface further includes a clock pin, wherein when the storage device enters the test mode, the clock pin is coupled to a first logic Level. 如申請專利範圍第1項所述之資料寫入方法,其中上述位元框架包括一回應時間、一閂鎖時間以及一資料處理時間,其 中上述資料寫入方法更包括:於上述回應時間,判斷是否自上述資料針腳接收到上述信號緣;當接收到上述信號緣時,於上述閂鎖時間發送上述第一位元;於上述資料處理時間判斷是否自上述資料針腳接收到上述信號緣,其中上述寫入資料於上述資料處理時間中寫入上述儲存裝置;當接收到上述信號緣時,判斷上述第一位元寫入完成;於下一閂鎖時間中,發送上述第二位元;以及當一既定時間內並未接收到上述信號緣時,發出一警示。 The data writing method as described in item 1 of the patent application scope, wherein the above bit frame includes a response time, a latch time, and a data processing time, which The above data writing method further includes: at the response time, determining whether the signal edge is received from the data pin; when the signal edge is received, sending the first bit at the latch time; at the data processing Time to determine whether the signal edge is received from the data pin, where the written data is written to the storage device during the data processing time; when the signal edge is received, it is determined that the first bit write is completed; During a latch time, the second bit is sent; and when the signal edge is not received within a predetermined time, a warning is issued. 如申請專利範圍第3項所述之資料寫入方法,更包括:當發送上述寫入資料之一第一既定數量之位元後,發出一區段確認碼;判斷是否自上述資料針腳接收到上述信號緣;當自上述資料針腳接收到上述信號緣時,判斷上述第一既定數量之位元寫入正確,並利用上述位元框架繼續發送上述寫入資料之下一位元;以及當一既定時間內並未接收到上述信號緣超過時,發出上述警示。 The data writing method as described in item 3 of the patent application scope further includes: after sending a first predetermined number of bits of one of the written data, sending out a section confirmation code; judging whether it has been received from the data pin The signal edge; when the signal edge is received from the data pin, determine that the first predetermined number of bits are written correctly, and use the bit frame to continue sending the next bit of the written data; and when one When the above signal edge is not received within a given time, the above warning is issued. 一種燒錄系統,用以透過一資料存取介面之一資料針腳將一寫入資料寫入一儲存裝置,上述燒錄系統包括:一內部儲存裝置,用以儲存一指令程式;以及一燒錄裝置,執行上述指令程式而執行一資料寫入方法,其中上述資料寫入方法包括:利用上述燒錄裝置,將一操作指令經上述資料針腳輸入至上述儲存裝置,使得上述儲存裝置根據上述操作指令進入一測試模式; 利用上述燒錄裝置,將一寫入位址範圍輸入至上述儲存裝置,使得上述儲存裝置抹除上述寫入位址範圍之資料,其中當上述儲存裝置完成抹除上述寫入位址範圍之資料時,上述儲存裝置於上述資料針腳產生一信號緣;當上述燒錄裝置自上述資料針腳接收到上述信號緣時,利用上述燒錄裝置使用一位元框架發送上述寫入資料之一第一位元;當上述燒錄裝置自上述資料針腳接收到上述信號緣時,利用上述燒錄裝置使用上述位元框架發送上述寫入資料之一第二位元;當上述寫入資料發送完成時,利用上述燒錄裝置輸出一傳輸確認碼;以及當上述燒錄裝置自上述資料針腳接收到上述信號緣時,判斷上述寫入資料已正確寫入上述儲存裝置。 A programming system for writing a written data into a storage device through a data pin of a data access interface. The foregoing programming system includes: an internal storage device for storing a command program; and a programming The device executes the instruction program and executes a data writing method, wherein the data writing method includes: using the programming device to input an operation command to the storage device via the data pin, so that the storage device is based on the operation command Enter a test mode; Using the burning device, a write address range is input to the storage device, so that the storage device erases the data of the write address range, wherein when the storage device finishes erasing the data of the write address range At this time, the storage device generates a signal edge at the data pin; when the programming device receives the signal edge from the data pin, the programming device is used to send a first bit of the written data using a bit frame When the programming device receives the signal edge from the data pin, use the programming device to send a second bit of the written data using the bit frame; when the writing of the written data is completed, use The programming device outputs a transmission confirmation code; and when the programming device receives the signal edge from the data pin, it determines that the written data has been correctly written into the storage device. 一種資料更新方法,適用於一儲存裝置,其中一燒錄系統透過一資料存取介面之一資料針腳將一寫入資料寫入上述儲存裝置,上述資料更新方法包括:利用上述儲存裝置,自上述資料針腳接收一操作指令;利用上述儲存裝置,自上述資料針腳接收一寫入位址範圍;利用上述儲存裝置,根據上述操作指令進入一測試模式;抹除上述寫入位址範圍之資料;當上述寫入位址範圍之資料抹除後,利用上述儲存裝置發出一信號緣;利用上述儲存裝置使用一位元框架接收上述寫入資料之一第一位元; 根據上述第一位元,更新上述寫入位址範圍之一第一位址;當上述第一位址更新完成時,利用上述儲存裝置發出上述信號緣;利用上述儲存裝置,自上述資料針腳接收一傳輸確認碼;根據上述寫入位址範圍之資料,利用上述儲存裝置產生一接收碼;利用上述儲存裝置,判斷上述接收碼與上述傳輸確認碼是否相符;當上述接收碼與上述傳輸確認碼相符時,利用上述儲存裝置發出上述信號緣;以及當上述接收碼與上述傳輸確認碼不相符時,不發出上述信號緣。 A data updating method is suitable for a storage device, wherein a programming system writes a written data into the storage device through a data pin of a data access interface. The data updating method includes: using the storage device from the above The data pin receives an operation command; the storage device is used to receive a write address range from the data pin; the storage device is used to enter a test mode according to the operation command; the data in the write address range is erased; After erasing the data in the written address range, the storage device is used to send out a signal edge; the storage device is used to receive a first bit of the written data using a bit frame; According to the first bit, update one of the first addresses in the written address range; when the first address update is completed, use the storage device to send the signal edge; use the storage device to receive from the data pin A transmission confirmation code; based on the data written in the address range, use the storage device to generate a reception code; use the storage device to determine whether the reception code and the transmission confirmation code match; when the reception code and the transmission confirmation code When they match, the signal edge is sent by the storage device; and when the received code does not match the transmission confirmation code, the signal edge is not sent. 如申請專利範圍第6項所述之資料更新方法,更包括:自上述資料針腳接收一結束指標;以及根據上述結束指標,抹除上述寫入位址範圍之資料。 The data update method as described in item 6 of the patent application scope further includes: receiving an end indicator from the above-mentioned data pin; and erasing the data in the written address range according to the above-mentioned end indicator. 如申請專利範圍第6項所述之資料更新方法,更包括:當接收到上述寫入資料之一第一既定數量之位元後,接收一區段確認碼;對接收之上述第一既定數量之位元進行一邏輯運算而產生一接收確認碼;判斷上述接收確認碼是否與上述區段確認碼相符;當上述接收確認碼與上述區段確認碼相符時,發出上述信號緣;以及當上述接收確認碼與上述區段確認碼不相符時,停止動作。 The data update method as described in item 6 of the patent application scope further includes: receiving a block confirmation code after receiving a first predetermined number of bits of the written data; Bit performs a logical operation to generate a reception confirmation code; determine whether the reception confirmation code matches the sector confirmation code; when the reception confirmation code matches the sector confirmation code, send out the signal edge; and when the above When the reception confirmation code does not match the above section confirmation code, the operation stops. 如申請專利範圍第8項所述之資料更新方法,其中上述寫入資料係經過一加密處理,上述資料更新方法更包括:將接收之上述寫入資料解密而產生一解密資料;以及 將上述解密資料寫入上述寫入位址範圍。 The data updating method as described in item 8 of the patent application scope, wherein the written data is subjected to an encryption process, and the data updating method further includes: decrypting the received written data to generate a decrypted data; and Write the decrypted data into the write address range. 一種儲存裝置,其中一燒錄系統將一寫入資料寫入上述儲存裝置,上述儲存裝置包括:一儲存單元;一資料存取介面,包括一資料針腳,其中上述資料針腳接收上述燒錄系統之一操作指令、一寫入位置範圍以及上述寫入資料,且發出一信號緣,其中上述資料存取介面更利用一位元框架,依序接收上述寫入資料之每一位元;以及一控制器,根據上述操作指令,進入一測試模式且抹除上述儲存單元之上述寫入位址範圍之資料,其中當上述寫入位址範圍之資料抹除後,上述控制器透過上述資料存取界面發出上述信號緣至上述燒錄系統,其中當上述資料存取介面接收上述寫入資料之一第一位元時,上述控制器根據上述第一位元,更新上述儲存單元之上述寫入位址範圍之一第一位址,當上述第一位址更新完成時,上述控制器發出上述信號緣,其中上述控制器自上述資料針腳接收一傳輸確認碼,其中上述控制器根據上述寫入位址範圍之資料產生一接收碼,並判斷上述接收碼是否與上述傳輸確認碼相符,其中當上述接收碼與上述傳輸確認碼相符時,上述控制器發出上述信號緣,其中當上述接收碼與上述傳輸確認碼不相符時,上述控制器不發出上述信號緣。 A storage device, wherein a programming system writes a written data to the storage device, the storage device includes: a storage unit; a data access interface, including a data pin, wherein the data pin receives the data of the programming system An operation command, a writing position range and the above-mentioned writing data, and sending out a signal edge, wherein the above-mentioned data access interface further uses a one-bit frame to sequentially receive each bit of the above-mentioned writing data; and a control According to the operation instruction, enter a test mode and erase the data of the write address range of the storage unit, wherein after the data of the write address range is erased, the controller passes the data access interface Sending the signal edge to the programming system, wherein when the data access interface receives a first bit of the written data, the controller updates the written address of the storage unit according to the first bit The first address in a range. When the update of the first address is completed, the controller sends out the signal edge. The controller receives a transmission confirmation code from the data pin. The controller writes the address according to the write address. The data in the range generates a receiving code, and judges whether the receiving code matches the transmission confirmation code, wherein when the receiving code matches the transmission confirmation code, the controller sends out the signal edge, wherein when the receiving code and the transmission When the confirmation codes do not match, the above controller does not send out the above signal edge.
TW107147578A 2018-12-28 2018-12-28 Data-programming methods, programming systems, data update methods, and storage devices TWI691895B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW107147578A TWI691895B (en) 2018-12-28 2018-12-28 Data-programming methods, programming systems, data update methods, and storage devices
CN201911353709.9A CN111381838B (en) 2018-12-28 2019-12-25 Data writing method, burning system, data updating method and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107147578A TWI691895B (en) 2018-12-28 2018-12-28 Data-programming methods, programming systems, data update methods, and storage devices

Publications (2)

Publication Number Publication Date
TWI691895B true TWI691895B (en) 2020-04-21
TW202026863A TW202026863A (en) 2020-07-16

Family

ID=71132727

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107147578A TWI691895B (en) 2018-12-28 2018-12-28 Data-programming methods, programming systems, data update methods, and storage devices

Country Status (2)

Country Link
CN (1) CN111381838B (en)
TW (1) TWI691895B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI775260B (en) * 2020-12-30 2022-08-21 新唐科技股份有限公司 Programming system and programming method thereof, and porgrammer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033807A (en) * 2010-12-17 2011-04-27 青岛海信信芯科技有限公司 SOC (System On Chip) chip debugging equipment, method and device
CN102265549A (en) * 2008-09-22 2011-11-30 柯扎特·拉多·拉多莱斯库 Network timing synchronization systems
US20130262744A1 (en) * 2012-03-30 2013-10-03 Venkatesh Ramachandra NAND Flash Memory Interface
TW201510736A (en) * 2013-03-14 2015-03-16 Microchip Tech Inc Single wire programming and debugging interface
TW201622351A (en) * 2014-09-11 2016-06-16 英特爾股份有限公司 Apparatus and method for adaptive common mode noise decomposition and tuning

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56164646A (en) * 1980-05-23 1981-12-17 Hitachi Ltd Monitor signal transmitting device
CN102314396B (en) * 2010-07-06 2014-01-29 旺宏电子股份有限公司 Method and device for accessing bytes by taking a block as base flash
CN104346103B (en) * 2013-08-09 2018-02-02 群联电子股份有限公司 Instruction executing method, Memory Controller and memorizer memory devices
CN104536789A (en) * 2014-12-28 2015-04-22 珠海全志科技股份有限公司 Data burning method and data burning device
CN105607925B (en) * 2015-12-16 2019-06-18 深圳市科陆电子科技股份有限公司 Processor in-chip FLASH burning program method and programming system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265549A (en) * 2008-09-22 2011-11-30 柯扎特·拉多·拉多莱斯库 Network timing synchronization systems
CN102033807A (en) * 2010-12-17 2011-04-27 青岛海信信芯科技有限公司 SOC (System On Chip) chip debugging equipment, method and device
US20130262744A1 (en) * 2012-03-30 2013-10-03 Venkatesh Ramachandra NAND Flash Memory Interface
TW201510736A (en) * 2013-03-14 2015-03-16 Microchip Tech Inc Single wire programming and debugging interface
TW201622351A (en) * 2014-09-11 2016-06-16 英特爾股份有限公司 Apparatus and method for adaptive common mode noise decomposition and tuning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI775260B (en) * 2020-12-30 2022-08-21 新唐科技股份有限公司 Programming system and programming method thereof, and porgrammer

Also Published As

Publication number Publication date
CN111381838B (en) 2023-09-01
TW202026863A (en) 2020-07-16
CN111381838A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US11366767B2 (en) Storage system and method for performing and authenticating write-protection thereof
US10324864B2 (en) Storage system and method for performing and authenticating write-protection thereof
US9971647B2 (en) Apparatus and method for programming ECC-enabled NAND flash memory
TWI516921B (en) Data processing method, memory storage device and memory controlling circuit unit
US11194486B2 (en) Storage data sanitization
US10199108B2 (en) Methods for read retries and apparatuses using the same
US10061927B2 (en) Storage medium having stored therein boot program, information processing apparatus, information processing system, information processing method, semiconductor apparatus, and storage medium having stored therein program
KR20150047821A (en) Semiconductor memory device, memory system including the same and operating method thereof
TWI641966B (en) Memory storage system, host system authentication method and memory storage device
KR100778459B1 (en) Apparatus and method for programming, erasing and verificating a pluality of electronic devices
US9582217B2 (en) Electronic device and communication method
US9778880B2 (en) Memory control circuit unit, data transmitting method and memory storage device
US9858366B2 (en) Simulator and simulating method for flash memory background
US20220075549A1 (en) Data erasure in memory sub-systems
TWI691895B (en) Data-programming methods, programming systems, data update methods, and storage devices
CN111199023A (en) Key system and decryption method of MCU program
TW202008355A (en) Memory system, memory controller, and operating method thereof
WO2020211070A1 (en) Multi-mode protected memory
JP2008090995A (en) Flash memory device and its erasing method
US9620237B2 (en) Semiconductor device and search circuit for and method of searching for erasure count in semiconductor memory
TWI585769B (en) Data storage device and detection method for flash memory
US11080020B2 (en) Information processing device and random number generating method
JP2013196195A (en) Multiprocessor system