Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PM0014 Datasheet(PDF) 16 Page - STMicroelectronics

Part # PM0014
Description  General-purpose DSP library
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0014 Datasheet(HTML) 16 Page - STMicroelectronics

Back Button PM0014 Datasheet HTML 12Page - STMicroelectronics PM0014 Datasheet HTML 13Page - STMicroelectronics PM0014 Datasheet HTML 14Page - STMicroelectronics PM0014 Datasheet HTML 15Page - STMicroelectronics PM0014 Datasheet HTML 16Page - STMicroelectronics PM0014 Datasheet HTML 17Page - STMicroelectronics PM0014 Datasheet HTML 18Page - STMicroelectronics PM0014 Datasheet HTML 19Page - STMicroelectronics PM0014 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 46 page
background image
Arithmetic library functions
PM0014
16/46
5.2.4
cAdd_32
cAdd_32 (short LeftOpMsb_I, short LeftOpLsb_I, short LeftOpMsb_R,
short LeftOpLsb_R, short RightOpMsb_I, short RightOpLsb_I,
short RightOpMsb_R, short RightOpMsb_I, long *Output)
Description:
Addition of two complex 32-bit operands.
Argument:
LeftOpMsb_I
Left operand imaginary part most significant bits.
LeftOpLsb_I
Left operand imaginary part least significant bits.
LeftOpMsb_R
Left operand real part most significant bits.
LeftOpLsb_R
Left operand real part least significant bits.
RightOpMsb_I
Right operand imaginary part most significant bits.
RightOpLsb_I
Right operand imaginary part least significant bits.
RightOpMsb_R Right Operand real part most significant bits.
RightOpLsb_R
Right Operand real part least significant bits.
Output
Output pointer
Algorithm:
LeftOp_R + RightOp_R = Output_R
LeftOp_I + RightOp_I = Output_I
Note:
Output imaginary part is contained in the highest addresses
(pointed by Output + 4). Output real part is contained in the lowest
addresses (pointed by Output).
Set the MS bit-field of the MCW register to have a saturated result
(signed arithmetic).
Assembly source
code:
cAdd_32.asm
Code size and cycles: Size: 52 bytes
Instruction cycles: 25
Test:
Two files are provided to test the function: an input vector file
(cAdd_32.in) and an output vector file (cAdd_32.res):
cAdd_32.in is made as follows:
LeftOpMsb_I1, LeftOpLsb_I1, LeftOpMsb_R1, LeftOpLsb_R1,
RightOpMsb_I1, RightOpLsb_I1, RightOpMsb_R1, RightOpLsb_R1,
LeftOpMsb_I2, LeftOpLsb_I2, LeftOpMsb_R2, LeftOpLsb_R2,
RightOpMsb_I2, RightOpLsb_I2, RightOpMsb_R2, RightOpLsb_R2,
...
cAdd_32.res is made as follows:
OutputLsb_R1, OutputMsb_R1, OutputLsb_I1, OutputMsb_I1
OutputLsb_R2, OutputMsb_R2, OutputLsb_I2, OutputMsb_I2,
...



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com