I2C Bus: Difference between revisions
No edit summary |
|||
| Line 47: | Line 47: | ||
When selecting a register, the register byte address is written here. When reading or writing data to the I2C device, it's read/written from here. | When selecting a register, the register byte address is written here. When reading or writing data to the I2C device, it's read/written from here. | ||
When selecting a device, the device byte address is written here. Bit0 is unknown, when reading from certain devices | When selecting a device, the device byte address is written here. Bit0 is unknown, when reading from certain devices, the device is first selected and then the register, following that the device is reselected with device byte address bit0 set. | ||
== Protocol == | == Protocol == | ||
| Line 59: | Line 59: | ||
! Device address | ! Device address | ||
! Device swiWaitByLoop delay | ! Device swiWaitByLoop delay | ||
! I2CDATA bit0 set with dev addr required for reading | |||
! Device description | ! Device description | ||
|- | |- | ||
| 0x00 | | 0x00 | ||
| 0x00 | | 0x00 | ||
| No | |||
| Camera0? | | Camera0? | ||
|- | |- | ||
| 0x80 | | 0x80 | ||
| 0x00 | | 0x00 | ||
| No | |||
| Camera1? | | Camera1? | ||
|- | |- | ||
| 0x00 | | 0x00 | ||
| 0x00 | | 0x00 | ||
| No | |||
| ? | | ? | ||
|- | |- | ||
| 0x00 | | 0x00 | ||
| 0x00 | | 0x00 | ||
| No | |||
| ? | | ? | ||
|- | |- | ||
| 0x7A | | 0x7A | ||
| 0x180 | | 0x180 | ||
| No | |||
| Power management | | Power management | ||
|- | |- | ||
| 0x78 | | 0x78 | ||
| 0x00 | | 0x00 | ||
| No | |||
| ? | | ? | ||
|- | |- | ||
| 0xA0 | | 0xA0 | ||
| 0x00 | | 0x00 | ||
| No | |||
| ? | | ? | ||
|- | |- | ||
| 0x4A | | 0x4A | ||
| 0x180 | | 0x180 | ||
| Yes | |||
| Power related? | | Power related? | ||
|- | |||
| 0x40 | |||
| 0x00 | |||
| Yes | |||
| ? | |||
|- | |||
| 0x90 | |||
| 0x00 | |||
| Yes | |||
| ? | |||
|} | |} | ||