![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Ejercicio para calcula VRMS
Dependencies: mbed CMSIS_DSP_5
Diff: main.cpp
- Revision:
- 3:44b632ea58aa
- Parent:
- 2:69827542e976
- Child:
- 8:99642487de6f
--- a/main.cpp Wed Oct 17 17:00:32 2018 +0000 +++ b/main.cpp Thu Oct 18 20:11:44 2018 +0000 @@ -3,18 +3,19 @@ Timer timer; float resultado; +int tiempo; float calcularRMS(int16_t *datos, int longitud); int main() { - + timer.reset(); timer.start(); resultado=calcularRMS(datos, 500); timer.stop(); - printf("****El valor Vrms es %f ****\n",resultado); + printf("****El valor Vrms es %f calculado en %d us ****\n",resultado,timer.read_us()); }