8: Firmware and Advanced Communications
225-00000-000-11-201604 75
Return Byte Format
I
2
C bus Receiving first byte of string
I
2
C bus in waiting for STOP condition
I
2
C experienced Bit Error
I
2
C experience a Not Acknowledge (NAK) Condition
I
2
C experienced successful transfer
General I2C Write
Performs a general purpose write on the I
2
C pins for interfacing to attached peripherals. The
time to complete the command is determined by the amount of data transferred and the
response time of the peripheral. In all I2C communications, the first byte of the transaction
consists of a 7 bit address and a read/write bit. The “address” that is passed as the second
byte of the I2C write command is this 7 bit address, which will be shifted 1 bit left and
appended with the R/W bit to form the first byte of the I2C write transaction. The I
2
C bus runs
at 400KHz. The results codes are described above.
Command Byte Format
Return Byte Format