Instructions
RIGOL Chapter 2 Command System
2-26 MSO5000-E Programming Guide
the data is transmitted first.
LSB: indicates Least Significant Bit transmission sequence, i.g. the lowest bit of
the data is transmitted first.
Return
Format
The query returns MSB or LSB.
Example
:BUS1:SPI:ENDian LSB /*Sets the endian of data transmission of SPI decoding
to LSB.*/
:BUS1:SPI:ENDian? /*The query returns LSB.*/
:BUS<n>:SPI:MODE
Syntax :BUS<n>:SPI:MODE <mode>
:BUS<n>:SPI:MODE?
Description
Sets or queries the decode mode of SPI decoding.
Parameter
Name Type Range Default
<n>
Discrete
{1|2|3|4}
——
<mode>
Discrete
{CS|TIMeout}
TIMeout
Remarks CS: indicates chip select. CS: contains a chip select line (CS). You can perform
frame synchronization according to CS.
TIMeout: indicates timed out. You can perform frame synchronization according to
the timeout. At this time, you can send the
:BUS<n>:SPI:TIMeout:TIME
command to set the timeout value.
Return
Format
The query returns CS or TIM.
Example
:BUS1:SPI:MODE CS /*Sets the decode mode of SPI decoding to CS.*/
:BUS1:SPI:MODE? /*The query returns CS.*/
:BUS<n>:SPI:TIMeout:TIME
Syntax :BUS<n>:SPI:TIMeout:TIME <time>
:BUS<n>:SPI:TIMeout:TIME?
Description
Sets or queries the timeout value of SPI decoding. The default unit is s.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<time>
Real
8 ns to 10 s
1 μs
Remarks The timeout must be greater than the maximum clock pulse width and less than
the idle time between frames.
This setting command is only valid in timeout mode.
Return
Format
The query returns the timeout value in scientific notation.
Example
:BUS1:SPI:TIMeout:TIME 0.000005 /*Sets the timeout value to 5 μs.*/
:BUS1:SPI:TIMeout:TIME? /*The query returns 5.000000E-6.*/










