Other Parts Discussed in Thread: C2000WARE-DIGITALPOWER-SDK, C2000WARE
Tool/software: Code Composer Studio
hello sir/madam,
i want to calculate the AC input voltage RMS which frequency range is from 40-65HZ.
the sampled signal to ADC is a sine wave from 0 -3V.
previously i implemented this by detecting a max value, but when is system is running(our product is a high power related), there maybe some noise and the result precision is not good.
so i think to get RMS maybe lead to a better result.
do you have some suggestion on
1. how many samples and sample rate should be used, since the frequency of the input signal is variable?
2. in order to calculator the RMS. the operation of *, / , and squr() will be used which is time consuming. Does TI have some library function to support this?
thank you in advance for the relay.