首页 | 本学科首页   官方微博 | 高级检索  
     检索      

一种基于DSP的数字振荡器的实现方式
引用本文:李方健,曾浩.一种基于DSP的数字振荡器的实现方式[J].重庆职业技术学院学报,2008,17(2):151-154.
作者姓名:李方健  曾浩
作者单位:1. 重庆电子工程职业学院通信工程系,重庆,401331
2. 重庆大学通信学院,400044
摘    要:常规的产生正弦信号的方法是将某个频率的正弦/余弦值预先计算出来后制成一个表,DSP工作时仅作查表运算即可。利用定时器产生一个2kHz的正弦信号,定时器被设置成每50uS产生一次中断(等效于采样速率为20K),利用该中断,在中断服务程序中用叠代算法计算出一个SIN值,并利用CCS的图形显示功能查看该波形。中断矢量表用汇编语言编辑,主程序和中断服务程序使用C语言编写。

关 键 词:定时器  中断  数字振荡器  DSP
文章编号:1672-0067(2008)02-0151-04
修稿时间:2008年3月1日

A Realization Method of Digital Oscillator Based on DSP
LI Fangjian,ZENG Hao.A Realization Method of Digital Oscillator Based on DSP[J].Journal of Chongqing Vocational& Technical Institute,2008,17(2):151-154.
Authors:LI Fangjian  ZENG Hao
Abstract:A regular method to produce sinusoidal signal is to make a form after working out sinusoidal quantity and cosine quantity in advance,and then the table look-at and operation is available when DSP works.This essay has briefly introduced the way to produce sinusoidal signal by digital oscillator:Using 2KHz sinusoidal signal produced by timer,which is set at an interrupt per 50us(equaling the sample rate of 20k);Therefore through the interrupt sinusoidal quantity is worked out in the interrupt service program by iteration technique;And waveform can be searched using graphic display feature.Interrupt vector form is edited by assembly language,while main routine and interrupt service routine are edited by C language.
Keywords:timer  interrupt  digital oscillator  DSP  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号