summaryrefslogtreecommitdiff
path: root/spi
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2017-05-10 15:00:10 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2017-05-11 01:56:12 +0200
commit047542b95e306abf79083fb48edfa25d1884a13c (patch)
tree73e01efb7bb95dea749d3df4479a039423ce6343 /spi
parentc4b1d63378a146faf477cf6a4688e1cf9940a3a8 (diff)
downloadsigrok-dumps-047542b95e306abf79083fb48edfa25d1884a13c.tar.gz
sigrok-dumps-047542b95e306abf79083fb48edfa25d1884a13c.zip
spi/ade7758: examples without CS pin
A short example of IRQ triggered SPI operation of the ADE7758 energy measurement chip, showing it's use of spi mode 0,1 without a chip select pin. Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'spi')
-rw-r--r--spi/ade7758/README21
-rw-r--r--spi/ade7758/ade7758-phase-b-zx-irq-context.srbin0 -> 629 bytes
-rw-r--r--spi/ade7758/ade7758-phase-b-zx-irq-nocontext.srbin0 -> 633 bytes
3 files changed, 21 insertions, 0 deletions
diff --git a/spi/ade7758/README b/spi/ade7758/README
new file mode 100644
index 0000000..2b491fe
--- /dev/null
+++ b/spi/ade7758/README
@@ -0,0 +1,21 @@
+50MHz capture of an ADE7758 SPI communications.
+Note that Chip Select is _optional_ on this device, provided that you are
+careful to only use valid, full length spi read/write requests.
+
+In this case, the chip is configured to provide interrupts on voltage zero
+crossings, and the host MCU is reading the status register, and then the
+appropriate (phase B) voltage/current registers.
+
+It is largely an example of SPI without CS, in spi mode 0,1.
+
+Two captures are provided.
+ade7758-phaseB-zx-irq-context.sr: trigger with precapture on the IRQ pin falling edge.
+ade7758-phaseB-zx-irq-nocontext.sr: trigger on spi CLK rising edge.
+
+Correct decodings with the ADE7758 decoder should show
+RSTATUS: 0x400
+FREQ: 0x0 (frequency is from phase A, not connected on this device)
+BVRMS: 0x10cd0c (context) or 0x10ccfa (nocontext)
+BIRMS: 0x2ac (context) or 0x2a8 (nocontext)
+
+Anything else has gotten the SPI decoding wrong due to the lack of chip select.
diff --git a/spi/ade7758/ade7758-phase-b-zx-irq-context.sr b/spi/ade7758/ade7758-phase-b-zx-irq-context.sr
new file mode 100644
index 0000000..a3e9d3f
--- /dev/null
+++ b/spi/ade7758/ade7758-phase-b-zx-irq-context.sr
Binary files differ
diff --git a/spi/ade7758/ade7758-phase-b-zx-irq-nocontext.sr b/spi/ade7758/ade7758-phase-b-zx-irq-nocontext.sr
new file mode 100644
index 0000000..c9b5630
--- /dev/null
+++ b/spi/ade7758/ade7758-phase-b-zx-irq-nocontext.sr
Binary files differ