SPI capturing and decoding

Topics about DSLogic as a logic analyzer
Hi

I'm facing issues with SPI capturing (Only clock and MOSI).

Sometimes capturing succeeds, mostly not.

I have tried different clock frequencies in SPI master. What could be working settings (sample count and rate) to capture single word (8bit) when clock is 30kHz, 100kHz and 1MHz?

For example when clock frequency is 30kHz I need to capture 1M Samples @ 1MHz to get any reasonable output. Sometimes I'm able to get one sample. Both program and device restart does not recover it. I even do not understand how it recovers, but it recovers. When it does not work, voltage levels change but time when it changes does not make any sense.

I have used it before for UART so far without any issues.

I know that SPI works. I'm able to see clock and data with scope and decode it with BusPirate.

Operating system: OS X 10.10.5 (14F1713)
DSView: 0.9.2
silverk
 
Posts: 3
Joined: Fri Mar 18, 2016 12:17 am

Seems that it can be OS X issue. Reboot solved it for this time.

But anyway if clock frequency is 1 MHz I will lose some bits when sample rate is 1 MHz or 2 MHz. It seems to be reliable at 5 MHz.
silverk
 
Posts: 3
Joined: Fri Mar 18, 2016 12:17 am

The sample rate should be 4x-10x times than the signal you captured.
consider the sample point at each signal edge, 2x sample rate may capture nothing.

Thanks.
Andy
Site Admin
 
Posts: 149
Joined: Fri Jul 11, 2014 9:20 am


Return to Logic Analyzer

Who is online
Users browsing this forum: No registered users and 1 guest
cron