21 B5WC Built- In Color Sensor User's Manual (E612- E1- 01)
■I
2
C data address
The following are data address assignments and precautions for I
2
C communication.
data
address
(*1)
data
block
summary R/W
(*2)
(*4)
initial
value
(*3)
remarks
0x00 Protection
features
Write
Protect
R/W 0x5A
Permit/Prohibit writing to writable data addresses
(*5)
0x5A:Write Protect Disabled
Other than 0x5A: Write Protect enabled
0x01 setup Average
number of
times
R/W 0x14
Average number of RGB values to be output
(*6)
LSB: 1, Unit: Times, Range: 1~50 (*7)
0x02 RGB
value
RGB
value : R
(LSB)
Read
Only
0x00
(*8)
LSB:3.3/1024 Unit: V Range:0~1023
RGB value recovery method
bit
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
data
0 Effective data (0 to 1023)
RGB
value:
R
0x03
RGB value : R(MSB)
0x02
RGB value : R(LSB)
RGB
value:
G
0x05
RGB value : G(MSB)
0x04
RGB value: G(LSB)
RGB
value:
B
0x07
RGB value: B(MSB)
0x06
RGB value : B(LSB)
0x03 RGB
value : R
Read
Only
0x00
0x04 RGB
value : G
Read
Only
0x00
0x05 RGB
value : G
Read
Only
0x00
0x06 RGB
value : B
Read
Only
0x00
0x07 RGB
value : B
Read
Only
0x00
*1 : Do not access any data address other than those defined above.
It may respond NACK.
*2 : Do not make a write request to a Read Only data address.
It may respond NACK.
*3 : Value after power-on or soft reset.
*4 : It may take up to 10ms to reflect the value that has been written.
Please read and check if the values have been reflected.
*5 : When write protect is enabled, do not make write requests to writable addresses.
When write protect is enabled, writes to addresses other than data address 0x00 are not allowed.
It may respond NACK.
*6 : If the value of the average number of times is changed, the RGB value :R (LSB) to
RGB value :B (MSB) may be indefinite for up to 100ms.
*7 : If a value outside the range is written, the ACK response is given but the value is not reflected.
*8 : When reading RGB value: R (LSB) to RGB value: B (MSB), read 6 bytes in one message.
If Read is not done in one telegram, data concurrency cannot be guaranteed.