Hi all.
I just can't for the life of me have my scope decode SPI signals. Here's the context:
I wrote an Arduino sketch that uses SPI to control a serial display. The code works and the display, too, as expected. I also wanted to compare that sketch to some other code I wrote, so I needed to see SPI signals and actually decode that, it's just easier (nothing too fancy here, right).
So I hooked my scope's probes to MOSI and SCK. I set the decode type to SPI, set MOSI to channel 2 and CLK to channel 1, properly set the threshold values to 2.6-2.8V or thereabouts, set the clock edge to rising and... nothing. Or shall I say, that damn thing only sees zeroes. I **know** for a fact the edge is "Rising" since I programmed the SPI bus of my ATmega2560 to "MODE0" (i.e. shift on falling, latch on rising, basically). If I switch the CLK signal from "falling" to "rising", then I get... nothing at all!
I then got back to the f*** manual, saw that I forgot to also program the CS channel. I then set it to "CLK time-out", redid the measurements... no friggin' change!
Is it me or that damn' thing?
Attached is my situation as last described. The scope should *at least* read something like 0x00, 0x81, 0x8<something> but no. Doesn't even read anything.
EDIT: The next two pictures show the signals from the Arduino, MOSI on top and CLK below. Superimposed on the second pic is the "Decode" overlay. Complete crap, as you can see.
Is it really hopeless?
Note: I've used I²C before and, contrary to my SPI experience, it was really great. It's probably the first time I ever needed to decode SPI (or I just forgot I did in the past, quite possible).
Anyway thanks for any hint or suggestion.