| Moteur de recherche de fiches techniques de composants électroniques |
|
AN3137 Fiches technique(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3137 Fiches technique(HTML) 40 Page - STMicroelectronics |
|
40 / 42 page ![]() Source code examples AN3137 40/42 Doc ID 16983 Rev 3 FFT analysis: ● 16 point FFT calculation of 50 Hz signal is implemented ● FFT is applied on 6 ADC channels: AIN0 - AIN5 ● FFT method shows 3-phase AC signal power measurement: – even channels (0, 2, 4) represent voltages – odd channels (1, 3, 5) represent currents – power is calculated as sum of the power of each harmonic frequencies (16 point FFT = 7 harmonic) Pa=U1*I1*cosF1 + ... + Un*In*cosFn (n=7) ... for phase “a” Pb=U1*I1*cosF1 + ... + Un*In*cosFn (n=7) ... for phase “b” Pc=U1*I1*cosF1 + ... + Un*In*cosFn (n=7) ... for phase “c” ● connect 6 signals to AIN0 - AIN5 pins; signals should have frequency CCA 50 Hz ● the calculation takes CCA up to 3 seconds ● the second line on LCD shows calculation results: phase number, effective values of U and I, harmonic power, phase shift, distortion of U and I (all for each of the 3 phases) ● to stop the method press the “Key” button (wait for the end of the result list, “done” will appear on the screen) Now the program starts again from the averaging method. A.2.3 Hardware and software requirements To run the project example you must have installed STVD (version 4.1.3 or newer) and Cosmic/Raisonance compiler for STM8L/STM8A microcontrollers. Both tools are free for download from STMicroelectronics and Cosmic/Raisonance websites. The hardware requirement is to have the STM8L1526 evaluation board with the STM8L152C6 chip installed. |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants All Rights Reserved©Alldatasheet.com |
| 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 |