參數(shù)資料
型號: VMX1C1020
廠商: Electronic Theatre Controls, Inc.
英文描述: Versa Mix 8051 Mixed-Signal MCU
中文描述: 反之亦然混合8051混合信號微控制器
文件頁數(shù): 23/80頁
文件大?。?/td> 3605K
代理商: VMX1C1020
VMX51C1020
_________________________________________________________________________________________________
www.ramtron.com
page 23 of 80
VMX51C1020 FIR Filter Example
The example below shows how to use the
MULT/ACCU unit of the VMX51C1020 to
perform FIR filter computing. In order to
minimize the example size, only the FIR
computing function and the coefficient table are
presented.
;----------------------------------------------------//
;** FIR Filter Computing Function //
;---------------------------------------------------//
FIRCOMPUTE: MOV R0,#NPOINTSBASEADRS
;INPUT ADC RAW DATA
;AT Xn LOCATIONS...
;Saving acquired data from calling function into RAM for computation
MOV
VARH,DATAH
MOV
VARL,DATAL
MOV
@R0,VARH
INC
R0
MOV
@R0,VARFL
;** Prepare to compute Yn...
;***Define Base ADRS of input values
MOV
R0,#NPOINTSBASEADRS
;***Define Base Address of coefficients
MOV
R1,#COEFBASEADRS
MOV
R7,#NPOINTS ;DEFINE COUNTER
;***Configure the MULT/ACCU unit as Follow:
MOV
MACCTRL,#00001000B
;BIT7 LOADPREV = 0
;BIT6 PREVMODE = 0
;
;BIT5 OVMODE = 0
;
;BIT4 OVRDVAL = 0
;
;BIT3:2 ADDSRC = 10
;BIT1:0 MULCMD = 00
;**Clear the MULT/ACCU registers content
MOV
;** COMPUTE Yn...
COMPUTEFIR: MOVMACB1,@R1 ;Put a given Coefficient into
INC
R1
MOV
MACB0,@R1
INC
R1
MOV
MACA1,@R0 ; Put a given Xn Input into
INC
R0
MOV
MACA0,@R0
;This last instruction load the MACPREV register for next Operation
INC
R0
DJNZ
R7,COMPUTEFIR ;Do the Computation for N taps
;*** Second part
;-------------------------------------------------------------------------------------------------------//
;** SHIFT PREVIOUS INPUT VALUES TO LET PLACE FOR NEXT ONE...
;-------------------------------------------------------------------------------------------------------//
SHIFTPAST:
MOV
R7,#(NPOINTS-1)*2
;***COMPUTE FIRST FETCH ADDRESS
MOV
R0,#(NPOINTSBASEADRS - 1 + 2*(NPOINTS-1))
;***COMPUTE FIRST DESTINATION ADDRESS
MOV
R1,#(NPOINTSBASEADRS + 1 + 2*(NPOINTS-1))
SHIFTLOOP: MOV
A,@R0
;Shift Given LSB input...
MOV
@R1,A
;To next location
DEC
R0
;Prepare pointer for moving LSB
DEC
R1
DJNZ
R7,SHIFTLOOP
;** PERFORM TRANSFORMATION OF Yn HERE AND PUT INTO BINH, BINL
;** IN THIS CASE THE COEFFICIENTS HAVE BEEN MULTIPLIED BY 65536
;** SO THE RESULT IS ON 32-BITS
;** DIVISING YN BY 65536 MEAN ONLY TAKING THE UPPER 16-BITS
;(MSB)
;(LSB)
No manual Previous result
Automatic Previous result save when
MULT/ACCUA0 is loaded
Overflow flag remains ON until overflow
condition exist
The value of MACRES is the calculation
result
MACPREV is the Addition Source
Mul Operation = MACAxMACB
MACCTRL2,#0A0H
;MULT/ACCUB
;Define # of datashift
;To perform (N-1)*2
MOV
MOV
LCALL
MOV
RET
DATAH,MACRES3
DATAL,MACRES2
SENDLTC1452
P3,#00
;----------------------------------------------------
;* FIR Filter Coefficients Table *
;----------------------------------------------------
;FSAMPLE 480HZ, N=16, LOW PASS 0.1HZ -78DB @ 60HZ
COEFTABLE: DW 023DH
DW 049DH
DW 086AH
DW 0D2DH
DW 1263H
DW 1752H
DW 1B30H
DW 1D51H
DW 1D51H
DW 1B30H
DW 1752H
DW 1263H
DW 0D2DH
DW 086AH
DW 049DH
DW 023DH
DW 0FFFFH ;END OF TABLE
相關(guān)PDF資料
PDF描述
VMX51C900 Versa Mix 8051 MCU with LCD Controller and ADC
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET(擊穿電壓40V,N溝道增強(qiáng)型垂直DMOS結(jié)構(gòu)場效應(yīng)管)
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET
VN0104N3 N-Channel Enhancement-Mode Vertical DMOS FET
VN0109NE N-Channel Enhancement-Mode Vertical DMOS Power FETs Quad Array
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
VMX200USB 制造商:Behringer 功能描述:Pro Mixer VMX200USB Professional 2CH DJ Mixer w/USB Audio Interface 制造商:BEHRINGER 功能描述:TWO CHANNEL DJ MIXER WITH USB / VCA AND BPM COUNT
VMX2208 制造商:Panasonic Industrial Company 功能描述:WASHER
VMX2699 制造商:Panasonic Industrial Company 功能描述:WASHER
VMX300USB 制造商:Behringer 功能描述:Pro Mixer VMX300USB Professional 3CH DJ Mixer w/USB Audio Interface 制造商:Behringer 功能描述:Three Channel Professional DJ Mixer with USB Audio Interface 制造商:BEHRINGER 功能描述:COMPACT DJ MIXER 3 CHANNEL WITH USB OUTPUT
VMX3114 制造商:Panasonic Industrial Company 功能描述:WASHER