English
Language : 

S11059-01WT Datasheet, PDF (4/9 Pages) Hamamatsu Corporation – I2C interface-compatible color sensor
Color sensor
S11059-01WT
Program example
Condition 1: Initial setting [manual setting mode, low gain, Tint=00 (175 Njs), integration time 546 ms/ch (0x0C30 is set in manual timing register)]
Command
Action
Data body
Ack
Remark
Address call (0x2A)
S 0 1 0 1 0 1 0 W A 7-bit address
Register call (0x00)
0 0 0 0 0 0 0 0 A Calls control byte
Register write (0x84)
1 0 0 0 0 1 0 0 A ADC reset, standby disabled
Address call (0x2A)
Sr 0 1 0 1 0 1 0 W A Restart, address
Register call (0x00)
0 0 0 0 0 0 0 0 A Calls control byte
Register write (0x04)
0 0 0 0 0 1 0 0 A P ADC reset disabled, bus release
Wait longer than integration time (>2184 ms)
Address call (0x2A)
S 0 1 0 1 0 1 0 W A 7-bit address
Register call (0x03)
0 0 0 0 0 0 1 1 A Calls output data byte
Address call (0x2A)
Sr 0 1 0 1 0 1 0 R A Changes to read mode
Data read out (R: MSB)
Data read out (R: LSB)
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
A
A
Red data output
Data read out (G: MSB)
Data read out (G: LSB)
XXXXXXXX A
X X X X X X X X A Green data output
Data read out (B: MSB)
Data read out (B: LSB)
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
A
A Blue data output
Data read out (Infrared: MSB) X X X X X X X X A Infrared data output
Data read out (Infrared: LSB) X X X X X X X X -A P
WS==SWtarrittecomnodditeio(n0,)S, r-A==Rneosttaarctkcnoonwdlietidogne, A=Acknowledge, A=Acknowledge by host, P=Stop condition, R=Read mode (1),
Format
S
0x2A (7 bits)
WA
0x00
A
0x84
A
Sr
0x2A (7 bits)
WA
0x00
A
0x04
AP
Wait
S
0x2A (7 bits)
WA
0x03
A Sr 0x2A (7 bits) R A
Sensor data
A
Sensor data
A
Sensor data
A
Sensor data
A
Sensor data
A
Sensor data
A
Sensor data
A
Sensor data
AP
from master to slave
from slave to master
4