![Ocean Optics Flame-S User Manual Download Page 110](http://html1.mh-extra.com/html/ocean-optics/flame-s/flame-s_user-manual_3228091110.webp)
8: Firmware and Advanced Communications
100
225-00000-000-11-201604
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. 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
General SPI Input/Output
Performs a general-purpose write and read on the SPI bus 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. The SPI bus runs at ~25KHz Clock. The
maximum number of bytes that can be written or read is 61. During this transfer the SPI Chip
Select signal is driven to an active LOW TTL level. Data is transmitted out the MOSI (Master Out
Slave In) line on the rising edge of the clock signal. Data is also latched in the from the MISO
line on the falling edge of the clock signal.
Command Byte Format
Byte 0
Byte 1
Byte 2
Byte 3
…
Byte N+2
0x62
# of Bytes (N) Write Byte 0
Write Byte 1
…
Write Byte N
Return Byte Format
Byte 0
Byte 1
Byte 2
Byte 3
…
Byte N+1
# of Bytes (N) Read Byte 0
Read Byte 1
Read Byte 2
…
Read Byte N
Write Register Information
Most all of the controllable parameters for the Flame are accessible through this command
(e.g., GPIO, strobe parameters, etc.). A complete list of these parameters with the associate
register information is shown in the table below. Commands are written to End Point 1 Out
typically with 4 bytes (some commands may require more data bytes). All data values are 16 bit
values transferred in MSB | LSB order. This command requires 100µs to complete; the calling
Summary of Contents for Flame-S
Page 18: ...1 Introduction 8 225 00000 000 11 201604...
Page 32: ...2 Installation and Setup 22 225 00000 000 11 201604...
Page 46: ...4 Troubleshooting 36 225 00000 000 11 201604...
Page 54: ...5 How the Flame Spectrometer Works 44 225 00000 000 11 201604...
Page 74: ...7 Calibration 64 225 00000 000 11 201604...
Page 130: ...Index 120 225 00000 000 11 201604...