Hi all, @xiangjun_rong
I've been trying to learn twrkm35z75m_meterlibph_test project with SDK_2.x_TWR-KM35Z75M with metering library. There, phase V / I samples are read from AFE and passed to the metering algorithm via METERLIB1PH_ProcSamples().
Yet, I can't find any AFE converted values are being used in twrkm35z75m_meterlibph_test examples, as in contrast, in twrkm35z75m_afe_polling example project - I can see API's like AFE_Init, AFE_SetChannelConfig, AFE_DoSoftwareTriggerChannel,AFE_GetChannelConversionValue,etc.
Also, in example,twrkm35z75m_meterlibFFT1ph_test even the fsl_afe driver is not added. Why is it so? Without driver for AFE, how can the meter example has been developed?!So can someone explain how to setup and how does the example project work?!
Testing Environment:
- OS - Ubuntu
- IDE - MCUXpresso IDE
- SDK - SDK_2.14.0_TWR-KM35Z75M built using online SDK builder with metering middleware enabled
- Project - demo_apps/twrkm35z75m_meterlibph_test