Serial Decoding - SPI support

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
holgh
Newbie
Posts: 0
Joined: Wed Jun 20, 2012 8:17 am

Serial Decoding - SPI support

Post by holgh »

Hello community,

I am using Picoscope 2205 MSO, trying to decode serial SPI data on digital input channels (D0: clock, D1: SS, D2 MOSI).
Clock polarity (CPOL) is set to 0, with clock phase (CPHA) set to 1.

I can't find a setting for clock phase ... and the with the settings provided I cannot decode my signals correctly.

What can I do?

Thx for help!

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Serial Decoding - SPI support

Post by Martyn »

Can you go to "File->SaveCurrentWaveform" to save a psdata file which you can post here for us to take a look at.
Martyn
Technical Support Manager

holgh
Newbie
Posts: 0
Joined: Wed Jun 20, 2012 8:17 am

Re: Serial Decoding - SPI support

Post by holgh »

Here you have ...

Thx!
Attachments
20120620-SPI-Log.psdata
SPI data log (PicoScope V6.7.2.1 Beta)
(15.71 KiB) Downloaded 621 times

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Serial Decoding - SPI support

Post by Martyn »

You are correctly set up for clock polarity zero and phase of 1 by sampling clock on falling edge.

I would suggest triggering on a digital channel, not Chan A, and looking at your data I would suggest rising edge on D1 with no pre trigger which will leave you with a clean trace before you start decoding. I think the decode routine is being confused by the data at the start of the window.

Do you know what data you are expecting to decode ?
Martyn
Technical Support Manager

holgh
Newbie
Posts: 0
Joined: Wed Jun 20, 2012 8:17 am

Re: Serial Decoding - SPI support

Post by holgh »

Thx for your hint.

Basically it's a good idea, except that the last byte is not recognized (see attachment).
But, in fact, I need to see SPI data at a certain time triggered on analog channel A, of couse ;-).

SPI Data input should not be too difficult to decode, so I hope to arouse some ambition in your team. And, btw, it would ebe nice if the code is more robust towards noise spikes in the digital domain.

Thx,
Holger
Attachments
21120620-SPI-Log.psdata
triggered on chip select line
(12.34 KiB) Downloaded 588 times

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Serial Decoding - SPI support

Post by Martyn »

It makes perfect sense to me so I have put in a feature request to enable serial decoding from a vertical cursor.
Martyn
Technical Support Manager

holgh
Newbie
Posts: 0
Joined: Wed Jun 20, 2012 8:17 am

Re: Serial Decoding - SPI support

Post by holgh »

Thx Martyn!

MSO Fan
Newbie
Posts: 0
Joined: Fri May 10, 2013 6:12 am

Re: Serial Decoding - SPI support

Post by MSO Fan »

It makes perfect sense to me so I have put in a feature request to enable serial decoding from a vertical cursor.

- just checking to see if this feature/enhancement has been implemented? Thx

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Serial Decoding - SPI support

Post by Martyn »

It didn't make it into the 6.7 release, but may catch the 6.8 Beta which will be including some new serial decoding features.
Martyn
Technical Support Manager

Post Reply