I²C analyzer

I²C analyzer Sink The I²C analyzer sink decodes analog data on an I²C bus to I²C data. Just measure the Clock and Data lines of the I²C bus with a scope and connect the measuring channels to an analyzer sink.

The I²C analyzer always needs two sources: the first connected source will be used as I²C SCL (clock) and the second connected source will be used as I²C SDA (data).

I²C communication uses 7 bit addresses, followed by a bit that indicates a read (1) or write (0) of that address. The I²C analyzer displays the 7 bit addresses in its output.

All read and written data displayed by the I²C analyzer is shown in hexadecimal format, only addresses are prefixed with 0x.

The sink uses a window for its output. The output can be saved to a text file.

Usage

Acquisition settings

For best results, use the following setups to capture the data:

I²C mode Maximum bus rate Minimum sample frequency Pre-trigger Trigger timeout Trigger channel Trigger type Trigger level
Low speed mode 10 kHz 50 kHz 1% Infinite I²C SDA (data) Falling 2 V
Standard mode 100 kHz 500 kHz 1% Infinite I²C SDA (data) Falling 2 V
Fast mode 400 kHz 2 MHz 1% Infinite I²C SDA (data) Falling 2 V
Fast mode plus 1 MHz 5 MHz 1% Infinite I²C SDA (data) Falling 2 V
High speed mode 4.3 MHz 25 MHz 1% Infinite I²C SDA (data) Falling 2 V
Ultra fast mode 5 MHz 25 MHz 1% Infinite I²C SDA (data) Falling 2 V

Note: Currently I²C High Speed mode is not fully supported.

Address aliases

I²C uses device addresses to communicate to specific devices on the bus. For easy recognition of the devices in the decoded data, the I²C analyzer supports address aliases. Address aliases can be added and changed on the Aliases page of the output window.

I²C analyzer - aliases

On the aliases page in the output window, the following actions are available:

Add addressAdd address

Add an address item to the list of address aliases.

Edit address aliasEdit address alias

Edit the address alias of the selected item in the list of address aliases. This can also be achieved by double clicking the address field on the selected line.

Remove selected addressRemove selected address

Remove the selected address item from the list of address aliases.

Load I²C address fileLoad I²C address file

Load a file with address aliases.

Save I²C address fileSave I²C address file

Save the current list of address aliases to a file.

Properties and actions

To control the behavior of the I²C analyzer sink, several properties and actions are available. These can be accessed through a toolbar with buttons at the top of the I²C analyzer output window and through a popup menu which is shown when the sink is right clicked in the Object tree.

I²C analyzer - Data

Voltage

I²C supports two different bus voltages: 3.3 and 5 V. The Voltage property needs to be set accordingly for proper decoding. The default value is 3.3 V. The Voltage property is available through the popup menu.

ClearClear

The Clear action clears all text from the I²C analyzer output window The Clear action is available as button on the toolbar.

Swap inputsSwap inputs

The I²C analyzer always needs two sources: the first connected source will be used as I²C SCL (clock) and the second connected source will be used as I²C SDA (data). When the sources are connected the wrong way, the Swap inputs action will correct it. The Swap inputs action is available as button on the toolbar and through the popup menu.

Auto scroll to bottomAuto scroll to bottom

The Auto scroll to bottom property makes the I²C analyzer output window scroll to the bottom of its content each time new data has arrived, making the latest data visible. The Auto scroll to bottom property is available as button on the toolbar.

Export dataExport data

The Export data action saves the content of the I²C analyzer output window to a text file. The Export data action is available as button on the toolbar.

Always on topAlways on top

When the Always on top property is switched on, the I²C analyzer output window cannot be hidden under other windows of the Multi Channel oscilloscope software. The Always on top property is available in the popup menu.

Common properties and actions