EasyManua.ls Logo

Omron B5WC - Defining I2 C Bus Timing; Characteristics of SDA and SCL Bus Lines

Omron B5WC
23 pages
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...
17 B5WC Built- In Color Sensor User's Manual (E612- E1- 01)
Appendix: Color Sensor Operation Overview
(Reference) Setting flowchart
The initial configuration example of this sensor is shown below.
We recommend that you follow the flowchart below.
I
2
C Communication Protocol
Communication
method
I
2
C
Master/Slave Slave
Transmission speed 100 kbps (Standard mode(*1))
Slave Address 40 h (Write: 80 h, Read: 81 h)
Clock Stretching Yes (maximum clock stretch time: 1 ms)
*1: Reserved addresses (general call addresses, etc.) are not supported.
*Slave Address
bit bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
Add[6] Add[5] Add[4] Add[3] Add[2] Add[1] Add[0] R/W
Value 1 0 0 0 0 0 0 1/0
When writing: Set the LSB of the slave address to "0" to 80h (1000 0000b).
When reading: Set the LSB of the slave address to "1" to 81h (1000 0001b).
Yes
Yes
No
No
Write protect disabled (0x5A) to data address: 0x00 via I²C communication
Write any average number of times (1~50 times) to data address: 0x00 via I²C communication
Write protect enabled (other than 0x5A) to data address: 0x00 via I²C communication
Read data address: 0x00 via I²C communication
and confirm that Write protect is enabled (other than 0x5A)
Read data address: 0x01 via I²C communication
and confirm that the average number of times matches the set value.
After changing the average number of times, wait for stability as
RGB values may be indefinite for up to 100ms.
Start
End
Apply power to this sensor
Wait for stable power supply (100ms)
Write protect disable setting
Average number setting
Write protect enable setting
Wait for RGB values to stabilize
Write protect effective?
Is the average number
The value you set?

Other manuals for Omron B5WC

Related product manuals