AnsweredAssumed Answered

ADE9078 Resampled Data waveform for all channels

Question asked by MaurizioBianchi@PwrEng.IT on Jun 17, 2017
Latest reply on Jul 7, 2017 by nchandra

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, ...):

103,1077
1566,134
164,2067
2533,194
220,2974
3409,1
1,287
302,4392
4684,312
325,4995
5189,331
331,5263
5279,2
1,336
333,5293
5297,316
311,5328
5164,289
257,4707
4252,1
2,205
179,3146
2664,131
99,2200
1708,55
24,1200
626,1
2,-59

....

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.

Any idea?

/Maurizio

Outcomes