亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example 6-12.asm

?? 《基于TI DSP的通用算法實現》程序代碼
?? ASM
字號:

; Example 6 - 12. DLMS Implementation ASM Listing for the TMS320C54x DSP

; TEXAS INSTRUMENTS INCORPORATED
; DSP Data Communication System Development / ASP
;;
; Archives: PVCS
; Filename: adapt.asm
; Version: 1.0
; Status : draft ( )
; proposal (X)
; accepted ( ) dd–mm–yy/?acceptor.
;
; AUTHOR Padma P. Mallela
;
; Application Specific Products
; Data Communication System Development
; 12203 SW Freeway, MS 701
; Stafford, TX 77477
;
;{
; IPR statements description (can be collected).
;}
;(C) Copyright 1996. Texas Instruments. All rights reserved.
;
;{
; Change history:
;
; VERSION DATE / AUTHORS COMMENT
; 1.0 July–24–96 / P.Mallela original created
;
;}
;{
; 1. ABSTRACT
;
; 1.1 Function Type
; a.Core Routine
; b.Subroutine
;
; 1.2 Functional Description
; This file contains two subroutines:
; 1) adapt_init
; 2) adapt_task
; 1.3 Specification/Design Reference (optional)
; called by task.asm depending upon the task
;
; 1.4 Module Test Document Reference
; Not done
;
; 1.5 Compilation Information
; Compiler: TMS320C54X ASSEMBLER
; Version: 1.02 (PC)
; Activation: asm500 –s adapt.asm
;
; 1.6 Notes and Special Considerations
; –
;}
;{
; 2. VOCABULARY
;
; 2.1 Definition of Special Words, Keywords (optional)
; –
SPRA673
64 TMS320C54x Application Code Examples
Example 16. Adaptive Filtering Using LMS Instruction (Continued)
; 2.2 Local Compiler Flags
; –
; 2.3 Local Constants
; –
;}
;{
; 3. EXTERNAL RESOURCES
;
; 3.1 Include Files
	.mmregs
	.include ”main.inc”
	
; 3.2 External Data
; .ref ADAPT_DP
	.ref d_mu,d_error,d_primary,d_output,d_mu,d_mu_e,d_new_x
	.ref scoff,hcoff,wcoff
	.ref xh,xw,d_adapt_count
	
	
	
; 3.3 Import Functions
;}
;{
; 4. INTERNAL RESOURCES
;
; 4.1 Local Static Data
; –
; 4.2 Global Static Data
; –
; 4.3 Dynamic Data
; –
; 4.4 Temporary Data
; –
; 4.5 Export Functions
.def adapt_init,adapt_task
;}
; 5. SUBROUTINE CODE
; HeaderBegin
;==============================================================================
;
; ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––—
; 5.1 adapt_init
;
; 5.1.1 Functional Description
;
; This subroutine moves filter coeffcients from program to data space.
; Initializes the adaptive coefficients, buffers,vars,and sets the circular
; buffer address for processing.
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
;
; 5.1.2 Activation
; Activation example:
; CALL adapt_init
; Reentrancy: No
; Recursive : No
;
; 5.1.3 Inputs
; NONE
;
; 5.1.4 Outputs
; NONE
;
; 5.1.5 Global
; Data structure: AR0
; Data Format: 16–bit index pointer
; Modified: No
; Description: uses in circular addressing mode for indexing
;
; Data structure: AR1
; Data Format: 16–bit pointer
; Modified: Yes
; Description: used in initializing buffers and vars
;
; Data structure: AR3
; Data Format: 16–bit x(n) data buffer pointer for H(z)
; Modified: Yes
; Description: initializes the pointer
;
; Data structure: AR5
; Data Format: 16–bit x(n) data buffer pointer for W(z)
; Modified: Yes
; Description: initializes the pointer
;
; 5.1.6 Special considerations for data structure
; –
; 5.1.7 Entry and Exit conditions
;
; |DP|OVM|SXM|C16|FRCT|ASM|AR0|AR1|AR2|AR3|AR4|AR5|AR6|AR7|A |B |BK|BRC| T|TRN|
; | | | | | | | | | | | | | | | | | | | | |
;in |U | 1 | 1 |NU | 1 |NU |NU |NU |NU |NU |NU |NU |NU |NU |UM|NU|NU|NU |NU|NU |
; | | | | | | | | | | | | | | | | | | | | |
;out|U | 1 | 1 |NU | 1 |NU |UM |UM |NU |UM |NU |UM |NU |NU |UM|UM|NU|NU |NU|NU |
; Note : UM – Used & Modified, U – Used, NU – Not Used
;
; 5.1.8 Execution
; Execution time: ?cycles
; Call rate: not applicable for this application
;
;==============================================================================
;HeaderEnd
; 5.1.9 Code
	.asg AR0,INDEX_P
	.asg AR1,INIT_P 		; initialize buffer pointer
	.asg AR3,XH_DATA_P 		; data coeff buffer pointer
	.asg AR5,XW_DATA_P 		; data coeff buffer pointer
					; for cal.y output
	.sect ”filter”

