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.
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 ?
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.