1、DSP课程设计,设计题目,正弦信号发生器的设计 有限冲击响应FIR滤波器的设计 无限冲击响应IIR滤波器的设计 FFT的DSP实现,设计报告封皮,设计题目 班级 姓名 同组人,设计报告内容,一、设计目的 二、设计内容 三、设计原理 四、总体方案设计 五、主要参数 六、源程序 七、实验结果及分析 八、设计总结,求一个角度的正弦值,取泰勒级数的前5项,得近似计算式:,例:求一个角度的正弦值,.mmregs .def start .def sin_start, d_x, d_sinx STACK: .usect “STACK“,10start: STM #STACK+10,SP LD #d_x, D
2、P ST #6487H, d_x CALL sin_start end: B end,sin_start: .def sin_start d_coeff .usect “coeff“,4 .data table: .word 01C7H ;C1=1/(8*9) .word 030BH ;C2=1/(6*7) .word 0666H ;C3=1/(4*5) .word 1556H ;C4=1/(2*3) d_x .usect “sin_vars“,1 d_squr_x .usect “sin_vars“,1 d_temp .usect “sin_vars“,1 d_sinx .usect “si
3、n_vars“,1 c_l .usect “sin_vars“,1,.text SSBX FRCT STM #d_coeff, AR5 RPT #3 MVPD #table,*AR5+ STM #d_coeff, AR3 STM #d_x,AR2 STM #c_l,AR4 ST #7FFFH,c_l,SQUR *AR2+,A ;A=x2 ST A,*AR2 ;(AR2)=x2 |LD *AR4,B ;B=1 MASR *AR2+,*AR3+,B,A ;A=1-x2/72,T=x2 MPYA A ;A=T*A=x2(1-x2/72) STH A,*AR2 ;(d_temp)=x2(1-x2/72
4、) MASR *AR2-,*AR3+,B,A ;A=1-X2/42(1-X2/72),T=x2(1-x2/72),MPYA *AR2+ ;B=x2(1-x2/42(1-x2/72) ST B,*AR2 ;(d_temp)=x2(1-x2/42(1-x2/72) |LD *AR4,B ;B=1 MASR *AR2-,*AR3+,B,A ;A=1-x2/20(1-x2/42(1-x2/72)MPYA *AR2+ ;B=x2 (1-x2/20(1-x2/42(1-x2/72) ST B,*AR2 ; (d_temp)=B |LD *AR4,B ;B=1,MASR *AR2-,*AR3+,B,A ;A
5、=1-x2/6(1-x2/20(1-x2/42(1-x2/72) MPYA d_x ;B=x(1-x2/6(1-x2/20(1-x2/42(1-x2/72) STH B,d_sinx ;sin(theta) RET .end,MEMORY PAGE 0: EPROM: org=0E000H, len=1000H VECS: org=0FF80H, len=0080H PAGE 1: SPRAM: org=0060H, len=0020H DARAM: org=0080H, len=0010H ,SECTIONS .text :EPROM PAGE 0 .data :EPROM PAGE 0 STACK :SPRAM PAGE 1 sin_vars :DARAM PAGE 1 coeff :DARAM PAGE 1 .vectors :VECS PAGE 0 ,