Microchip PIC32AK6416GC41036 handleiding
Handleiding
Je bekijkt pagina 14 van 76

Vector Funcons
User Guide
© 2025 Microchip Technology Inc. and its subsidiaries
DS70005605A - 14
VectorMax (connued)
Parameters Description
maxIndex
Pointer to the holder for the index of (last) maximum element
Returns
Maximum value in the vector.
Remarks
IfsrcV[i]=srcV[j]=maxVal, andi<j, then *maxIndex=j.
Source File
• vmax_aa.s
Function Prole
Device Program
Words
Cycles
PIC32A
10 32 + 4*(numElems - 1),
System resource usage
• W0…W6 - used, not restored
• REPEATinstruction(s) usage – None
2.3.7. VectorMin
Description
VectorMinreturns the value and index of the last element in the source vector whose value is
lesser than or equal to any previous vector element.
Prototype
fractional VectorMin (int numElems, fractional* srcV, int* minIndex);
Arguments
Parameters Description
numElems
Number of elements in the source vector
srcV
Pointer to the source vector
minIndex
Pointer to the holder for the index of the (last) minimum element
Returns
Minimum value in the vector.
Remarks
IfsrcV[i]=srcV[j]=minVal, andi<j, then *minIndex=j.
Source File
• vmin_aa.s
Function Prole
Device Program
Words
Cycles
PIC32A
10 32 + 4*(numElems - 1),
Bekijk gratis de handleiding van Microchip PIC32AK6416GC41036, 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 | PIC32AK6416GC41036 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 11302 MB |