Hi @xiangjun_rong ,
Thats really nice. The TWRboard used - MKM35Z512VLQ7 in 144pin, where 45/46 -- acts as defatult AFE pins.

as given below,

Yet, what fascinates me is this line ::: 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.
Even though being a AFE default function in KM35 in 144pin package, the result from AFE should be read with the aid of AFE_GetChannelConversionValue funtion, which is what missing in twrkm35z75m_meterlibFFT1ph_test example!!! Why is it so?!
As a matter of fact, 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?!