Microchip PIC32AK1216GC41048 handleiding
Handleiding
Je bekijkt pagina 18 van 76

Vector Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 18
• CORCON - saved, used, restored
• REPEATinstruction(s) usage – None
2.3.12. VectorSubtract
Description
VectorSubtractsubtracts the value of each element in the source one vector with its counterpart
in the source twovector andplaces the result in the destination vector.
Prototype
fractional* VectorSubtract (int numElems, fractional* dstV,
fractional* srcV1, fractional* srcV2);
Arguments
Parameters Description
numElems
Number of elements in the source vectors
dstV
Pointer to the destination vector
srcV1
Pointer to the source one vector
srcV2
Pointer to the source two vector
Returns
Pointer to the base address of the destination vector.
Remarks
If the absolute value ofsrcV1[n]-srcV2[n]is larger than the maximum value of 1.31 fractional data
type, the operation results in saturation for the n
th
element.
This function can be computed in place.
This function can beself-applicable.
Source File
• vsub_aa.s
Function Prole
Device Program Words Cycles
PIC32A
11 36 + 4*(numElems)
System resource usage
• W0…W4 - used, not restored
• ACCA - used, not restored
• CORCON - saved, used, restored
• REPEATinstruction(s) usage – None
2.3.13. VectorZeroPad
Description
VectorZeroPadcopies the contents of the source vector into the beginning of the destination
vector, and then lls the remaining positions—specied by numZeros — with zeros to complete the
destination vector.
dstV[n]=srcV[n], 0≤n<numElems
Bekijk gratis de handleiding van Microchip PIC32AK1216GC41048, 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
Merk | Microchip |
Model | PIC32AK1216GC41048 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 11302 MB |