Is there a True RMS Converter example project available?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is there a True RMS Converter example project available?

963件の閲覧回数
adamgarrison
Contributor III

Is there example project available for the True RMS Converter?  There have been rumors that there is one available for the M series, but it is not available in the SDK 1.3.  I am hoping to use it on a K02.

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 返信

824件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Adam Garrison,

    I didn't find the RMS converter in the KSDK1.3.0, so you can use the code to generate it.

    The following code is for your reference:

#include "math.h"

double calc(double* pData, int nNum)

{

    double fSum = 0;

    for(int i=0; i<nNum; ++i)

    {

        fSum += pData[i] * pData[i];

    }

    return sqrt(fSum/nNum);

}

Wish it helps you!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信