I've got 3 ADE9078 and am using STM32 to read the resampled voltage waveform from the waveform buffer. It works well on the first chip but gets crashed on the latter two chips (the software is exactly the same). To be specific, most obtained data tend to be very close to decimal zero(like 0xFFFE or 0x0002, but the expected value is around 220V), a few data may even exceed the full scale which is 18100(0x46B4) according to the datasheet, and a few data seem normal. The SPI function is supposed to be OK because I can read other data like IRMS and VRMS smoothly on these two chips.
The related settings are listed below:
And I noticed that the overlay serial numbers of the chips are different:
Does the overlay number on the top represents the hardware version? If so, is there a chance that my problem is due to an upgrade of the chip? If not, is there something I ignored when using the waveform buffer that may cause the problem?
Thanks for your time in advance.
Regards,
Chen
目前市面上的ADE9078只有一个版本,如果通过调换芯片发现问题的确跟着芯片走,那需要对这两片“问题“ADE9078做失效分析,了解原因。
感谢,根据Datasheet上的数据路径图重新配置了一下WF_SRC为Sinc4+IIR LPF输出,同时优化了一下读波形的函数,问题已经解决,目前看最有可能是WF_SRC设置为Reserved的问题,但是原程序在另一个芯片上能正常工作,所以最终也不是很确定问题原因,不过无论如何还是多谢了!