EasyManua.ls Logo

Ocean Optics Flame-S - Page 85

Ocean Optics Flame-S
130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8: Firmware and Advanced Communications
225-00000-000-11-201604 75
Return Byte Format
Byte 0
Byte 1
Byte 2
Byte 3
Byte N+3
I
2
C Results
I
2
C Address
Bytes to Read
Data Byte 0
Data byte N
I
2
C Result Value
Description
0
I
2
C bus Idle
1
I
2
C bus Sending Data
2
I
2
C bus Receiving Data
3
I
2
C bus Receiving first byte of string
5
I
2
C bus in waiting for STOP condition
6
I
2
C experienced Bit Error
7
I
2
C experience a Not Acknowledge (NAK) Condition
8
I
2
C experienced successful transfer
9
I
2
C bus timed out
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
Byte 0
Byte 1
Byte 2
Byte 3
Byte N+3
0x61
I
2
C Address
Bytes to
Write
Data Byte 0
Data byte N
Return Byte Format
Byte 0
I
2
C Results

Table of Contents

Related product manuals