adapt_init:
					; initialize input data location, input to hybrid, with Zero.
	STM #xh,INIT_P
	RPTZ A,#H_FILT_SIZE–1
	STL A,*INIT_P+
					; initialize input data location, input to adaptive filter, with Zero.
	STM #xw,INIT_P
	RPTZ A,#ADPT_FILT_SIZE–1
	STL A,*INIT_P+
					; initialize adaptive coefficient with Zero.
	STM #wcoff,INIT_P
	RPTZ A,#ADPT_FILT_SIZE–1
	STL A,*INIT_P+
					; initialize temporary storage loacations with zero
	STM #d_primary,INIT_P
	RPTZ A,#6
	STL A,*INIT_P+
					; copy system coefficient into RAM location, Rverse order
	STM #hcoff,INIT_P
	RPT #H_FILT_SIZE–1
	MVPD #scoff,*INIT_P+
					; LD #ADAPT_DP,DP ;set DP now and not worry about it
	ST #K_mu,d_mu
	STM #1,INDEX_P 			; increment value to be used by
					; dual address
					; associate auxilary registers for circular computation
	STM #xh+H_FILT_SIZE–1,XH_DATA_P 	; last input of hybrid buffer
	RETD
	STM #xw+ADPT_FILT_SIZE–1,XW_DATA_P 	;last element of input buffer
						; 5. SUBROUTINE CODE
						; HeaderBegin




;==============================================================================
;
;––––––––––––––––––––––––––––––––––––––
; 5.2 adapt_task
;
; 5.2.1 Functional Description
;
; This subroutine performs the adaptive filtering.The newest sample is
; stored in a seperate location since filtering and adaptation are performed
; at the same time. Otherwise the oldest sample is over written before
; up dating the w(N–1) coefficient.
;
; d_primary = xh *hcoff
; d_output = xw *wcoff
; LMS algorithm:
; w(i+1) = w(i)+d*mu_error*xw(n–i) for i = 0,1,...127 and n = 0,1,.....
; This program can run in two steps
; 1. Initial stepsize, d_mu = 0x0. At this point, the system is not
; identified since the coefficients are not adapted and the error
; signal e (n) is d (n). This is the default mode
; 2. At the EVM debugger command window change the step size
; d_mu – 0x000, with the command e * d_mu = 0x1000
; This changes the stepsize. The error signal e(n) in this case
; is approximately 0 (theoretically) and the system is identified.
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––—;
; 5.2.2 Activation
; Activation example:
; CALL adapt_task
; Reentrancy: No
; Recursive : No
;
; 5.2.3 Inputs
;
; Data structure: AR3
; Data Format: 16–bit x(n) data buffer pointer for H(Z)
; Modified: Yes
; Description: uses circular buffer addressing mode of size 128
;
; Data structure: AR5
; Data Format: 16–bit x(n) data buffer pointer for W(z)
; Modified: Yes
; Description: uses circular buffer addressing mode of size 128
;
; Data structure: AR6
; Data Format: 16–bit input buffer pointer
; Modified: Yes
; Description: either point to PING/PONG buffer
;
; 5.2.4 Outputs
;
; Data structure: AR7
; Data Format: 16–bit output buffer pointer
; Modified: Yes
; Description: either point to PING/PONG buffer
;
; 5.2.5 Global
;
; Data structure: AR2
; Data Format: 16–bit H(z) coeff buffer pointer
; Modified: Yes
; Description: uses circular buffer addressing mode of size 128
;
; Data structure: AR4
; Data Format: 16–bit W(z) coeff buffer pointer
; Modified: Yes
; Description: uses circular buffer addressing mode of size 128
;
; Data structure: d_adapt_count
; Data Format: 16–bit variable
; Modified: Yes
; Description: counter to check for processing 256 samples
;
; Data structure: d_new_x
; Data Format: 16–bit variable
; Modified: Yes
; Description: holds the newest sample
;
; Data structure: d_primary
; Data Format: 16–bit variable
; Modified: Yes
; Description: d_primary = xh * hcoeff
;
; Data structure: d_output
; Data Format: 16–bit variable
; Modified: Yes
; Description: d_output = xw * wcoff
;
; Data structure: d_error
; Data Format: 16–bit variable
; Modified: Yes
; Description: d_error = d_primary–d_output
;
; Data structure: d_mu_e
; Data Format: 16–bit variable
; Modified: Yes
; Description: d_mu_e = mu*d_error
;
; 5.2.6 Special considerations for data structure
; –
; 5.2.7 Entry and Exit conditions
;       
; | | | | | | | | | | | | | | | | | | | | |
;in |U | 1 | 1 |NU | 1 |NU |U |NU |NU |U |NU | U |U | U |UM|NU|NU|NU |NU|NU |
; | | | | | | | | | | | | | | | | | | | | |
;out|U | 1 | 1 |NU | 1 |NU |U |NU |UM |UM |UM |UM |UM |UM |UM|UM|UM|UM |UM|NU |
; Note : UM – Used & Modified, U – Used, NU – Not Used
;
; 5.2.8 Execution
; Execution time: ?cycles
; Call rate: not applicable for this application
;
;==============================================================================
; HeaderEnd
; 5.2.9 Code
	.asg AR2,H_COFF_P 	; H(Z) coeff buffer pointer
	.asg AR3,XH_DATA_P 	; data coeff buffer pointer
	.asg AR6,INBUF_P 	; input buffer address pointer
	.asg AR7,OUTBUF_P 	; output buffer address pointer
				; for cal. primary input
	.asg AR4,W_COFF_P 	; W(z) coeff buffer pointer
	.asg AR5,XW_DATA_P 	; data coeff buffer pointer
	
	.sect ”filter”

