《太原理工大學(xué)DSP課件課程設(shè)計》由會員分享,可在線閱讀,更多相關(guān)《太原理工大學(xué)DSP課件課程設(shè)計(15頁珍藏版)》請在裝配圖網(wǎng)上搜索。
1、DSP課 程設(shè) 計 設(shè)計題目n正弦信號發(fā)生器的設(shè)計n有限沖擊響應(yīng)FIR濾波器的設(shè)計 n無限沖擊響應(yīng)IIR濾波器的設(shè)計nFFT的DSP實現(xiàn) 設(shè)計報告封皮n設(shè)計題目n班級 n姓名n同組人 設(shè)計報告內(nèi)容一、設(shè)計目的二、設(shè)計內(nèi)容三、設(shè)計原理四、總體方案設(shè)計五、主要參數(shù)六、源程序七、實驗結(jié)果及分析八、設(shè)計總結(jié) )( 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 #STA
2、CK+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
3、 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) MAS
4、R *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
5、-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