资源描述
DSP课 程设 计 设计题目n正弦信号发生器的设计n有限冲击响应FIR滤波器的设计 n无限冲击响应IIR滤波器的设计nFFT的DSP实现 设计报告封皮n设计题目n班级 n姓名n同组人 设计报告内容一、设计目的二、设计内容三、设计原理四、总体方案设计五、主要参数六、源程序七、实验结果及分析八、设计总结 )( 981761541321 !9!7!5!3)sin( 2222 9753 xxxxx xxxxxx 例:求一个角度的正弦值 .mmregs .def start .def sin_start, d_x, d_sinxSTACK: .usect STACK,10 start: STM #STACK+10,SP LD #d_x, DP ST #6487H, d_x CALL sin_startend: B end sin_start: .def sin_startd_coeff .usect coeff,4 .datatable: .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,1d_squr_x .usect sin_vars,1d_temp .usect sin_vars,1d_sinx .usect sin_vars,1c_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=x2ST A,*AR2 ;(AR2)=x2 |LD *AR4,B ;B=1MASR *AR2+,*AR3+,B,A ;A=1-x2/72,T=x2MPYA A ;A=T*A=x2(1-x2/72)STH A,*AR2 ;(d_temp)=x2(1-x2/72) 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=1MASR *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=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
展开阅读全文