fghfgh

Dependencies:   mbed CMSIS_DSP_5 TextLCD

Committer:
jvicente
Date:
Thu Nov 21 16:28:20 2019 +0000
Revision:
6:1e45b5f30b87
Parent:
3:44b632ea58aa
Child:
7:4dd3ef163f65
hshfg

Who changed what in which revision?

UserRevisionLine numberNew contents of line
javiervicente 0:0d5a524c7d25 1 #include "mbed.h"
jvicente 6:1e45b5f30b87 2 #include "arm_math.h"
jvicente 6:1e45b5f30b87 3 #include <Ticker.h>
jvicente 6:1e45b5f30b87 4 #include <stdio.h>
jvicente 6:1e45b5f30b87 5 #include <string.h>
jvicente 6:1e45b5f30b87 6 #include <AnalogIn.h>
javiervicente 0:0d5a524c7d25 7 #include "datos.h"
jvicente 6:1e45b5f30b87 8 #include "TextLCD.h"
javiervicente 2:69827542e976 9
javiervicente 0:0d5a524c7d25 10
jvicente 6:1e45b5f30b87 11
jvicente 6:1e45b5f30b87 12 float Vrms;
jvicente 6:1e45b5f30b87 13
jvicente 6:1e45b5f30b87 14
jvicente 6:1e45b5f30b87 15 // PROGRAMA PRINCIPAL
javiervicente 0:0d5a524c7d25 16 int main()
javiervicente 0:0d5a524c7d25 17 {
jvicente 6:1e45b5f30b87 18
jvicente 6:1e45b5f30b87 19
jvicente 6:1e45b5f30b87 20
jvicente 6:1e45b5f30b87 21 //1.Vrms
jvicente 6:1e45b5f30b87 22 arm_rms_f32(datosV,500,&(Vrms));
jvicente 6:1e45b5f30b87 23
jvicente 6:1e45b5f30b87 24 printf("datos entrada\n");
jvicente 6:1e45b5f30b87 25 for (int n=0;n<500;n++){
jvicente 6:1e45b5f30b87 26 printf("%f\n",datosV[n]);
jvicente 6:1e45b5f30b87 27 }
jvicente 6:1e45b5f30b87 28
jvicente 6:1e45b5f30b87 29 printf("RMS: %f\n",Vrms);
jvicente 6:1e45b5f30b87 30
jvicente 6:1e45b5f30b87 31
jvicente 6:1e45b5f30b87 32
javiervicente 1:bdbd76df2103 33 }
javiervicente 1:bdbd76df2103 34
jvicente 6:1e45b5f30b87 35
jvicente 6:1e45b5f30b87 36
jvicente 6:1e45b5f30b87 37
jvicente 6:1e45b5f30b87 38
jvicente 6:1e45b5f30b87 39
javiervicente 1:bdbd76df2103 40
jvicente 6:1e45b5f30b87 41
jvicente 6:1e45b5f30b87 42
jvicente 6:1e45b5f30b87 43
jvicente 6:1e45b5f30b87 44
jvicente 6:1e45b5f30b87 45
jvicente 6:1e45b5f30b87 46