Bus1:spi:sclk:polarity, Bus1:spi:ss:polarity, Bus1:spi:wordsize – GW Instek GDS-2000A series Programming Manual User Manual
Page 175

COMMAND DETAILS
175
Example
:BUS1:UART:RX:SOURce D1
Sets channel D1 as the Rx source.
:BUS1:SPI:SCLK:POLARity
Description
Sets or queries the polarity of the SCLK line for the
SPI bus.
Syntax
:BUS1:SPI:SCLK:POLARity { FALL | RISE | ? }
Parameter/Return
parameter
FALL
Sets the polarity to falling edge.
RISE
Sets the polarity to rising edge.
Example
:BUS1:SPI:SCLK:POLARity FALL
Sets the polarity to falling edge.
:BUS1:SPI:SS:POLARity
Description
Sets or queries the polarity of the SS line for the SPI
bus.
Syntax
:BUS1:SPI:SS:POLARity { LOW | HIGH | ? }
Parameter/Return
parameter
LOW
Active low polarity
HIGH
Active high polarity
Example
:BUS1:SPI:SS:POLARity LOW
Sets the SS line to active low.
:BUS1:SPI:WORDSize
Description
Sets the number of bits per word for the SPI bus.
Syntax
:BUS1:SPI:WORDSize {<NR1> | ? }
Parameter/Return
parameter
<NR1>
Bits per word (4~32)
Example
:BUS1:SPI:WORDSize 4
Sets the word size to 4 bits per word.
Set
Query
Set
Query
Set
Query