User manual
Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-53
:DECoder<n>:SPI:MODE
Syntax :DECoder<n>:SPI:MODE <CsTmo>
:DECoder<n>:SPI:MODE?
Description Set or query the frame synchronization mode of SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<CsTmo>
Discrete
{CS|TIMeout}
TIMeout
Explanation CS: it contains a chip select line (CS). You can perform frame synchronization
according to CS. At this point, you need to send the
:DECoder<n>:SPI:CS
and
:DECoder<n>:SPI:SELect commands to set the CS channel source and polarity.
TIMeout: you can perform frame synchronization according to the timeout time. At
this point, you need to send the
:DECoder<n>:SPI:TIMeout command to set the
timeout time.
Return
Format
The query returns CS or TIM.
Example
:DECoder1:SPI:MODE CS /*Set the frame synchronization mode of SPI decoding to
CS*/
:DECoder1:SPI:MODE? /*The query returns CS*/
:DECoder<n>:SPI:TIMeout
Syntax :DECoder<n>:SPI:TIMeout <tmo>
:DECoder<n>:SPI:TIMeout?
Description
Set or query the timeout time in the timeout mode of SPI decoding. The default unit is s.
Parameter
Name Type Range Default
<n>
Discrete
{1|2}
--
<tmo>
Real
Refer to Explanation
1.00us
Explanation The timeout time should be greater than the maximum pulse width of the clock and
lower than the idle time between frames.
This command is only valid in the timeout mode (:DECoder<n>:SPI:MODE).
Return
Format
The query returns the timeout time in scientific notation.
Example
:DECoder1:SPI:TIMeout 0.000005 /*Set the timeout time to 5us*/
:DECoder1:SPI:TIMeout? /*The query returns 5.000000e-06*/