Instructions
RIGOL Chapter 2 Command System
2-46 DS1000Z-E Programming Guide
:DECoder<n>:SPI:SELect
Syntax :DECoder<n>:SPI:SELect <CsNcs>
:DECoder<n>:SPI:SELect?
Description Set or query the CS polarity in SPI decoding.
Parameter
Name Type Range Default
<n>
Discrete
{1|2}
--
<CsNcs>
Discrete
{NCS|CS}
NCS
Explanation
NCS: low level is valid (
). The instrument starts transmitting data when the
CS is low.
CS: high level is valid (
). The instrument starts transmitting data when the
CS is high.
This command is only valid in the CS mode (:DECoder<n>:SPI:MODE).
Return
Format
The query returns NCS or CS.
Example
:DECoder1:SPI:SELect CS /*Set the CS polarity to high level is valid*/
:DECoder1:SPI:SELect? /*The query returns CS*/
: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.










