Post Go back to editing

ADE9078's problem about reading resampled waveform.

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:

  • WF_SRC: Reserved
  • WF_CAP_SEL: Resampled Data
  • WF_MODE: Stop when waveform buffer is full
  • BURST_CHAN: All channels

And I noticed that the overlay serial numbers of the chips are different:

  • The chip on the evaluation board (works well): ADE9078ACPZ   #1619 3475320.1
  • The chip that works well: ADE9078ACPZ   #1938 4697562.1
  • The chips in problem (both): ADE9078ACPZ   #1944 4731585.1

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



Added some details.
[edited by: LapFourier at 3:10 PM (GMT -5) on 27 Nov 2020]
Parents Reply
  • 感谢,根据Datasheet上的数据路径图重新配置了一下WF_SRC为Sinc4+IIR LPF输出,同时优化了一下读波形的函数,问题已经解决,目前看最有可能是WF_SRC设置为Reserved的问题,但是原程序在另一个芯片上能正常工作,所以最终也不是很确定问题原因,不过无论如何还是多谢了!

Children