Sebastian C
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Posts posted by Sebastian C
-
-
Hello,
I have connected the AD2 to Spy on an existing SPI Bus between a STM Controller and an IC provided by our Company, and am trying to just spy and log the traffic for tool verification reasons.
When i use the Setup with the Waveforms GUI, everything works fine. It displays all Samples, the data looks ok, everything fine.
As soon as I start using the tool via API (Python or C#, happens on both) the SPI Phase Settings seems to get ignored. I get flipping Bits all over the place, which is the same behaviour as if i set the Phase in the Waveforms GUI (Waveforms -> Protocol -> SPI) to the wrong setting.
The correct Setting for my application is polarity=0 and phase=1, so I used FDwfDigitalSpiModeSet with it's parameter set to 1.I attached the C# and Python programs below for reference, maybe i overlooked something in there, but wouldn't know what should be wrong with it...
Analog Discovery 2 SPI Spy - Waveforms SDK - Phase Setting ignored
in Test and Measurement
Posted · Edited by Sebastian C
Hi attila,
thanks for the fast reply! Had to alter the trigger mask a little, but from your hint i got it to work.
Thanks!