摘要
详细论述了数控振荡器的工作原理,介绍了使用DSP实现数控振荡器的功能和产生多路正弦波的方法。该方法基于DSP中断,以中断发生的频率代替数控振荡器的相位累加时钟频率,采用多个相位累加器,在中断服务程序中多次查表输出正弦值,以产生多路正弦波。文中给出了源代码,并分析了在使用DSP产生正弦波时需要设置的一些参数,以及这些参数如何影响该系统的工作情况。
The working principle of NCO ( Numerically Controlled Oscillator) is introduced in this paper, and a method to generate multiple sine waves with DSP using NCO is also presented. This method is based on interrupts of the DSP, and uses the frequency of interrupts as the freqency of phase accumulating clock. It uses several different phase accumulators to look up the sine table and output the values during the ISR (Interrupt Service Routine) to generate multiple sine waves. This paper presents also source codes and analyzes some parameters requiring consideration of, and shows how these parameters affect the operation of this system.
出处
《电子工程师》
2006年第1期25-27,共3页
Electronic Engineer