Requirements to decode SPI

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
drnicolas
Newbie
Posts: 0
Joined: Tue Dec 25, 2012 3:08 pm

Requirements to decode SPI

Post by drnicolas »

I have porblems to decode SPI-data.

I have D0,D1,D2 for MISO, SCK and CS. I have automatic triggering on falling edge of D2.
Settings are made for 16 Bit.

But, I normally see no decoded data (unknown only)

My 16-Bits come in 2 Bytes with a short gap between them.

WHat can I do to safely decode SPI ?

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

Re: Requirements to decode SPI

Post by Martyn »

Can you post a psdata file, File->SaveCurrentWaveformAs, so that we can look at the data and the decode settings
Martyn
Technical Support Manager

drnicolas
Newbie
Posts: 0
Joined: Tue Dec 25, 2012 3:08 pm

Re: Requirements to decode SPI

Post by drnicolas »

I am a little better now, but not yet satisfied.

I actually don't know, how I managed that at least some of the packets are decoded.

Maybe the small spikes seen in the data are the problem. Can I get rid of them ?

drnicolas
Newbie
Posts: 0
Joined: Tue Dec 25, 2012 3:08 pm

Re: Requirements to decode SPI

Post by drnicolas »

Okay, here comes a psdata-file.

It comes from a 12-bit SPI (not 16 Bit).

I always get instead of useful data.

D5 is the return-channel and therefore has no useful data at the momemnt.

Do you have any tips for me ?
Attachments
12-Bit-SPI.psdata
(18.4 KiB) Downloaded 491 times

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

Re: Requirements to decode SPI

Post by Martyn »

Unfortunately we only have 8,16,24 or 32 bit decoding at present and none of these will decode the 12bit signals you have. The closest is 8 bit which gets the first two nibbles of the data but not the third.
Martyn
Technical Support Manager

drnicolas
Newbie
Posts: 0
Joined: Tue Dec 25, 2012 3:08 pm

Re: Requirements to decode SPI

Post by drnicolas »

But, I have also lots of problems with 32-Bits.

Otherwise, I can write any number of bits in the decoding settings - indeed, 8,16,32 are given in the drop-down list. But I can write any number I like.

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

Re: Requirements to decode SPI

Post by Martyn »

I didn't know that worked, they keep adding features without telling us :(

If you change the clock sampling to falling edge, having manually entered 12 bits, you can decode 082 for MSB or 410 for LSB. Are either of these correct ?
Martyn
Technical Support Manager

Post Reply