针对目前DSP的算法开发主要依赖手工编写C代码,不但工作量大,而且程序的下载依赖于专门的昂贵的仿真器的问题,在此提出了基于Matlab/Simulink环境的DSP算法开发,并利用串口通信实现程序下栽的综合方案.该方案能很好地利用Matlab现有的功能模块,大大降低了DSP的算法开发难度,利用RTW技术,可将算法自动生成C代码.利用串口通信下载调试程序,方便有效,节约了系统开发的成本.经实验验证,利用该方案缩短了算法开发的周期,结果可靠,成本低.%To reduce developers' heavy burden of programming C code for developing control algorithms and emulator of downloading program, a method of Matlab/Simulink-based rapid DSP algorithm development and program downloading by serial communication is proposed. The existing blocks in Matlab is adopted to build control module, which generates directly executable codes through real-time function of Matlab. Downloading code can reduce the cost. The experiment show that the method can shorten the periods for developing algorithms, reduce the cost, and is reliable.
展开▼