Author Topic: SDS1202X-E Trigger Serial doesnt work?  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline STM55Topic starter

  • Newbie
  • Posts: 1
  • Country: pl
SDS1202X-E Trigger Serial doesnt work?
« on: January 16, 2024, 02:13:44 pm »
Hi! I cant trigger spi signal (1 burst in 2 seconds)
Latest firmware 1.3.27
Spi in: mode 3
Data sent: 0xF0
Trigger set to -> serial
data : 8
Clock:CH1: edge:falling treshold 1V
MOSI:CH2 treshold 1V
bits set to: xxxx xxxx
order: MSB

Auto semms to give short blip on screen, normal mode does nothing, single mode does nothing.

I can trigger this signal in trigger: edge, it looks ok.

Edge:
« Last Edit: January 16, 2024, 02:16:14 pm by STM55 »
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29189
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #1 on: January 16, 2024, 08:21:17 pm »
Seems obvious you have data that isn't coinciding with the clock.  :-//
No wonder a Serial trigger is confused.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 27662
  • Country: nl
    • NCT Developments
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #2 on: January 16, 2024, 08:40:06 pm »
Buzzz. Wrong answer. That data looks just fine. Keep in mind that with SPI data can be send/captured on rising or falling edges. In this case data is sent on rising edges and captured by the device on the falling edges.

The right answer is likely that just like serial decoding, SPI decoding got messed up as well on a recent firmware release on this oscilloscope. The OP can try to downgrade to a previous firmware version to see if that works.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29189
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #3 on: January 16, 2024, 10:26:19 pm »
Buzzz. Wrong answer. That data looks just fine. Keep in mind that with SPI data can be send/captured on rising or falling edges. In this case data is sent on rising edges and captured by the device on the falling edges.
Data is Ch2, and about 4 clock cycles of it are before the active the clock period.
Something is wrong with the OP's setup.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 6856
  • Country: de
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #4 on: January 16, 2024, 10:44:41 pm »
Data is Ch2, and about 4 clock cycles of it are before the active the clock period.
Something is wrong with the OP's setup.

It should not matter what the data line does before the clock pulses start. There is valid data while the clock ticks, and it does represent the intended value of $F0, sent MSB first.

However, it looks like the data line changes exactly on a falling edge of the clock. If that is meant ot be the active clock edge, there may be an ill-defined state at that point. (If a hold time is required after the edge -- not sure whether that is the case?)
 

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7113
  • Country: hr
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #5 on: January 16, 2024, 11:08:43 pm »
SPI supports 4 modes.

Mode 3 is clock idle state high, sample on rise edge, clock out on falling edge.
So data edges will be in synch with clock falling edge, and sampled on next rising clock edge.

Most commonly used mode is mode 0. Means clock is idle low.
When you use CS too it is obvious what framing is. You only need to set what clock sampling edge is.
With only 2 ch used, you need to set framing by timeout.

for mode 3 you need to set clock rising and set proper timeout
« Last Edit: January 16, 2024, 11:10:20 pm by 2N3055 »
 

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7113
  • Country: hr
Re: SDS1202X-E Trigger Serial doesnt work?
« Reply #6 on: January 16, 2024, 11:14:43 pm »
Just a note.
Useful practice is to set decode first with single (or about one) data frame captured by using single edge trigger. You set decode setup to the point it decodes right. Then copy setup to trigger.
That way you have verified the setup beforehand.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf