]>
Commit | Line | Data |
---|---|---|
1 | ------------------------------------------------------------------------------- | |
2 | Analog Devices ADE7758 | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is a set of example captures of ADE7758 SPI communications. | |
6 | ||
7 | Note that Chip Select is _optional_ on this device, provided that you are | |
8 | careful to only use valid, full length SPI read/write requests. | |
9 | ||
10 | Details: | |
11 | http://www.analog.com/en/products/analog-to-digital-converters/integrated-special-purpose-converters/energy-metering-ics/ade7758.html | |
12 | ||
13 | ||
14 | Logic analyzer setup | |
15 | -------------------- | |
16 | ||
17 | The logic analyzer used was a Saleae Logic16 clone (at 50MHz): | |
18 | ||
19 | Probe ADE7758 pin | |
20 | ----------------------- | |
21 | 0 CLK | |
22 | 1 MISO | |
23 | 2 MOSI | |
24 | 3 IRQ | |
25 | ||
26 | ||
27 | Data | |
28 | ---- | |
29 | ||
30 | In this case, the chip is configured to provide interrupts on voltage zero | |
31 | crossings, and the host MCU is reading the status register, and then the | |
32 | appropriate (phase B) voltage/current registers. | |
33 | ||
34 | It is largely an example of SPI without CS, in SPI mode 0,1. | |
35 | ||
36 | Correct decodings with the ADE7758 decoder should show: | |
37 | ||
38 | RSTATUS: 0x400 | |
39 | FREQ: 0x0 (frequency is from phase A, not connected on this device) | |
40 | BVRMS: 0x10cd0c (context) or 0x10ccfa (nocontext) | |
41 | BIRMS: 0x2ac (context) or 0x2a8 (nocontext) | |
42 | ||
43 | ||
44 | ade7758-phaseB-zx-irq-context.sr | |
45 | -------------------------------- | |
46 | ||
47 | Trigger with precapture on the IRQ pin falling edge. | |
48 | ||
49 | ||
50 | ade7758-phaseB-zx-irq-nocontext.sr | |
51 | ---------------------------------- | |
52 | ||
53 | Trigger on SPI CLK rising edge. | |
54 |