Instructions

Chapter 2 Command System RIGOL
MSO5000-E Programming Guide 2-27
:BUS<n>:SPI:SS:SOURce
Syntax :BUS<n>:SPI:SS:SOURce <source>
:BUS<n>:SPI:SS:SOURce?
Description
Sets or queries the source channel of the CS line of SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<source> Real
{D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|
D12|D13|D14|D15|CHANnel1|CHANnel2}
CHANnel1
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, or CHAN2.
Example :BUS1:SPI:SS:SOURce D0 /*Sets the source channel of CS line of SPI decoding to
D0.*/
:BUS1:SPI:SS:SOURce? /*The query returns D0.*/
:BUS<n>:SPI:SS:POLarity
Syntax :BUS<n>:SPI:SS:POLarity <polarity>
:BUS<n>:SPI:SS:POLarity?
Description
Sets or queries the polarity of CS line of SPI decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<polarity>
Discrete
{HIGH|LOW}
LOW
Remarks HIGH: indicates that the oscilloscope samples data of the source channel of data
line on the specified edge of the clock signal when the CS signal is high level.
LOW: indicates that the oscilloscope samples data of the source channel of data
line on the specified edge of the clock signal when the CS signal is low level.
Return
Format
The query returns HIGH or LOW.
Example
:BUS1:SPI:SS:POLarity HIGH /*Sets the polarity of CS line of SPI decoding to HIGH.*/
:BUS1:SPI:SS:POLarity? /*The query returns HIGH.*/