Microchip PIC32AK1216GC41064 handleiding

76 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 16 van 76
Vector Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 16
fractional* VectorNegate (int numElems, fractional* dstV, fractional* srcV1);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
dstV
Pointer to the destination vector
srcV1
Pointer to the source vector
Returns
Pointer to the base address of the destination vector.
Remarks
The negated value of 0x80000000 is set to 0x7FFFFFFF.
This function can be computed in place.
Source File
vneg_aa.s
Function Prole
Device Program Words Cycles
PIC32A
10 32 + (numElems)
System resource usage
W0…W3 - used, not restored
CORCON - saved, used, restored
REPEATinstruction(s) usage – None
2.3.10. VectorPower
Description
VectorPowercomputes the power of a source vector as the sum of the squares of its elements.
Prototype
fractional VectorPower(int numElems, fractional* srcV);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
srcV
Pointer to the source vector
Returns
Value of the vector’s power (sum of squares).
Remarks
If the absolute value ofsum-of-squaresis larger than the maximum value of 1.31 fractional data type,
the operation results in saturation.
This function can beself-applicable.
Source File

Bekijk gratis de handleiding van Microchip PIC32AK1216GC41064, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkMicrochip
ModelPIC32AK1216GC41064
CategorieNiet gecategoriseerd
TaalNederlands
Grootte11302 MB