0% found this document useful (0 votes)
12 views

CONV

This program performs linear convolution of two sequences x(n) and h(n) using a TMS320C50. It loads the address pointers for x(n), h(n), and the output y(n) sequences. It then performs the convolution operation by multiplying corresponding samples of x(n) and h(n) over N1 iterations and accumulating the results into y(n). The input sequences x(n) and h(n) and output sequence y(n) are also specified.

Uploaded by

Sarvesh Varan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

CONV

This program performs linear convolution of two sequences x(n) and h(n) using a TMS320C50. It loads the address pointers for x(n), h(n), and the output y(n) sequences. It then performs the convolution operation by multiplying corresponding samples of x(n) and h(n) over N1 iterations and accumulating the results into y(n). The input sequences x(n) and h(n) and output sequence y(n) are also specified.

Uploaded by

Sarvesh Varan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

.

; A) PROGRAM TO PERFORM LINEAR CONVOLUTION OF TWO


SEQUENCES USING TMS320C50

.MMREGS
.TEXT
START:
LDP #02H
LAR AR1,#8100H ; x(n) datas
LAR AR0,#8200H ;h(n) datas
LAR AR3,#8300H ;y(n) starting
LAR AR4,#0007 ;N1+N2-1
;to fold the h(n) values
LAR AR0,#08203H
LACC #0C100H
MAR *,AR0
RPT #3
TBLW *-
;padding of zerros for x(n) values
LAR AR6,#8104H
MAR *,ar6
LACC #0H
RPT #3H
SACL *+
;convalution operation starts
LOP: MAR *,AR1
LACC *+
SACL 050H ;starting of the scope of multiplication
LAR AR2,#0153H ; end of the array, to be multiplied with h(n) {150+N1-1}
MAR *,AR2
ZAP
RPT #03H ;N1-1 times so that N1 times
MACD 0C100H,*-
APAC ;to accmulate the final product sample
MAR *,AR3
SACL *+
MAR *,AR4
BANZ LOP,*-

H: B H
INPUT AND OUTPUT SEQUENCE

;INPUT ( x(n) )

;8100 - 1
;8101 - 3
;8102 - 1
;8103 - 3

;INPUT ( h(n) )

; 8200 - 0
; 8201 - 1
; 8202 - 2
; 8203 - 1

;OUTPUT ( y(n) )

; 8300 - 0
; 8301 - 1
; 8302 - 5
; 8303 - 8
; 8304 - 8
; 8305 - 7
; 8306 - 3

You might also like