CN101146191A - Data processing method applied into built-in system - Google Patents

Data processing method applied into built-in system Download PDF

Info

Publication number
CN101146191A
CN101146191A CNA2007101624854A CN200710162485A CN101146191A CN 101146191 A CN101146191 A CN 101146191A CN A2007101624854 A CNA2007101624854 A CN A2007101624854A CN 200710162485 A CN200710162485 A CN 200710162485A CN 101146191 A CN101146191 A CN 101146191A
Authority
CN
China
Prior art keywords
data
processor
processing method
volatile memory
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101624854A
Other languages
Chinese (zh)
Other versions
CN100578452C (en
Inventor
林汉祺
杨忠理
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MStar Semiconductor Inc Taiwan
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 MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN200710162485A priority Critical patent/CN100578452C/en
Publication of CN101146191A publication Critical patent/CN101146191A/en
Application granted granted Critical
Publication of CN100578452C publication Critical patent/CN100578452C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A data processing method used an embedded system is provided. The embedded system at least comprises a first CPU, a second CPU, a non-volatile memory and a volatile memory. The data processing method comprises the following steps: the first CPU generates a data shift action to transfer packed data stored in the non-volatile memory to the volatile memory, and the second CPU decompresses the packed data stored in the volatile memory to generate decompressed data and write the decompressed data into the volatile memory. The invention can efficiently shorten the start-up time without needing a powerful and expensive microprocessor.

Description

Be applied to the data processing method of embedded system
Technical field
The present invention relates to a kind of data processing method, relate in particular to the data processing method that is applied in the embedded system.
Background technology
Embedded system (Embedded System) begins rudiment according to the demand of industrial computer, and along with computerized information product, communication product and digital household appliances are popularized gradually, embedded system also enters in common people's the daily life gradually again.From Digital Television, the mobile phone mobile phone of new generation, in portable apparatus such as digital camera, personal digital assistant, can see it and be employed wherein.Embedded system does not need a lot of external spare and accessory parts, and can finish specific function on the small size element, has characteristics such as stable, slight greatly, that application elasticity is big.
See also Fig. 1, Fig. 1 is a digital television function calcspar commonly used, the TV signal that produced of channel selector (tuner) 102 received television signal sources 101 wherein, via demodulator (demodulator) 103, after the processing of demodulation multiplexer (demultiplexer) 104, the gained data are respectively by digital signal processor (DigitalSignal Processor, DSP) 111, image decoder 112 and data decoder 113 are carried out process of decoding, sound part wherein just can be play on loudspeaker 131, the part of image then again after the processing via figure (graphics) processor 121, shows on display 132.
As for the out of Memory in the TV signal that is received, then can be earlier by after data decoder 113 decoding processing, continue again by CPU 122 and to handle running; And the user utilizes user interface 140, comprises the command information that the panel button 142 on operation remote controllers 141 or the operand word television set is produced, and then also is after can being handled by CPU 122, to be stored in the storage arrangement 150.And this storage arrangement 150 includes dynamic random access memory (DRAM) 151 and flash memory (Flash Memory) 152 usually.
But because the available resources of the embedded system shown in above-mentioned Digital Television are limited, especially be cost consideration, the capacity of the capacity of above-mentioned dynamic random access memory 151 and flash memory 152 all has certain limitation, so put into embedded equipment after various graphic file, multinational font data or program code data that system designer needs during usually with System Operation are compressed again to save the use of storage area.But the operational capability of the CPU 122 in the general embedded equipment is limited, therefore when the data of compress are decompressed, will spend many times and causes System Operation speed slow, allows the user feel inconvenient easily.
Summary of the invention
How under the support of limited hardware resource, to solve the disappearance of above-mentioned conventional means, be development main purpose of the present invention.
The present invention is a kind of data processing method, be applied in the embedded system, embedded system comprises first processor, second processor, nonvolatile memory and volatile memory at least, this data processing method comprises the following step: first processor starts data-moving action, with a packed data unloading storing in the nonvolatile memory to volatile memory; And second processor this packed data that stores in the volatile memory decompressed and produce a decompressed data and writing in the volatile memory.Can move with direct memory access as for data-moving action and to finish.And embedded system for example can be TV chip group or chip for cell phone group.
According to data processing method of the present invention, the described first processor that described embedded system included that it was applied thereon, described second processor, described nonvolatile memory and described volatile memory are respectively central processing unit, digital signal processor, flash memory and dynamic random access memory.
According to data processing method of the present invention, wherein said first processor starts the action of described data-moving in the system boot program, and described first processor and after starting described data-moving action, proceed other actions in the described system boot program.
According to data processing method of the present invention, the decompression action that wherein said second processor carried out is the LZSS decompression operation.
Further, first register and second register are set in embedded system; This second processor writes the packed data request to second register; First processor regularly reads the content in second register, the data-moving action is started in request according to packed data, and finish the back in data-moving action and first register is write read parameter, include the address of this packed data in this volatile memory and big or small information; And second processor regularly read content in first register, in order to reading this packed data that stores in the volatile memory and decompress, and then produce this pen decompressed data and writing in this volatile memory according to reading parameter.When second processor reads this packed data that stores in this volatile memory, the action that finishes to decompress in response to finishing character code in this packed data.
According to data processing method of the present invention, wherein said reading includes the address of described packed data in described volatile memory and big or small information in the parameter.
According to data processing method of the present invention, also comprise the following step: described first processor notifies described second processor to be written into and to carry out one section gunzip code, makes described second processor have the operational capability of decompression; And described second processor writes described packed data request to described second register.
The present invention can effectively shorten the available machine time, and does not need to select for use powerful but expensive microprocessor.
Description of drawings
Fig. 1 shows Digital Television common function block schematic diagram.
Fig. 2 shows the embedded system built-in function block schematic diagram of preferred embodiment of the present invention.
Fig. 3 (a) and Fig. 3 (b) show the schematic flow sheet of preferred embodiment method of the present invention.
Wherein, description of reference numerals is as follows:
101 TV signal source, 102 channel selector
103 demodulators, 104 demultiplexers
111 digital signal processors, 112 image decoders
113 data decoder, 131 loudspeakers
121 graphic process unit, 132 displays
122 CPU, 140 user interfaces
141 remote controllers, 142 panel buttons
150 storage arrangements, 151 dynamic random access memory
152 flash memories, 200 embedded systems
201 central processing units, 202 digital signal processors
203 flash memories, 204 dynamic random access memory
205 first registers, 206 second registers
2,042 second specific regions, 2,041 first specific regions
Embodiment
Fig. 2 shows the exercisable embedded system built-in function of notion of the present invention block schematic diagram, wherein be respectively equipped with central processing unit 201, digital signal processor 202 is handled different tasks, for example be applied in the television system or mobile device that is provided with TV chip group or chip for cell phone group.And utilize the conventional means that stored packed data decompresses in 201 pairs of flash memories 203 of central processing unit, under the usefulness condition of limited of central processing unit 201, will have a strong impact on the speed of system boot, therefore how to utilize existing hardware resource, reach effective speed of improving system boot, for developing main purpose of the present invention.
And after examining the system boot program, find, in central processing unit 201 leading system boot processes of carrying out, the digital signal processor 202 of mainly playing the part of the audio decoder processing is in idle state mostly, and be effectively to reach the purpose of improving system boot speed, the present invention discloses the embodiment method flow diagram that utilizes shown in Fig. 3 (a) and Fig. 3 (b) and carries out the processing of packed data.
At first, central processing unit 201 number of notifications word signal processors 202 were written into and carry out one section gunzip code after system entered boot program, made digital signal processor 202 have the operational capability of decompression.Digital signal processor 202 can write the packed data request to second register 206, and central processing unit 201 regularly reads the content in this second register 206.When reading this packed data request, central processing unit 201 starts the data-moving action, with a packed data unloading storing in the flash memory 203 first specific region 2041 to the dynamic random access memory 204, and finish the back in the action of this data-moving and first register 205 is write read parameter, read and include the address of this packed data in dynamic random access memory 204 and big or small information in the parameter.Digital signal processor 202 regularly reads the content in first register, when reading this when reading parameter, address that digital signal processor 202 utilizations wherein comprise and size information begin to read this packed data that stores in the dynamic random access memory 204 and decompress, and then the data that will decompress write in second specific region 2042 of dynamic random access memory 204.And the decompression that digital signal processor 202 is carried out action can be the decompression operation in the LZSS algorithm.And read-decompress in the action at this, if in this packed data, read when finishing character code, represent just that this packed data is complete to be read out, therefore can finish to read and decompress action.Then digital signal processor 202 can be written into and carry out a section audio handler code in addition, makes digital signal processor 202 can continue the originally required Audio Processing function of the system that reaches.
In addition, when digital signal processor 202 does not read this end character code as yet in this packed data, just sustainable this set in this embedded system 200 second register 206 is write the packed data request, and then the central processing unit 201 sustainable data-movings that start are moved, continue unloading to first specific region 2041 in the dynamic random access memory 204 in order to the packed data that will store in the flash memory 203 and decompress.Moreover, when the decompressed data in writing dynamic random access memory 204 will exceed the capacity of second specific region 2042, central processing unit 201 just can be transferred to data in second specific region 2042 another zone of dynamic random access memory 204 and deposit, and then the capacity of second specific region 2042 is removed to supply new own decompressed data to deposit in.
In sum as can be known, the present invention can be widely used in the start process of embedded system of two processors of internal configurations at least, therefore embedded system can be the system chipset that TV chip group or chip for cell phone group etc. have a plurality of processors simultaneously, and the data that will compress are written into first processor the volatile memory from nonvolatile memory can be primary processor in the embedded system, and second processor that is used for decompressing then can be a digital signal processor 202 common in the embedded system.And because first processor is starting the data-moving action, direct memory access (Direct Memory Access for example, DMA), can proceed other actions in this system boot program, and then effectively shorten the available machine time, and do not need to select for use powerful but expensive microprocessor yet, with the digital television chip example, first processor uses 8051 processors just can be competent at, just and need not use the demand that can satisfy system as high-order processors such as ARM, MIPS.Flash memory 203 can be other nonvolatile memory and finishes, and dynamic random access memory 204 can be other volatile memory.First register 205 and second the register 206 also particular block of useable definition in dynamic random access memory 204 are finished, and it mainly can reach as the communication function as the mailbox to read and write for two or more processors to get final product.So the present invention can be made amendment and changed by those skilled in the art, but does not break away from claim scope required for protection.

Claims (10)

1. a data processing method is applied in the embedded system, and this embedded system includes first processor, second processor, nonvolatile memory and volatile memory at least, and described data processing method comprises the following step:
Described first processor starts data-moving to move, and the packed data unloading that described data-moving action will store in the described nonvolatile memory is to described volatile memory; And
Described second processor decompresses to the described packed data that stores in the described volatile memory and produces a decompressed data and writing in the described volatile memory.
2. data processing method as claimed in claim 1, the described embedded system that it was applied thereon is to can be TV chip group or chip for cell phone group.
3. data processing method as claimed in claim 1, the described first processor that described embedded system included that it was applied thereon, described second processor, described nonvolatile memory and described volatile memory are respectively central processing unit, digital signal processor, flash memory and dynamic random access memory.
4. data processing method as claimed in claim 1, wherein said first processor starts described data-moving action in the system boot program, and described first processor is proceeded other actions in the described system boot program after starting described data-moving action.
5. data processing method as claimed in claim 1, wherein said data-moving action is the direct memory access action.
6. data processing method as claimed in claim 1 also comprises the following step:
First register and second register are set in described embedded system;
Described second processor writes the packed data request to described second register;
Described first processor regularly reads the content in described second register, in order to starting the action of described data-moving according to described packed data request, and after described data-moving action is finished described first register is write and reads parameter; And
Described second processor regularly reads the content in described first register, in order to reading the described packed data that stores in the described volatile memory and decompress, and then produce described decompressed data and write in the described volatile memory according to the described parameter that reads.
7. data processing method as claimed in claim 6, wherein said reading includes the address of described packed data in described volatile memory and big or small information in the parameter.
8. when data processing method as claimed in claim 6, wherein said second processor read the described packed data that stores in the described volatile memory, the action that finishes to decompress in response to finishing character code in the described packed data.
9. data processing method as claimed in claim 6 also comprises the following step:
Described first processor notifies described second processor to be written into and to carry out one section gunzip code, makes described second processor have the operational capability of decompression; And
Described second processor writes described packed data request to described second register.
10. data processing method as claimed in claim 1, the decompression action that wherein said second processor carried out is the LZSS decompression operation.
CN200710162485A 2007-10-15 2007-10-15 Data processing method applied into built-in system Expired - Fee Related CN100578452C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710162485A CN100578452C (en) 2007-10-15 2007-10-15 Data processing method applied into built-in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710162485A CN100578452C (en) 2007-10-15 2007-10-15 Data processing method applied into built-in system

Publications (2)

Publication Number Publication Date
CN101146191A true CN101146191A (en) 2008-03-19
CN100578452C CN100578452C (en) 2010-01-06

Family

ID=39208452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710162485A Expired - Fee Related CN100578452C (en) 2007-10-15 2007-10-15 Data processing method applied into built-in system

Country Status (1)

Country Link
CN (1) CN100578452C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169487A (en) * 2010-02-25 2011-08-31 晨星软件研发(深圳)有限公司 File reading method and embedded system applying same
WO2012113206A1 (en) * 2011-08-15 2012-08-30 展讯通信(上海)有限公司 Demand paging method for mobile terminal, controller and mobile terminal
CN103237244A (en) * 2013-05-13 2013-08-07 无锡北斗星通信息科技有限公司 Vehicle-mounted ATSC (Advanced Television Systems Committee) digital television receiver capable of shortening startup time
CN107229536A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of startup method and system for terminal device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169487A (en) * 2010-02-25 2011-08-31 晨星软件研发(深圳)有限公司 File reading method and embedded system applying same
CN102169487B (en) * 2010-02-25 2013-09-11 晨星软件研发(深圳)有限公司 File reading method and embedded system applying same
WO2012113206A1 (en) * 2011-08-15 2012-08-30 展讯通信(上海)有限公司 Demand paging method for mobile terminal, controller and mobile terminal
CN102792296A (en) * 2011-08-15 2012-11-21 展讯通信(上海)有限公司 Demand paging method for mobile terminal, controller and mobile terminal
US9471584B2 (en) 2011-08-15 2016-10-18 Spreadtrum Communications (Shanghai) Co., Ltd. Demand paging method for mobile terminal, controller and mobile terminal
CN103237244A (en) * 2013-05-13 2013-08-07 无锡北斗星通信息科技有限公司 Vehicle-mounted ATSC (Advanced Television Systems Committee) digital television receiver capable of shortening startup time
CN107229536A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of startup method and system for terminal device

Also Published As

Publication number Publication date
CN100578452C (en) 2010-01-06

Similar Documents

Publication Publication Date Title
TWI601093B (en) Performing scheduling operations for graphics hardware
US7870321B2 (en) Extended computing unit with stand-alone application
US20090100242A1 (en) Data Processing Method for Use in Embedded System
CN101910976B (en) Efficient low power retrieval techniques of media data from non-volatile memory
US8726056B2 (en) Clock control device, clock control method, clock control program and integrated circuit
US9043806B2 (en) Information processing device and task switching method
KR102336528B1 (en) Electronic device having cache memory and method for operating thereof
CN102819457A (en) Method and device for playing multi-media files during start-up period
WO2014069249A1 (en) Display control device, display control method, and program
US20130179670A1 (en) Booting method of multimedia device and multimedia device
CN100578452C (en) Data processing method applied into built-in system
CN109857573B (en) Data sharing method, device, equipment and system
US9424814B2 (en) Buffer display techniques
CN115357389A (en) Memory management method and device and electronic equipment
CN110928574A (en) Microcontroller, interrupt processing chip, device and interrupt processing method
KR102116984B1 (en) Method for controlling memory swap operation and data processing system adopting the same
CN103530105A (en) Information processing apparatus, information processing method, and program
US9197933B2 (en) Display apparatus and method for controlling the same
JP2012243287A (en) Information processing unit and information processing method
CN100556098C (en) Be applied to the font data processing method of embedded system
US6393498B1 (en) System for reducing processor workloads with memory remapping techniques
JP2009009388A (en) Portable terminal equipment and boot processing method thereof
TWI358946B (en) Data for processing font data in embedded system
CN101398757A (en) Man-machine interaction implementing method facing to embedded system
KR100658918B1 (en) Apparatus and method for initialization of system global variables using block input/output command

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200413

Address after: No.1, Duhang 1st Road, Hsinchu City, Hsinchu Science Park, Taiwan, China

Patentee after: MEDIATEK Inc.

Address before: Hsinchu County, Taiwan, China

Patentee before: MSTAR SEMICONDUCTOR Inc.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100106

Termination date: 20211015