Epics@GSI Webhome

HadCon Multipurpose Controls Protocol Cmnd I2 C


Command description of the API command I2C for HadCon2 . With the help of the I2C command, we could configure, write and read all I2C peripheria. i2c-address.png
Fig. 1 Example, how it looks one I2C address

I2C cmnd

I2C <0|1> <I2C address> <data length> <byte1 ... byte8>

<0|1> : used to execute write or read operation. This is the Least Significant Bit (LSB) from the I2C address byte.

<I2C address> : Here has to be written the hexadecimal value on the address byte, which is shifted to right with one bit. The reason for the right shift is because, the lsb bit ist already used in the first field, where the working operation is choosen.

<data length> : data length

<byte1 ... byte8> : data

Example command:
send: I2C O 70 1 08
receive: RECV I2C 0 70 01 08 -OK-

-- PeterZumbruch - 28 Sep 2015

-- PeterZumbruch - 2020-11-09
Topic revision: r4 - 2020-11-09, PeterZumbruch - This page was cached on 2021-01-12 - 23:20.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Imprint (german) | Privacy Policy (german)