I'm trying to get the Resampled Data for all channels from Waveform buffer of ADE9078.
To do that I set the following in WFB_CFG (0x4A0)
- WF_IN_EN=1 to enable 4th current channel,
- WF_SRC=11 to get Current and voltage channel waveform samples, processed by the DSP
- WF_CAP_SEL=0 to use resampled data
- BURST_CHAN=0 to read All Channels
Then I started capturing with WF_CAP_EN=1 and started polling COH_WFB_FULL bit in STATUS0 to proceed when the Waveform buffer is full (I don't use Interrupt).
Everything seems to work fine but what I get is the following (data from a single VI channel, address 0x800, 0x804, 0x808, ...):
As you can see it looks like the channels V and I swap places alternatively like V-I, then I-V, then V-I, and so on.
Alternatively it looks like I'm missing to read a value every 3. I'm reading values using SPI burst feature.