adapt_task:
	STM #H_FILT_SIZE,BK 	; first circular buffer size
	STM #hcoff,H_COFF_P 	; H_COFF_P ––> last of sys coeff
	ADDM #1,d_adapt_count
	LD *INBUF_P+, A 	; load the input sample
	STM #wcoff,W_COFF_P 	; reset coeff buffer
	STL A,d_new_x 		; read in new data
	LD d_new_x,A 		;
	STL A,*XH_DATA_P+0% 	; store in the buffer
	RPTZ A,#H_FILT_SIZE–1 	; Repeat 128 times
	MAC *H_COFF_P+0%,*XH_DATA_P+0%,A 
				; mult & acc:a = a + (h * x)
	STH A,d_primary 	; primary signal
				; start simultaneous filtering and updating the adaptive filter here.
	LD d_mu_e,T 		; T = step_size*error
	SUB B,B 				; zero acc B
	STM #(ADPT_FILT_SIZE–2),BRC 		; set block repeat counter
	RPTBD lms_end–1
	MPY *XW_DATA_P+0%, A 		; error * oldest sample
	LMS *W_COFF_P, *XW_DATA_P 	; B = filtered output (y)
					; Update filter coeff
	ST A, *W_COFF_P+ 		; save updated filter coeff
	|| MPY*XW_DATA_P+0%,A 		; error *x[n–(N–1)]
	LMS *W_COFF_P, *XW_DATA_P 	; B = accum filtered output y
					; Update filter coeff
lms_end

	STH A, *W_COFF_P 		; final coeff
	MPY *XW_DATA_P,A 		; x(0)*h(0)
	MVKD #d_new_x,*XW_DATA_P 	; store the newest sample
	LMS *W_COFF_P,*XW_DATA_P+0%
	STH B, d_output 		; store the fitlered output
	LD d_primary,A
	SUB d_output,A
	STL A, d_error 			; store the residual error signal
	LD d_mu,T
	MPY d_error,A 			; A=u*e
	STH A,d_mu_e 			; save the error *step_size
	LD d_error,A 			; residual error signal
	STL A, *OUTBUF_P+   
	LD #K_FRAME_SIZE,A 		; check if a frame of samples
	SUB d_adapt_count,A 		; have been processed
	BC adapt_task,AGT
	RETD
	ST #K_0,d_adapt_count 		; restore the count
	.end


