參數(shù)資料
型號: VMX1C1020
廠商: Electronic Theatre Controls, Inc.
英文描述: Versa Mix 8051 Mixed-Signal MCU
中文描述: 反之亦然混合8051混合信號微控制器
文件頁數(shù): 22/80頁
文件大?。?/td> 3605K
代理商: VMX1C1020
VMX51C1020
_________________________________________________________________________________________________
www.ramtron.com
page 22 of 80
MULT/ACCU Barrel Shifter
The MULT/ACCU includes a 32-bit Barrel Shifter
at the output of the 32-bit addition unit. The
Barrel Shifter can perform right/left shift
operations in one cycle, which is useful for
scaling the output result of the MULT/ACCU.
The shift range is adjustable from 0 to 16 in both
directions. The “shifted” addition unit output can
be routed to the:
o
MACRES
o
MACPREV
o
MACOV32
The barrel shifter can perform both arithmetic
and logical shifts: The shift left operation can be
configured as an arithmetic or logical shift. In
the later, the sign bit is discarded.
T
ABLE
38:
(MACSHIFTCTRL)
MULT/ACCU
U
NIT
B
ARREL
S
HIFTER
C
ONTROL
R
EGISTER
-
SFR
FB
H
7
6
SHIFTMODE
ALSHSTYLE
Bit
Mnemonic
Function
7
SHIFTMODE
0 = Logical SHIFT
1 = Arithmetic SHIFT
6
ALSHSTYLE
Arithmetic Shift Left Style
0= Arithmetic Left Shift: Logical Left
1= Arithmetic Left Shift: Keep sign bit
5:0
SHIFTAMPL[5:0]
Shift Amplitude 0 to 16 (5 bits to
provide 16 bits shift range)
Neg. Number = Shift Right
(2 complements)
Pos. Number = Shift Left
MULT/ACCU Unit Setup and OV32
Interrupt Example
5
4
SHIFTAMPL [5:0]
3
2
1
0
In order to use the MULT/ACCU unit, the user
must first set up and configure the module. The
following provides setup code examples. The
first part of the code is the interrupt setup and
module configuration, whereas the second part
is the interrupt function itself.
Sample C code for MULT/ACCU Unit interrupt
setup and module configuration:
//---------------------------------------------------------------------------
// Sample C code to setup the MULT/ACCU unit
//---------------------------------------------------------------------------
//--- Program initialisation omitted…
(…)
void main(void){
// MULT/ACCU setup
IEN0 |= 0x80;
IEN1 |= 0x10;
DIGPWREN |= 0x20;
MACCTRL1 = 0x0C;
MACCTRL2 = 0x10;
// Enable all interrupts
// Enable MULT/ACCU interrupt
// Enable MULT/ACCU unit
// {A,B}+C
// Enable INT overflow_32
// MULT/ACCU example use
MACA0 = 0xFF;
MACA1 = 0x7F;
MACB0 = 0xFF;
MACB1 = 0xFF;
MACC0 = 0xFF;
MACC1 = 0xFF;
MACC2 = 0xFF;
MACC3 = 0x7F;
//--- as soon as the MAC input registers are loaded the result is available in the
MACRESx registers.
}//end of main
//---------------------------------------------------------------------------------
// MAC 32 bit overflow Interrupt Function
void int_5_mac (void) interrupt 12
{
IEN0 &= 0x7F;
//Put MAC 32 bit Overflow Interrupt code here.*/
//Note that when a 32bit overflow occurs, the 32 least significant bit of the current
//result are stored into the MAC32OVx registers and can be read at the location
of MACRESx by setting to 1 the OVRDVAL bit of the MACCTRL register
IRCON &= 0xEF;
// Clear flag (IEX5)
IEN0 |= 0x80;
// Enable all interrupts
}
//--------------------------------------------------------------------------------
MULT/ACCU Application Example:
FIR Filter Function
// Disable all interrupts
The
implementation of a FIR filter computation
function for one iteration, the data shifting
operation and the definition of the FIR filter
coefficient table. The FIR computation is simple
to implement, however, it is quite demanding in
terms of processing power. For each new data
point,
the
multiplication
coefficients + addition operation must be
performed N times (N=number of filter tapps).
Due to being hardware based and including
features such as automatic reload of the result
of the previous operation, the VMX51C1020
MULT/ACCU unit is very efficient for performing
operations such as FIR filter computation.
In the code example below, the COMPUTEFIR
loop forms the heart of the FIR computation and
it is clear that use of the MULT/ACCU unit
implies very few instructions being required for
mathematical operations. The net result is a
dramatic
performance
compared with manual calculations done solely
via the standard 8051 instruction set.
following
ASM
code
shows
the
with
associated
improvement
when
相關(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