CN1517857A - Optical disk control chip and method of renewing its firmware program - Google Patents

Optical disk control chip and method of renewing its firmware program Download PDF

Info

Publication number
CN1517857A
CN1517857A CNA031003885A CN03100388A CN1517857A CN 1517857 A CN1517857 A CN 1517857A CN A031003885 A CNA031003885 A CN A031003885A CN 03100388 A CN03100388 A CN 03100388A CN 1517857 A CN1517857 A CN 1517857A
Authority
CN
China
Prior art keywords
mentioned
memory
macroelement
microprocessor
read
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
CNA031003885A
Other languages
Chinese (zh)
Other versions
CN100363886C (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
MediaTek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MediaTek Inc filed Critical MediaTek Inc
Priority to CNB031003885A priority Critical patent/CN100363886C/en
Publication of CN1517857A publication Critical patent/CN1517857A/en
Application granted granted Critical
Publication of CN100363886C publication Critical patent/CN100363886C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

A control chip of optical disk system is composed of a microprocessor, a decoder, a controller connected to decoder for receiving the control signal and data of optical disk system, an additional memory for storing the execution program of microprocessor, and connected with microprocessor, a DMA access unit for reading the data in external buffer, and a macro unit for receiving the data from DMA unit and writing it to ROM. A method for updating its firmware program by hardware control features that said additional memory is used as the program running space of microprocessor, the control signal is output to DMA unit and macro unit, and the both units are used to write data from buffer to ROM in hardware mode, so updating the program in ROM.

Description

Laser disc system control wafer and firmware program updating method thereof
Technical field
The present invention relates to laser disc system control wafer and firmware program updating method thereof, particularly utilize macroelement and direct memory access (DMA) (DMA) unit to carry out the laser disc system control wafer and the firmware program updating method thereof of firmware update action.
Background technology
See also Fig. 1, Fig. 1 is the control architecture figure of general compact disc system (optical driver is as CD-ROM).As shown in the drawing, this compact disc system 10 utilizes the stored data of optical read head (optical pickup) (being configured in carrier motor and the optical head assembly 102) acquisition CD-RW discsCD-RW (disk), and output radio-frequency (RF) signal (Radio frequency signal).This radio-frequency (RF) signal outputs to demoder (decoder) 114 with signal after handling via radio frequency amplification controller (RF amplifierand controller) 110.Demoder 114 is stored in memory buffer (buffer memory) 116 with decoded signal.Microprocessor (micro-processor) 112 is used for controlling the operation and the function of this compact disc system 10, for example controls the position of radio frequency amplification controller 110, demoder 114, drive shaft motor 101 and control carrier motor and optical head assembly 102 etc.Microprocessor 112 is also connected to a ROM (read-only memory) 118, and in order to read firmware (frimware) information from this ROM (read-only memory) 118, for example the program and instruction carries out the control and the operation of compact disc system 10.The user can utilize the data of main frame 122 via a main frame interface (host interface) 120 read buffer memories 116.
Because the computer industrial development is rapid, the hardware periphery is also fast-developing thereupon, and compact disc system is no exception.For the function and operation energy continuous updating that makes compact disc system, generally be to upgrade the firmware program that is stored in ROM (read-only memory).General compact disc system is that performed refresh routine and the data that will upgrade together are stored in the ROM (read-only memory) when carrying out firmware program updating.The time that this mode will reduce the spendable space of ROM (read-only memory) and increase firmware program updating.
In addition, Taiwan is invented No. 087118506 patent " laser disc system control wafer and its formula update method " and is proposed another kind of update method.Figure 2 shows that the control wafer Organization Chart of this patent.This control wafer 200 comprises an extra memory 202, a microprocessor 204, a demoder 206 and a controller 208.The method that this patent proposes is that the program that will carry out renewal is temporary in extra memory 202, and flash type ROM (ROM (read-only memory)) 210 is considered as a data storage space when upgrading firmware program.This method can not take ROM (read-only memory) 210 spendable spaces, and can increase the speed of firmware program updating.But the method has a shortcoming, that is no matter be the fetch program or data write ROM (read-only memory), handle with software mode by microprocessor, and cause when writing data, microprocessor can't carry out other work, for example carries out data access with main frame.And the address that is calculated extra memory by the microprocessor executive software needs the long time.
Summary of the invention
Because the problems referred to above the purpose of this invention is to provide a kind of laser disc system control wafer and firmware program updating method thereof with macroelement, be used for utilizing this macroelement to carry out the renewal control of firmware program in the hardware controls mode.
For reaching above-mentioned purpose, laser disc of the present invention system control wafer comprises:
One microprocessor is used for controlling the action of this laser disc system;
One demoder by above-mentioned microprocessor control, and is connected to an external buffer memory and a main frame interface;
One controller is controlled by above-mentioned microprocessor, and is connected with above-mentioned demoder, in order to control signal and the data that receives this laser disc system;
One extra memory stores the executive routine or the physical data of above-mentioned microprocessor, and is connected with above-mentioned microprocessor;
One direct storage access (DMA) unit is by above-mentioned microprocessor control, in order to read the data of said external memory buffer;
And a macroelement, by above-mentioned microprocessor control, and receive the data of above-mentioned direct memory access (DMA) unit output, and this data is write ROM (read-only memory);
Wherein, this laser disc system control wafer is when upgrading the ROM (read-only memory) data, be with the programmed working space of above-mentioned extra memory as above-mentioned microprocessor, and this microprocessor exports control signal to above-mentioned direct memory access (DMA) unit and macroelement, utilizes this macroelement and direct memory access (DMA) unit with hardware mode the data of above-mentioned memory buffer to be write above-mentioned ROM (read-only memory).
This ROM (read-only memory) is the flash type ROM (read-only memory).
This laser disc system control wafer is when upgrading the program of ROM (read-only memory), and the reference position of above-mentioned microprocessor output buffer storage and data length are to above-mentioned direct memory access (DMA) unit.
This laser disc system control wafer is when upgrading the program of ROM (read-only memory), and above-mentioned microprocessor output beginning burning signal and end burning signal are given above-mentioned macroelement.
This laser disc system control wafer is when upgrading the program of ROM (read-only memory), and above-mentioned microprocessor receives the internal state signal of above-mentioned macroelement, in order to the action of monitoring macroelement.
A kind of laser disc system firmware method for updating program, the firmware program that in the hardware controls mode desire is upgraded via a macroelement and direct memory access (DMA) unit is write in the ROM (read-only memory) by a memory buffer, and this method comprises the following step:
Be written into refresh routine, refresh routine is written into an extra memory,, carry out the refresh routine of this extra memory by a microprocessor in order to when carrying out more new element;
The loader code, the firmware program that desire is upgraded is written into above-mentioned memory buffer;
Set direct memory access (DMA) unit and macroelement, calculate the reference position that firmware program is stored in above-mentioned memory buffer by above-mentioned microprocessor, and the length of this firmware program, and with reference position and length input direct memory access (DMA) unit, and the initial address of above-mentioned ROM (read-only memory) is set in above-mentioned macroelement;
Program code writes, produce commencing signal by above-mentioned microprocessor and give above-mentioned macroelement and direct memory access (DMA) unit, read data and pass to above-mentioned macroelement from above-mentioned memory buffer in order to drive above-mentioned direct memory access (DMA) unit, this macroelement is about to data and writes in the above-mentioned ROM (read-only memory);
Finish more new element,, produce end signal by above-mentioned emblem processor and give macroelement and direct memory access (DMA) unit,, and switch to the general operation pattern in order to the action of Stop Macro unit and direct memory access (DMA) unit when program code has write when finishing.
Laser disc system firmware method for updating program also comprises monitoring macroelement state, by the internal state of above-mentioned this macroelement of microprocessor monitors.
Because the program code write activity is program code to be write in the ROM (read-only memory) in the hardware controls mode by macroelement and DMA unit, so speed is faster than the mode of utilizing the computed in software address.And, since the program code write activity be by macroelement and DMA unit in the hardware controls mode, microprocessor can also be handled other work after monitoring the macroelement state, for example transmit data via main frame interface and main frame, or report writing progress and state.
Description of drawings
Fig. 1 is the control architecture figure of general compact disc system;
Fig. 2 is the control wafer Organization Chart of known laser disc system;
Fig. 3 is a laser disc of the present invention system control wafer Organization Chart;
Fig. 4 is that the data of laser disc system's control wafer of the present invention when general operation flows to;
Fig. 5 is that the data of laser disc system's control wafer of the present invention when carrying out data updating flows to;
Fig. 6 is the process flow diagram of laser disc system's control wafer of the present invention when the firmware update pattern.
Embodiment
Below with reference to graphic detailed description laser disc of the present invention system's control wafer and firmware program updating method thereof.
Fig. 3 is the Organization Chart of laser disc of the present invention system control wafer.As shown in the drawing, this control wafer 300 comprises an extra memory 302, a microprocessor 304, a demoder 306, a controller 308, a macroelement 310 and a DMA unit 312.This control wafer 300 has the function of the firmware program that upgrades the laser disc system, and this firmware program is stored in ROM (read-only memory) 210.This ROM (read-only memory) 210 can be the flash memory (flash ROM) or the codified ROM (read-only memory) (EEPROM) of electrically can erasing.As shown in Figure 3, macroelement 310 and DMA unit 312 be known laser disc system control wafer do not possess, remaining extra memory 302, microprocessor 304, demoder 306 and controller 308 are identical with the Organization Chart of the laser disc system control wafer of Fig. 2.
Macroelement 310 is by microprocessor 304 controls, when upgrading firmware program, be used for reading the data of cache 212 via DMA unit 312, and with the data that read with specific command sequence, as the instruction of erasing (Erase Command), reading command (Read Command), write instruction (Write Command), comparison order (Compare Command) etc., write ROM (read-only memory) 210.DMA unit 312 also by microprocessor 304 controls, is used for the data of memory buffer 212 is passed to macroelement 310 when upgrading firmware program.
When laser disc system update firmware program, the program that the laser disc system can will carry out microprocessor 304 earlier is temporarily stored in extra memory 302, and the firmware program that will upgrade is stored in memory buffer 212.Therefore, when the laser disc system when upgrading firmware program, microprocessor 304 is programs of carrying out extra memory 302, and outputs a control signal to macroelement 310 and DMA unit 312, can be carried out the more new element of firmware program by macroelement 310 and DMA unit 312.And when macroelement 310 when carrying out more new element, 304 internal states that need monitoring macroelement 310 of microprocessor, all the other times can be carried out other actions with main frame 216.Because when the more new element of firmware program was carried out in macroelement 310 and DMA unit 312, macroelement 310 and DMA unit 312 were to carry out reading and writing of data with hardware mode, so execution speed Billy is fast with the mode of computed in software address.
When the laser disc system did not upgrade the firmware data, the laser disc system switched to the general operation pattern.And when the laser disc system will upgrade firmware program, the laser disc system switched to the firmware update pattern.Generally speaking, after booting computer was reset, the microprocessor 204 of laser disc system can be with CD-ROM device, as CD-ROM, and initial beginningization in addition, and the order request of wait host computer 216 reads data from video disc 100.After the order that host computer 216 requires to read video disc 100 data is sent, microprocessor 304 is just sent correct parameter and is controlled controller 308 and demoder 306, reads the stored data of video disc 100 in order to drive motor in the laser disc system and optical read head.The data of video disc 100 just via demoder 306 decoded with error correction (errorcorrection) after, put into memory buffer (DRAM) 312.Therefore, computer 216 just can see through main frame interface 214, reads the data that is placed in the memory buffer 212 via demoder 306.At this moment, extra memory 302 is intended for the memory space of physical data, and ROM (read-only memory) 210 is the memory spaces as system program.
Fig. 4 shows that the data of laser disc system's control wafer of the present invention when the general operation pattern flows to.As shown in the drawing, because in the general operation pattern, the laser disc system be with ROM (read-only memory) 210 as the program storage area, give ROM (read-only memory) 210 and send the firmware control signal by microprocessor 304, the program data that reads ROM (read-only memory) 210 is controlled the action of laser disc system.Therefore, when the general operation pattern, macroelement 310 and DMA unit 3 12 are to be in idle state (Idle).When the general operation pattern, the action of this laser disc system control wafer is identical with prior art, no longer repeated description.
When the laser disc system need upgrade firmware program in the ROM (read-only memory) 210, have as contents table (TableOf Content, the refresh routine of special format data TOC) can be placed in the laser disc system or by host computer 216 ends in the video disc mode and carry out a certain specific refresh routine software.Contents of program comprises a program code (program code) and a refresh routine (update program routine).At this moment, extra memory 302 will be used for placing from video disc 100 or the refresh routine that is written into by computer 216 ends, and the program code part is then stored earlier in memory buffer 212.
Fig. 5 shows that the data of laser disc system's control wafer of the present invention when the firmware update pattern flows to.As shown in the drawing, when the laser disc system switches to the firmware update pattern, the laser disc system be with extra memory 302 as the program storage location, and instruct the action of controlling DMA unit 312 and macroelement 310 from these 302 fetch programs of extra memory by microprocessor 304.That is at the beginning of firmware update, microprocessor 304 is from 302 fetch programs of extra memory instructions, and calculates program code storage that desire upgrades in the reference position of memory buffer 212 and the length of program code, and exports this information to DMA unit 312.Afterwards, microprocessor 304 is sent enabling signal to macroelement 310, by the program code of macroelement 310 beginnings via DMA unit 312 read buffer memories 212, and writes ROM (read-only memory) 210.Because DMA unit 312 can be according to the length of the reference position of microprocessor 304 and program code in regular turn from buffering storer 212 program code reads, and export to macroelement 3 10.Therefore, the laser disc system does not need to be calculated by microprocessor 304 address of memory buffer 212 when upgrading firmware program code.And when macroelement 310 is writing data during the ROM (read-only memory) 210, microprocessor 304 can be monitored the internal state of macroelement 310 at any time, and when firmware program updating finished, the output stop signal was given macroelement 310 and DMA unit 312.
The action of macroelement 310 comprises: read data, output address, output data and output write control signal from DMA unit 312 to ROM (read-only memory) 210.
Fig. 6 shows the process flow diagram of laser disc system's control wafer of the present invention when the firmware update pattern.As shown in the drawing, the step of laser disc system control wafer when the firmware update pattern comprises:
Step S602: be written into refresh routine.By 216 controls of microprocessor 304 or main frame refresh routine is written into extra memory 302,, carries out the program of these extra memory 302 by microprocessor 304 in order to when carrying out more new element.
Step S604: loader code.The program code (firmware program) that desire is upgraded by microprocessor 304 or main frame 216 controls is written into memory buffer 212.
Step S606: set DMA unit 312 and macroelement 310.Be stored in the reference position of memory buffer 212 by microprocessor 304 calculation procedure codes, and the total length of this program code, and reference position and length are passed to DMA unit 312.In addition, the initial address of the purpose of ROM (read-only memory) 210 is set in macroelement 310.
Step S608: carry out the program code write activity.Produce commencing signal by microprocessor 304 and give macroelement 310 and DMA unit 312.After commencing signal was received in macroelement 310 and DMA unit 312, promptly from cushioning storer 212 read routine codes and passing to macroelement 310, macroelement 310 was about to program code and writes in the ROM (read-only memory) 210 in DMA unit 312.
Step S610: monitoring macroelement state.By the internal state of microprocessor 304 monitoring macroelements 3 10, in order to the action of machine control macroelement 310 in due course.For example, when macroelement 310 is wrong or when program code, write when finishing.
Step S612: switch to the general operation pattern.When program code has write when finishing, produce end signals by microprocessor 304 and give macroelement 310 and DMA unit 312, in order to the action of Stop Macro unit 310, and switch to the general operation pattern with DMA unit 312.
In above-mentioned step S608, because the program code write activity is program code to be write in the ROM (read-only memory) 210 in the hardware controls mode by macroelement 310 and DMA unit 312, so speed is faster than the mode of utilizing the computed in software address.And, since the program code write activity be by macroelement 310 and DMA unit 312 in the hardware controls mode, microprocessor 304 can also be handled other work after monitoring macroelement 310 states, for example via main frame interface 214 and main frame 216 transmission data, or report writing progress and state.
Though more than with embodiment the present invention is described, therefore do not limit scope of the present invention, only otherwise break away from main idea of the present invention, the sector person can carry out various distortion or change.

Claims (7)

1, a kind of laser disc system control wafer has the function of the ROM (read-only memory) data of the laser disc system of renewal, and this laser disc system control wafer comprises:
One microprocessor is used for controlling the action of this laser disc system;
One demoder by above-mentioned microprocessor control, and is connected to an external buffer memory and a main frame interface;
One controller is controlled by above-mentioned microprocessor, and is connected with above-mentioned demoder, in order to control signal and the data that receives this laser disc system;
One extra memory stores the executive routine or the physical data of above-mentioned microprocessor, and is connected with above-mentioned microprocessor;
It is characterized in that also comprising:
One direct storage access (DMA) unit is by above-mentioned microprocessor control, in order to read the data of said external memory buffer; And
One macroelement by above-mentioned microprocessor control, and receives the data that above-mentioned direct memory access (DMA) unit is exported, and this data is write ROM (read-only memory);
Wherein, this laser disc system control wafer is when upgrading the ROM (read-only memory) data, be with the programmed working space of above-mentioned extra memory as above-mentioned microprocessor, and this microprocessor exports control signal to above-mentioned direct memory access (DMA) unit and macroelement, utilizes this macroelement and direct memory access (DMA) unit with hardware mode the data of above-mentioned memory buffer to be write above-mentioned ROM (read-only memory).
2, laser disc according to claim 1 system control wafer, it is characterized in that: this ROM (read-only memory) is the flash type ROM (read-only memory).
3, laser disc according to claim 1 system control wafer, it is characterized in that: this laser disc system control wafer is when upgrading the program of ROM (read-only memory), and the reference position of above-mentioned microprocessor output buffer storage and data length are to above-mentioned direct memory access (DMA) unit.
4, laser disc according to claim 3 system control wafer is characterized in that: this laser disc system control wafer when upgrading the program of ROM (read-only memory), above-mentioned microprocessor output beginning burning signal and finish the burning signal and give above-mentioned macroelement.
5, laser disc according to claim 4 system control wafer, it is characterized in that: this laser disc system control wafer is when upgrading the program of ROM (read-only memory), and above-mentioned microprocessor receives the internal state signal of above-mentioned macroelement, in order to the action of monitoring macroelement.
6, a kind of laser disc system firmware method for updating program, be to write in the ROM (read-only memory) by a memory buffer, it is characterized in that this method comprises the following step via the firmware program that a macroelement and direct memory access (DMA) unit upgrade desire in the hardware controls mode:
Be written into refresh routine, refresh routine is written into an extra memory,, carry out the refresh routine of this extra memory by a microprocessor in order to when carrying out more new element;
The loader code, the firmware program that desire is upgraded is written into above-mentioned memory buffer;
Set direct memory access (DMA) unit and macroelement, calculate the reference position that firmware program is stored in above-mentioned memory buffer by above-mentioned microprocessor, and the length of this firmware program, and with reference position and length input direct memory access (DMA) unit, and the initial address of above-mentioned ROM (read-only memory) is set in above-mentioned macroelement;
Program code writes, produce commencing signal by above-mentioned microprocessor and give above-mentioned macroelement and direct memory access (DMA) unit, read data and pass to above-mentioned macroelement from above-mentioned memory buffer in order to drive above-mentioned direct memory access (DMA) unit, this macroelement is about to data and writes in the above-mentioned ROM (read-only memory);
Finish more new element,, produce end signal by above-mentioned emblem processor and give macroelement and direct memory access (DMA) unit,, and switch to the general operation pattern in order to the action of Stop Macro unit and direct memory access (DMA) unit when program code has write when finishing.
7, laser disc system firmware method for updating program according to claim 6 is characterized in that: also comprise monitoring macroelement state, by the internal state of above-mentioned this macroelement of microprocessor monitors.
CNB031003885A 2003-01-16 2003-01-16 Optical disk control chip and method of renewing its firmware program Expired - Fee Related CN100363886C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031003885A CN100363886C (en) 2003-01-16 2003-01-16 Optical disk control chip and method of renewing its firmware program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031003885A CN100363886C (en) 2003-01-16 2003-01-16 Optical disk control chip and method of renewing its firmware program

Publications (2)

Publication Number Publication Date
CN1517857A true CN1517857A (en) 2004-08-04
CN100363886C CN100363886C (en) 2008-01-23

Family

ID=34281154

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031003885A Expired - Fee Related CN100363886C (en) 2003-01-16 2003-01-16 Optical disk control chip and method of renewing its firmware program

Country Status (1)

Country Link
CN (1) CN100363886C (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW392109B (en) * 1998-11-06 2000-06-01 Mediatek Inc IC chip for controlling optical disk system and program update method of the same
US6170043B1 (en) * 1999-01-22 2001-01-02 Media Tek Inc. Method for controlling an optic disk

Also Published As

Publication number Publication date
CN100363886C (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN1497447A (en) Method for updating firmware of optical disk system
US6125435A (en) Alignment of cluster address to block addresses within a semiconductor non-volatile mass storage memory
CN110908925B (en) High-efficiency garbage collection method, data storage device and controller thereof
JP4777263B2 (en) Mass storage accelerator
US7526598B2 (en) Efficient flash memory device driver
JP4588431B2 (en) Faster write operations to non-volatile memory due to the operation of frequently accessed sectors
US7925828B2 (en) Magnetic disk drive refreshing data written to disk and data refreshment method applied to magnetic disk drive
US7774540B2 (en) Storage system and method for opportunistic write-verify
KR100801015B1 (en) Hybrid hard disk drive and data storing method
US20070016721A1 (en) Flash file system power-up by using sequential sector allocation
US20060282558A1 (en) Control chip for optical disk drive and method for updating firmware in the control chip
JP2007193441A (en) Storage device using nonvolatile cache memory, and control method therefor
CN111880723A (en) Data storage device and data processing method
CN117369729B (en) Additional writing implementation method of ZNS SSD
CN111338562B (en) Data storage device and data processing method
CN1517857A (en) Optical disk control chip and method of renewing its firmware program
US7600062B2 (en) Method and apparatus for micro-code execution
CN1221885C (en) Method and device for rewriting program carried in disc drive
CN112099731B (en) Data storage device and data processing method
US7428612B2 (en) Magnetic disk drive and method for controlling write operation
US9058280B1 (en) Hybrid drive migrating data from disk to non-volatile semiconductor memory based on accumulated access time
US8468321B2 (en) Method relocating code objects and disc drive using same
CN1749971A (en) Improving service life of internal or external storage by using long lift non-volatile storage chip
CN111966606A (en) Data storage device and data processing method
CN111596859A (en) Data storage device and data processing method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080123

Termination date: 20160116

EXPY Termination of patent right or utility model