TWI490780B - Embedded system and accessing data method thereof - Google Patents

Embedded system and accessing data method thereof Download PDF

Info

Publication number
TWI490780B
TWI490780B TW099103586A TW99103586A TWI490780B TW I490780 B TWI490780 B TW I490780B TW 099103586 A TW099103586 A TW 099103586A TW 99103586 A TW99103586 A TW 99103586A TW I490780 B TWI490780 B TW I490780B
Authority
TW
Taiwan
Prior art keywords
data
conversion method
embedded system
memory module
control module
Prior art date
Application number
TW099103586A
Other languages
Chinese (zh)
Other versions
TW201128523A (en
Inventor
Chien Hung Chen
Chia Wei Hsu
Yu Chuan Lin
Chun Fu Lin
Tai Lun Huang
Shih Jie Chou
Ho Lin Tsay
Tai Shan Liao
Chi Hung Huang
Original Assignee
Nat Applied Res Laboratoires
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 Nat Applied Res Laboratoires filed Critical Nat Applied Res Laboratoires
Priority to TW099103586A priority Critical patent/TWI490780B/en
Publication of TW201128523A publication Critical patent/TW201128523A/en
Application granted granted Critical
Publication of TWI490780B publication Critical patent/TWI490780B/en

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

嵌入式系統及其存取資料方法 Embedded system and its access data method

本發明是有關於一種嵌入式系統及其存取資料方法,特別是有關於一種外接式記憶模組的嵌入式系統以及其存取資料的方法。 The present invention relates to an embedded system and a method for accessing the same, and more particularly to an embedded system for an external memory module and a method for accessing the same.

目前,隨著網路通信技術的快速發展,使得各式各樣的嵌入式系統逐漸成為人們存取資料的主要工具。例如行動電話、印表機、冷氣機、影像感測器等均為嵌入式系統。由於影像感測器使用前需做一系列參數測試,例如信號雜訊比(Signal-to-noise ratio,SNR)、像素線性度、像素暗電流等,若以電腦化檢測系統測試,會有體積大、使用者操作繁雜等缺點,故以體積小、可依使用者需求而設計控制流程的嵌入式系統取而代之。但影像感測器參數檢測往往需要大量的記憶體空間,用於儲存影像資料,例如計算影像感測器信號雜訊比參數時,要將影像資料重複擷取至記憶空間,如此嵌入式系統記憶體容量可能不足,過去以記憶體管理或加大系統記憶體空間作為解決方案。其中,記憶體管理是指對計算機內存資源的分配和使用的技術,其最主要的目的是如何高效、快速的分配,並且在適當的時候釋放和回收內存資源;而加大系統記憶體空間,係將嵌入式系統原本的內嵌式記憶模組,以另一較大容量之內嵌式記憶模組取代。控制模組將資料儲存於記憶模組中時,往往以10進制轉換法儲存,如此將因字元數 過多而增加運算時間;而控制模組讀取記憶模組中的資料時,傳統方式為將資料全部讀取後,再抓出所需的資料,如此亦將增加運算時間。 At present, with the rapid development of network communication technology, various embedded systems have gradually become the main tools for people to access data. For example, mobile phones, printers, air conditioners, image sensors, etc. are all embedded systems. Since the image sensor needs to do a series of parameter tests before use, such as signal-to-noise ratio (SNR), pixel linearity, pixel dark current, etc., if it is tested by computerized detection system, there will be a volume. Large, user-operated operations and other shortcomings, so the embedded system that is small in size and can be designed according to user needs to replace the control process. However, the image sensor parameter detection often requires a large amount of memory space for storing image data. For example, when calculating the image sensor noise ratio parameter, the image data is repeatedly captured into the memory space, so that the embedded system memory The volume of the body may be insufficient. In the past, memory management or increased system memory space was used as a solution. Among them, memory management refers to the technology of allocating and using computer memory resources. Its main purpose is how to allocate efficiently and quickly, and release and reclaim memory resources when appropriate; and increase system memory space. The embedded memory module of the embedded system is replaced by another large-capacity embedded memory module. When the control module stores the data in the memory module, it is often stored in a decimal conversion method, so that the number of characters will be Too much to increase the computing time; while the control module reads the data in the memory module, the traditional way is to read all the data, and then grab the required data, which will increase the computing time.

有鑑於上述習知技藝之問題,本發明之目的就是在提供一種嵌入式系統及其存取資料方法,以解決嵌入式系統自身記憶體不足的問題。 In view of the above problems of the prior art, the object of the present invention is to provide an embedded system and a method for accessing the same to solve the problem of insufficient memory of the embedded system itself.

根據本發明之一目的,提出一種嵌入式系統,其中該嵌入式系統包含一控制模組及一記憶模組,而該記憶模組包含一內嵌式記憶模組及一外接式記憶模組,其中,外接式記憶模組可為快閃記憶體或外接式硬碟。 According to an aspect of the present invention, an embedded system is provided, wherein the embedded system includes a control module and a memory module, and the memory module includes an embedded memory module and an external memory module. The external memory module can be a flash memory or an external hard disk.

根據本發明之一目的,再提出一種嵌入式系統之控制模組儲存及讀取資料的方法,控制模組將至少一資料以第一進制轉換法,儲存於記憶模組中,其中,第一進制轉換法係為16進制轉換法;控制模組將至少一資料以第二進制轉換法,從記憶模組中讀取資料,其中,第二進制轉換法係為2進制轉換法。 According to one aspect of the present invention, a method for storing and reading data by a control module of an embedded system is provided. The control module stores at least one data in a memory module by using a first-order conversion method, wherein The hexadecimal conversion method is a hexadecimal conversion method; the control module reads at least one data into the memory module by the binary conversion method, wherein the binary conversion method is a binary conversion method.

承上所述,依本發明之嵌入式系統,其可具有一或多個下述優點: In view of the above, an embedded system in accordance with the present invention may have one or more of the following advantages:

(1)此嵌入式系統可藉由一外接式記憶模組,解決嵌入式系統自身記憶體不足的問題。 (1) The embedded system can solve the problem of insufficient memory of the embedded system by an external memory module.

(2)此嵌入式系統之控制模組可藉由16進制轉換法,將資料儲存於記憶模組中,藉此可解決控制模組運算時因字元數過多而增加運算時間的問題。 (2) The control module of the embedded system can store the data in the memory module by the hexadecimal conversion method, thereby solving the problem that the operation time is increased due to the excessive number of characters in the control module operation.

(3)此嵌入式系統之控制模組可藉由2進制轉換法,從記憶模組中擷取資料後讀取,藉此可解決控制模組運算時,其運算時間過長的問題。 (3) The control module of the embedded system can be read from the memory module by the binary conversion method, thereby solving the problem that the operation time of the control module is too long.

20‧‧‧嵌入式系統 20‧‧‧ embedded system

200‧‧‧控制模組 200‧‧‧Control Module

201‧‧‧記憶模組 201‧‧‧Memory Module

2010‧‧‧內嵌式記憶模組 2010‧‧‧Inline Memory Module

2011‧‧‧外接式記憶模組 2011‧‧‧External Memory Module

S202~S206‧‧‧步驟 S202~S206‧‧‧Steps

第1圖係為本發明之嵌入式系統,其包含一控制模組及記憶模組之一實施例的功能方塊圖;第2圖係為本發明控制模組以16進制轉換法將資料儲存於記憶模組中,並從記憶模組中以2進制轉換法讀取資料之方法之一操作範例的流程圖;第3圖係為本發明之控制模組以2進制轉換法依序讀取資料並做運算之方法之一操作範例的流程圖;以及第4圖係為本發明之控制模組以2進制轉換法讀取記憶模組中的資料並做運算之一實施例。 1 is an embedded system of the present invention, which includes a functional block diagram of an embodiment of a control module and a memory module; and FIG. 2 is a control module of the present invention stores data in a hexadecimal conversion method. In the memory module, a flow chart of one of the methods for reading data from the memory module by binary conversion method; FIG. 3 is a sequential control method of the control module of the present invention by binary conversion method A flowchart of an operation example of one of the methods of reading data and performing operations; and FIG. 4 is an embodiment of the control module of the present invention for reading data in a memory module by binary conversion method and performing an operation.

請參閱第1圖,其係為本發明之嵌入式系統20。圖中,嵌入式系統20包含一控制模組200及一記憶模組201,其中,該記憶模組201包含一內嵌式記憶模組2010及一外接式記憶模組2011,其中,外接式記憶模組2011為一快閃記憶體或外接式硬碟,外接式記憶模組2011可擴充嵌入式系統20之記憶體,解決嵌入式系統20自身記憶體不足的問題。 Please refer to FIG. 1, which is an embedded system 20 of the present invention. In the figure, the embedded system 20 includes a control module 200 and a memory module 201. The memory module 201 includes an embedded memory module 2010 and an external memory module 2011, wherein the external memory The module 2011 is a flash memory or an external hard disk. The external memory module 2011 can expand the memory of the embedded system 20 to solve the problem of insufficient memory of the embedded system 20 itself.

請參閱第2圖,本發明提出一種嵌入式系統20的存取資料方法,其中,嵌入式系統包含一控制模組200及一記憶模組201。於步驟S202中,控制模組200將至少一資料以16進制轉換法,儲存於記憶模組201中,於步驟S203中,控制模組200將至少一資料以2進 制轉換法,從記憶模組201中讀取資料。如此使用上述的進制轉換法,對於控制模組200在運算時間上,有大大節省之作用。 Referring to FIG. 2, the present invention provides an access method for the embedded system 20, wherein the embedded system includes a control module 200 and a memory module 201. In step S202, the control module 200 stores at least one data in the memory module 201 by using a hexadecimal conversion method. In step S203, the control module 200 compares at least one data into two. The conversion method reads data from the memory module 201. Thus, using the above-described hexadecimal conversion method, the control module 200 has a significant saving effect on the operation time.

控制模組200將資料儲存於記憶模組201的方式,傳統上是以10進制轉換法運算並儲存,如此運算方式,若在處理資料過大的情況下,將因字元數過多而增加運算時間,本發明提出控制模組200以16進制轉換法取代傳統10進制轉換法,將資料儲存於記憶模組201中。舉例來說,若將一2056個bit的資料以10進制轉換方式作儲存,其將會有4個字元數,如下表所示: The manner in which the control module 200 stores the data in the memory module 201 is conventionally calculated and stored in a decimal conversion method. If the processing data is too large, the operation is increased due to the excessive number of characters. At the time, the control module 200 replaces the traditional decimal conversion method by the hexadecimal conversion method, and stores the data in the memory module 201. For example, if a 2056-bit data is stored in decimal conversion, it will have 4 characters, as shown in the following table:

若能以本發明提出之16進制轉換法儲存,可將2056個bit的資料轉換成808個bit,該資料將僅有3個字元數,如下表所示: If it can be stored by the hexadecimal conversion method proposed by the present invention, 2056 bits of data can be converted into 808 bits, and the data will have only 3 characters, as shown in the following table:

如此每筆資料都將可省下一個字元空間,而儲存n個資料,便節 省了n個字元空間,大大減少了運算的時間。 So every piece of data will save one character space, and store n data, the festival Saves n character spaces, greatly reducing the computation time.

控制模組200將資料從記憶模組201擷取後的讀取方式,傳統上是控制模組200將記憶模組201中的資料全部讀取完畢後,再抓出來所需要的資料。本發明提出控制模組200以2進制轉換法讀取記憶模組201中的資料,請參閱第3圖,於步驟S204中,控制模組200以2進制轉換法讀取資料依序讀取第1、2、3、…、n個資料,於步驟S205中,將資料儲存至內嵌式記憶模組2010中,於步驟S206中,做資料運算的動作,請參閱第4圖,該圖為控制模組200以2進制轉換法讀取記憶模組201中的資料並做運算之一實施例,其係控制模組200以2進制轉換法一併讀取外接式記憶模組2011中的資料,接著將資料儲存至內嵌式記憶模組2010中,最後再做資料的運算,相較於傳統的讀取方式,本發明提出2進制轉換法之讀取方式,係為抓到所需的資料後,直接讀取各個資料而後做運算,大大減少了運算的時間。 The control module 200 reads the data from the memory module 201. Traditionally, the control module 200 reads all the data in the memory module 201 and then captures the required data. The present invention proposes that the control module 200 reads the data in the memory module 201 by the binary conversion method. Referring to FIG. 3, in step S204, the control module 200 reads the data in a binary conversion manner and sequentially reads the data. Taking the first, second, third, ..., n data, in step S205, storing the data in the embedded memory module 2010, in step S206, performing the data operation, please refer to FIG. 4, The figure shows an embodiment in which the control module 200 reads the data in the memory module 201 by a binary conversion method and performs an operation. The control module 200 reads the external memory module in a binary conversion method. In 2011, the data is stored in the embedded memory module 2010, and finally the data is calculated. Compared with the conventional reading mode, the present invention proposes a binary conversion method for reading. After capturing the required data, directly reading each data and then doing the operation greatly reduces the computation time.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

20‧‧‧嵌入式系統 20‧‧‧ embedded system

200‧‧‧控制模組 200‧‧‧Control Module

201‧‧‧記憶模組 201‧‧‧Memory Module

2010‧‧‧內嵌式記憶模組 2010‧‧‧Inline Memory Module

2011‧‧‧外接式記憶模組 2011‧‧‧External Memory Module

Claims (6)

一種嵌入式系統,包含:一記憶模組,係以外接方式連接該嵌入式系統;以及一控制模組,係連接該記憶模組,並以一第一進制轉換法儲存資料,及以一第二進制轉換法讀取資料;其中,該第一進制轉換法係16進制轉換法,該第二進制轉換法係2進制轉換法。 An embedded system comprising: a memory module connected to the embedded system in an external manner; and a control module connected to the memory module and storing data in a first conversion method, and The second binary conversion method reads the data; wherein the first binary conversion method is a hexadecimal conversion method, and the second binary conversion method is a binary conversion method. 如申請專利範圍第1項所述之嵌入式系統,其中該記憶模組係一快閃記憶體或外接式硬碟。 The embedded system of claim 1, wherein the memory module is a flash memory or an external hard disk. 如申請專利範圍第1項所述之嵌入式系統,其中該控制模組係一中央處理單元(CPU)。 The embedded system of claim 1, wherein the control module is a central processing unit (CPU). 一種嵌入式系統的儲存及讀取資料方法,該系統包含一記憶模組及一控制模組,該方法包含:以該控制模組將該至少一資料以一第一進制轉換法,儲存於該記憶模組中;以及以該控制模組將該至少一資料以一第二進制轉換法,從該記憶模組中讀取資料;其中,該第一進制轉換法係16進制轉換法,該第二進制轉換法係2進制轉換法。 A method for storing and reading data in an embedded system, the system comprising a memory module and a control module, the method comprising: storing, by the control module, the at least one data in a first conversion method In the memory module, and the at least one data is read by the control module from the memory module by using a binary conversion method; wherein the first conversion method is a hexadecimal conversion method, The binary conversion method is a binary conversion method. 如申請專利範圍第4項所述之嵌入式系統的儲存及讀取資料方法,其中該記憶模組係一快閃記憶體或外接式硬碟。 The method for storing and reading data of the embedded system according to claim 4, wherein the memory module is a flash memory or an external hard disk. 如申請專利範圍第4項所述之嵌入式系統的儲存及讀取資料方法 ,其中該控制模組係一中央處理單元。 Method for storing and reading data of an embedded system as described in claim 4 Wherein the control module is a central processing unit.
TW099103586A 2010-02-05 2010-02-05 Embedded system and accessing data method thereof TWI490780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099103586A TWI490780B (en) 2010-02-05 2010-02-05 Embedded system and accessing data method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099103586A TWI490780B (en) 2010-02-05 2010-02-05 Embedded system and accessing data method thereof

Publications (2)

Publication Number Publication Date
TW201128523A TW201128523A (en) 2011-08-16
TWI490780B true TWI490780B (en) 2015-07-01

Family

ID=45025260

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099103586A TWI490780B (en) 2010-02-05 2010-02-05 Embedded system and accessing data method thereof

Country Status (1)

Country Link
TW (1) TWI490780B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080086631A1 (en) * 2000-01-06 2008-04-10 Chow David Q Flash memory controller controlling various flash memory cells
TWM334962U (en) * 2007-12-14 2008-06-21 Inventec Besta Co Ltd Flash memory burning device
US7505329B2 (en) * 1992-03-17 2009-03-17 Renesas Technology Corp. Data line disturbance free memory block divided flash memory and microcomputer having flash memory therein

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7505329B2 (en) * 1992-03-17 2009-03-17 Renesas Technology Corp. Data line disturbance free memory block divided flash memory and microcomputer having flash memory therein
US20080086631A1 (en) * 2000-01-06 2008-04-10 Chow David Q Flash memory controller controlling various flash memory cells
TW200915090A (en) * 2007-09-28 2009-04-01 Super Talent Electronics Inc Flash memory controller controlling various flash memory cells
TWM334962U (en) * 2007-12-14 2008-06-21 Inventec Besta Co Ltd Flash memory burning device

Also Published As

Publication number Publication date
TW201128523A (en) 2011-08-16

Similar Documents

Publication Publication Date Title
US9489293B2 (en) Techniques for opportunistic data storage
WO2016011886A1 (en) Method and apparatus for decoding image
CN103546467B (en) The method applying Modbus rtu protocol on TCP/IP network
WO2021093365A1 (en) Gpu video memory management control method and related device
CN105094709A (en) Dynamic data compression method for solid-state disc storage system
CN108089822A (en) Management method, system, equipment and the storage medium of storage chip
WO2015027731A1 (en) Bloom filter generation method and device
CN105988941B (en) Cache data processing method and device
Sanny et al. Energy-efficient median filter on FPGA
CN102722456B (en) Flash memory device and data writing method thereof
US20160179168A1 (en) Electronic device and method for detecting power usage of electronic device
WO2015021753A1 (en) Data compression method, computer system and device
TWI490780B (en) Embedded system and accessing data method thereof
WO2019127416A1 (en) Connected domain detecting method, circuit, device and computer-readable storage medium
WO2015087651A1 (en) Device, program, recording medium, and method for extending service life of memory,
CN104068838A (en) Sphygmomanometer multi-user data storage method
CN109271538A (en) A kind of picture storage method and relevant device
CN106557535A (en) A kind of processing method and system of big data level Pcap file
JP2020525963A (en) Method and apparatus for comparing media characteristics
CN110851398A (en) Garbage data recovery processing method and device and electronic equipment
WO2020238749A1 (en) Raster data access method and apparatus, electronic device, and computer storage medium
TWI482099B (en) Image processing and recording system and image processing and recording method thereof
CN108196790B (en) Data management method, storage device, and computer-readable storage medium
TWI387873B (en) Backward compression system and method
US20120323845A1 (en) Adaptive Relational Database Access

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees