Joke Collection Website - Talk about mood - DSP algorithm transplantation problem, I hope to talk about it in detail

DSP algorithm transplantation problem, I hope to talk about it in detail

First of all, it depends on whether the code is assembly or C. It is more difficult to transplant assembly, so C code is usually transplanted.

The C code itself is relatively portable. What you need to pay attention to for different DSPs are:

1. Is the new DSP floating point or fixed point? Floating point changes There are many problems and it needs to be recalibrated.

2. What is the rate of DSP? This is very important in the control system and is directly related to the allocation of time resources (such as cycle interruption time) and the adjustment of some parameters (such as PI parameters, etc.)

3. The DSP initialization settings in the program need to be changed

4. The header files and library files need to be adjusted accordingly

5. The CMD file needs to be adjusted (related to address allocation)

6. The interrupt vector needs to be adjusted

7. When the storage space is insufficient, the code needs to be streamlined

In general, "DSP algorithm transplantation" means changing The execution environment of the algorithm and the C code itself do not need to be modified too much. What I have done is transplanting the 2812 code to 6713. I hope my experience will be helpful to you.