Specifications
RIGOL 2 Command System
2-524 DS2000 Programming Guide
2-524
:TRIGger:IIC:WHEN
Syntax
:TRIGger:IIC:WHEN <trig_type>
:TRIGger:IIC:WHEN?
Description
Set the trigger condition of IIC trigger.
Query the current trigger condition of IIC trigger.
Parameter
Name Type Range Default
<trig_type> Discrete
{STARt|RESTart|STOP|NACKnowled
ge |ADDRess|DATA|ADATa}
STARt
Explanation
STARt: trigger when SDA data transitions from high to low while SCL is high.
RESTart: trigger when another start condition occurs before a stop condition.
STOP: trigger when SDA data transitions from low to high while SCL is high.
NACKnowledge: trigger when the SDA data is high during any acknowledgement of
SCL clock position.
ADDRess: trigger on the clock (SCL) edge corresponding to the byte of data (SDA)
behind the preset address (Write, Read or R/W direction).
DATA: the trigger searches for the control byte value on the data line (SDA) following
which there is a reading bit and an acknowledgement bit and then searches for the
specified data value.
ADATa: trigger when the “Address” and “Data” conditions are met at the same time.
Return Format
The query returns STAR, STOP, NACK, REST, ADDR, DATA or ADAT.
Example
:TRIGger:IIC:WHEN RESTart
The query returns REST.