1. Field of Invention
The present invention relates to a device and method for digital signal processor (DSP) code downloading, and more particularly the present invention relates to a DSP code download device for downloading DSP code from a re-programmable memory to a memory.
2. Description of Related Art
The present invention providing a device and method for updating DSP code comprises a Servo system control code. A DSP code download device is used to download a DSP code stored in a re-programmable memory, such as a flash memory, and then store the DSP code in a random access memory (RAM) coupled to the DSP. Accordingly, when the DSP code needs to be updated or corrected, it is only necessary to program the re-programmable memory with the required version of DSP code rather than to manufacture a new control chip.
In addition, the present invention utilizing a circuitry for downloading the DSP code. Therefore, the DSP code is efficiently downloaded and stored in the RAM when the power of a peripheral device is turned on.
Moreover, the present invention providing a peripheral device of an optoelectronic system capable of reprogramming a digital signal processor (DSP) in the optoelectronic system. The peripheral device downloads a program code from a re-programmable memory to a memory device built into the peripheral device. In this way, the peripheral device is programmed and initiated efficiently.
According to the present invention, a DSP code download device within a control chip for downloading a DSP code comprises a Servo system control code from a re-programmable memory to a memory is provided. The DSP code download device includes a re-programmable memory reader for downloading the DSP code, a download procedure controller coupled to the re-programmable memory reader, and a memory accessor coupled to the download procedure controller for accessing the memory.
According to the present invention, a control chip is provided. The control chip is coupled to a re-programmable memory in which a DSP code comprises a Servo system control code is stored. The control chip includes a DSP, a memory device coupled to the DSP, and a DSP code download device for downloading the DSP code to the memory.
According to the present invention, a method for updating a digital signal processor (DSP) code comprises a Servo system control code for controlling a Servo system of a optoelectronic system comprising of downloading the DSP code stored in the first memory to a second memory according to a pointer stored in the first memory for indicating an initial address and a code size of the DSP code. The downloaded DSP code is further decrypted and a read checksum value is calculated. Then, the decrypted DSP code is read and a write checksum value is calculated. The read and write checksum values are then compared with a predetermined checksum value for checking errors.
According to the present invention, a peripheral device of a optoelectronic system capable of reprogramming a digital signal processor (DSP) in the optoelectronic system is provided The peripheral device includes a first memory, a code downloading device, and a second memory. The first memory is for storing a first program code comprises a Servo system control code; the code downloading device coupled to the first memory is for downloading the first program code and outputting a second program code; and the second memory coupled to the code downloading device is for receiving the second program code from the code downloading device. The DSP is operative with the second program code when the program code in the second memory passes a verification test performed by the code downloading device.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. The description is made with reference to the accompanying drawings in which:
Another feature of the present invention is the utilization of a circuit, the DSP code download device 240, to download the DSP code required by the DSP from the flash memory 230 to the RAM 210. After the DSP code comprises the Servo system control code is downloaded and stored in the RAM 210, the DSP is operative with the DSP code when the DSP code in the RAM 210 passes a verification test performed by the DSP code downloading device 240.
Next, in step 42, the DSP code is downloaded and decrypted, and then a read checksum value is calculated. The download procedure controller 310 shown in
In step 44, a write checksum value is calculated. The RAM accessor 320 reads the decrypted DSP code already stored in the RAM 210 through the DSP 220 and calculates a write checksum value for checking whether the RAM 210 receives a correct DSP code. In step 46, the read and write checksum values are stored for an initial check and the DSP code download process is completed. By comparing the predetermined checksum value with the read checksum value, it can be determined whether the DSP code contains errors as a result of download and decryption processes. In addition, by comparing the predetermined checksum value with the write checksum value, it can be ascertained whether the DSP code is erroneous in the writing process. Moreover, the comparisons can be performed by firmware, resulting in a faster determination as compared with other implementations. If errors are found, it means that the initiation process fails. If no errors are found, the DSP 220 is initiated successfully and the DSP 220 begins to operate according to the DSP code stored in the RAM 210.
Unlike the example one, the DSP code download device 540 in the example two is directly connected to the RAM 510 bypassing the DSP 520. With regard to the method for downloading the DSP code and each functional block in the example two, they are similar to that of the example one. Thus, their details will not be described for the sake of brevity.
The present invention utilizes a re-programmable memory, such as a flash memory, to store the DSP code. A circuitry is used for downloading the DSP code each time a peripheral device is activated. A DSP code download device downloads the DSP code stored in the re-programmable memory to a RAM in a control chip of the peripheral device. The DSP code stored in the re-programmable memory is further encrypted for security, and read and write checksum values are used for checking whether the downloaded DSP code is correct or not. According to the present invention, the DSP code that the DSP executes previously can be replaced with a required version by changing the DSP code stored in the flash memory. Thus, whenever a newer version is released or a specific version for replacing the DSP code having errors is available, this required version of DSP code can replace the version of DSP code used previously in an efficient and cost effective approach.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
88121611 | Dec 1999 | TW | national |
This application is a continuation-in-part (CIP) application of the application “DEVICE AND METHOD FOR DIGITAL SIGNAL PROCESSOR CODE DOWNLOADING” with the application Ser. No. 09/697,295, and this application incorporates by reference Taiwanese application serial No. 88121611, filed Dec. 9th, 1999.
Number | Date | Country | |
---|---|---|---|
Parent | 09697295 | Oct 2000 | US |
Child | 10876344 | Jun 2004 | US |