« Close

Datasheets and User Guides

App Notes

Software & Driver

 

13.2.1 I2C Simulation Tool

Click HERE for a larger version of this tool.

I2C Simulator

This JavaScript application is designed to help give an understanding of the LabJack T4 and LabJack T7's I2C functionality. For more information about the T4 and T7's I2C functionality and register descriptions look at the I2C section of the T7's datasheet. Each I2C register that effects the output is shown below. The two registers that are omitted are "I2C_GO" and "I2C_ACKS".

"I2C_GO" Executes the configured I2C request, and "I2C_ACKS" reads the received ACKs & NACKs packed into a binary array.

Test out various I2C configuration settings and view the expected result.

  • I2C Op:
  • SDA/FIO0:
  • SCL/FIO0:

Enter I2C Configuration Settings Below

I2C_SDA_DIONUM:

I2C_SCL_DIONUM:

I2C_SPEED_THROTTLE:

I2C_OPTIONS:

Enable Reset-On-Start:

Enable No-Stop on Restart:

Enable Clock Stretching:

Result:

--Input below in hexadecimal--

I2C_SLAVE_ADDRESS:

I2C_NUM_BYTES_TX:

I2C_NUM_BYTES_RX:

I2C_DATA_TX:

I2C_DATA_RX:

Key:

  • A: Indicates an I2C-Ack bit writing a byte of data
  • C: Indicates an I2C-Clock stretch occurring to slow down transmission
  • N: Indicates an I2C-Nack bit writing a byte of data
  • P: Indicates an I2C-Stop Condition
  • R: Indicates an I2C-Read bit appearing after the slave address is sent
  • RESET: Indicates an I2C-Reset Condition
  • S: Indicates an I2C-Start Condition
  • W: Indicates an I2C-Write bit appearing after the slave address is sent

Have any comments, please leave them below