* This is an input file used by the adaptive filter program.
* The transfer function is the system to be identifued by the adaptive filter
.word 0FFFDh
.word 24h
.word 6h
.word 0FFFDh
.word 3h
.word 3h
.word 0FFE9h
.word 7h
.word 12h
.word 1Ch
.word 0FFF3h
.word 0FFE8h
.word 0Ch
.word 3h
.word 1Eh
.word 1Ah
.word 22h
.word 0FFF5h
.word 0FFE5h
.word 0FFF1h
.word 0FFC5h
.word 0Ch
.word 0FFE8h
.word 37h
.word 0FFE4h
.word 0FFCAh
.word 1Ch
.word 0FFFDh
.word 21h
.word 0FFF7h
.word 2Eh
.word 28h
.word 0FFC6h
.word 53h
.word 0FFB0h
.word 55h
.word 0FF36h
.word 5h
.word 0FFCFh
.word 0FF99h
.word 64h
.word 41h
.word 0FFF1h
.word 0FFDFh
.word 0D1h
.word 6Ch
.word 57h
.word 36h
.word 0A0h
.word 0FEE3h
.word 6h
.word 0FEC5h
.word 0ABh
.word 185h
.word 0FFF6h
.word 93h
.word 1Fh
.word 10Eh
.word 59h
.word 0FEF0h
.word 96h
.word 0FFBFh
.word 0FF47h
.word 0FF76h
.word 0FF0Bh
.word 0FFAFh
.word 14Bh
.word 0FF3Bh
.word 132h
.word 289h
.word 8Dh
.word 0FE1Dh
.word 0FE1Bh
.word 0D4h
.word 0FF69h
.word 14Fh
.word 2AAh
.word 0FD43h
.word 0F98Fh
.word 451h
.word 13Ch
.word 0FEF7h
.word 0FE36h
.word 80h
.word 0FFBBh
.word 0FC8Eh
.word 10Eh
.word 37Dh
.word 6FAh
.word 1h
.word 0FD89h
.word 198h
.word 0FE4Ch
.word 0FE78h
.word 0F215h
.word 479h
.word 749h
.word 289h
.word 0F667h
.word 304h
.word 5F8h
.word 34Fh
.word 47Bh
.word 0FF7Fh
.word 85Bh
.word 0F837h
.word 0F77Eh
.word 0FF80h
.word 0B9Bh
.word 0F03Ah
.word 0EE66h
.word 0FE28h
.word 0FAD0h
.word 8C3h
.word 0F5D6h
.word 14DCh
.word 0F3A7h
.word 0E542h
.word 10F2h
.word 566h
.word 26AAh
.word 15Ah
.word 2853h
.word 0EE95h
.word 93Dh
.word 20Dh
.word 1230h
.word 238Ah

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天做天天摸天天爽国产一区 | 日韩精品久久久久久| 日本伊人精品一区二区三区观看方式| 蜜臀99久久精品久久久久久软件| 国产白丝网站精品污在线入口| 欧美美女一区二区| ...av二区三区久久精品| 久久成人免费网| 欧美色涩在线第一页| 亚洲欧洲www| 国产酒店精品激情| 日韩免费电影网站| 亚洲成av人影院| 91丨九色丨蝌蚪丨老版| 国产日韩欧美综合一区| 极品销魂美女一区二区三区| 欧美日韩国产一二三| 亚洲精品视频在线| av成人动漫在线观看| 国产色一区二区| 国产九色sp调教91| 久久影院视频免费| 国内精品久久久久影院色| 日韩三级中文字幕| 强制捆绑调教一区二区| 欧美日韩国产另类不卡| 亚洲电影一级黄| 欧美亚洲高清一区二区三区不卡| 亚洲男人都懂的| 色偷偷88欧美精品久久久| 日韩一区在线免费观看| www.亚洲国产| 日韩理论电影院| 91小宝寻花一区二区三区| 中文字幕成人av| 成人高清免费观看| 亚洲人成电影网站色mp4| 91亚洲永久精品| 亚洲精品中文在线| 欧美性xxxxx极品少妇| 亚洲电影在线播放| 欧美美女喷水视频| 久久电影网电视剧免费观看| www欧美成人18+| 国产成人精品亚洲777人妖| 国产网站一区二区三区| 成人av网在线| 亚洲精品国产视频| 在线精品视频免费观看| 亚洲成a天堂v人片| 欧美一级淫片007| 国产麻豆欧美日韩一区| 国产亚洲午夜高清国产拍精品| 成人激情文学综合网| 亚洲激情图片小说视频| 欧美裸体bbwbbwbbw| 久久99国产精品麻豆| 亚洲精品一区二区三区精华液 | 欧美在线啊v一区| 视频在线观看国产精品| 日韩限制级电影在线观看| 国产精品77777竹菊影视小说| 国产精品国产三级国产aⅴ中文 | 一本一道久久a久久精品综合蜜臀| 亚洲人精品午夜| 欧美一区二区三区视频免费| 国产剧情av麻豆香蕉精品| 亚洲女人小视频在线观看| 日韩精品一区二| 成人国产精品免费观看动漫| 日韩精品欧美成人高清一区二区| 精品国精品国产尤物美女| 96av麻豆蜜桃一区二区| 久久精品国产一区二区| 亚洲丝袜美腿综合| 亚洲精品一区二区三区影院 | 日韩欧美国产系列| 99久久99久久综合| 日韩福利电影在线观看| 国产精品不卡一区| 欧美成人a在线| 在线观看亚洲精品| 国产成人一级电影| 免费国产亚洲视频| 亚洲午夜久久久| 国产精品污www在线观看| 3atv在线一区二区三区| 91在线视频播放地址| 狠狠狠色丁香婷婷综合激情| 亚洲gay无套男同| 最新欧美精品一区二区三区| 日韩女优电影在线观看| 欧美日韩亚洲丝袜制服| 99国产精品一区| 国产精品77777竹菊影视小说| 免费久久99精品国产| 亚洲国产wwwccc36天堂| 最新久久zyz资源站| 中文在线一区二区| 精品国产乱码久久久久久1区2区 | 国产视频一区在线播放| 欧美一区二区国产| 欧美探花视频资源| 91欧美激情一区二区三区成人| 国产精品一区二区久久不卡 | 亚洲一区二区美女| 最近中文字幕一区二区三区| 国产丝袜欧美中文另类| 久久久久九九视频| 久久久久九九视频| 欧美激情一区在线观看| 国产日韩欧美电影| 国产精品沙发午睡系列990531| 精品福利视频一区二区三区| 精品久久久久久久久久久院品网| 91精品欧美综合在线观看最新| 欧美三级视频在线| 欧美片在线播放| 欧美一区二区黄色| 精品国产一区二区精华| 欧美精品一区二区三区视频| 久久久蜜桃精品| 国产精品免费视频网站| 综合色中文字幕| 亚洲精品网站在线观看| 亚洲成人av免费| 九色porny丨国产精品| 国产一区二区日韩精品| 成人性生交大片| 色www精品视频在线观看| 在线观看视频一区二区欧美日韩| 欧美三区免费完整视频在线观看| 91麻豆精品国产91久久久使用方法 | 91精品国产日韩91久久久久久| 欧美另类z0zxhd电影| 欧美一区二区性放荡片| 久久先锋影音av| 国产精品久久夜| 亚洲午夜久久久久久久久电影网| 日本午夜一区二区| 国产精品1024| 日本高清不卡aⅴ免费网站| 欧美丰满一区二区免费视频| 精品黑人一区二区三区久久| 国产精品区一区二区三区| 18成人在线观看| 免费看欧美美女黄的网站| 国产精品一二三四| 色婷婷狠狠综合| 欧美一区二区三区人| 久久久精品免费观看| 亚洲人成人一区二区在线观看| 婷婷中文字幕综合| 粉嫩一区二区三区性色av| 色狠狠综合天天综合综合| 精品国产乱码久久| 亚洲综合视频网| 国产盗摄一区二区三区| 欧美系列亚洲系列| 国产丝袜美腿一区二区三区| 午夜日韩在线电影| 93久久精品日日躁夜夜躁欧美| 欧美日韩国产色站一区二区三区| 久久久久久电影| 日日摸夜夜添夜夜添精品视频| 国产电影精品久久禁18| 欧美一三区三区四区免费在线看| 国产精品美女久久久久久2018 | 日韩一级片在线观看| 国产精品视频线看| 美国一区二区三区在线播放| 99国产精品久| 久久久久久久综合色一本| 日韩精品欧美精品| 欧美综合天天夜夜久久| 国产精品私房写真福利视频| 久久国产日韩欧美精品| 欧美做爰猛烈大尺度电影无法无天| 久久综合一区二区| 日本成人中文字幕| 欧美午夜精品免费| 国产精品第一页第二页第三页| 国产最新精品精品你懂的| 欧美日韩高清一区二区| 亚洲综合一二区| 一本色道综合亚洲| 亚洲欧洲日韩在线| 成人一区二区在线观看| 精品处破学生在线二十三| 免费xxxx性欧美18vr| 欧美裸体一区二区三区| 图片区小说区国产精品视频| 色综合欧美在线| 亚洲日本青草视频在线怡红院| 国产综合一区二区| 久久综合久久鬼色中文字| 国内精品国产三级国产a久久 | 蜜臀久久99精品久久久久久9| 欧美伦理电影网| 日韩av一区二区三区四区|