summaryrefslogtreecommitdiff
path: root/tests/i2c-master/README.md
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2017-03-01 22:53:58 +0000
committerKarl Palsson <karlp@tweak.net.au>2017-03-01 22:53:58 +0000
commit12f454b41b8d64fb22a55ba9cd748f62ec4f34e9 (patch)
tree3e464cd1d49f216a803b79a575dff6e70ede984e /tests/i2c-master/README.md
parentd30f38ed3c2bf38ef57dd14fac672722b480927c (diff)
downloadolsndot-12f454b41b8d64fb22a55ba9cd748f62ec4f34e9.tar.gz
olsndot-12f454b41b8d64fb22a55ba9cd748f62ec4f34e9.tar.bz2
olsndot-12f454b41b8d64fb22a55ba9cd748f62ec4f34e9.zip
i2c-master: tidy up more.
Still f4 only, but cleaner, and more testing with sigrok for verification
Diffstat (limited to 'tests/i2c-master/README.md')
-rw-r--r--tests/i2c-master/README.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/i2c-master/README.md b/tests/i2c-master/README.md
index 74acefb..1eb832f 100644
--- a/tests/i2c-master/README.md
+++ b/tests/i2c-master/README.md
@@ -8,10 +8,19 @@ Instead, use a known I2C peripheral on all boards, and require/expect
a known fixed i2c slave device. (Eventually, this will be a soft
controllable i2c slave in the auto test setup ;)
+the "trigger" pin is bounced when each iteration of the test code starts,
+allowing synchronization with a sigrok script that helps assure that
+results are as expected.
+
Debug is via SWO wherever possible, PA2 (tx only) on less capable cores
-Pinouts:
+Pinouts: (External PullUps REQUIRED!)
+
+board SCLK SDA i2cperiph trigger
+f4-disco PB8 PB9 i2c1 PB13
-board SCLK SDA
-f4-disco PB8 PB9 i2c1
+Notes for monitoring with sigrok:
+$ sigrok-cli -d fx2lafw -C D0=SDA,D1=SCL,D2=Trig -c samplerate=4Mhz:captureratio=4 --time=150ms -t Trig=r -o cap2.cli.sr
+# Then open the .sr file in pulseview. something's wrong with decoding
+# directly from the cli!