at88sc chip I2C read and write address 0xb6 and 0xb4 。
If I want to use the linux the i2c interface , How to read at88sc。
Write register is not a problem.
you may take a look at http://docs.blackfin.uclinux.org/doku.php?id=i2c#external_resources and take drivers/media/video/mt9m001.c as the example code.
If you want to do it in user space, you should refer to the user space I2C API test application under uClinux-dist/user/blkfin-test/twi_test/ .
AT88 did not use the standard I2C protocol .
The written address 0xb4 , 0xb6 read address .
If using user-space I2C read AT88.Passed to the I2C address is slave_addr(0xb4>>1)。
I2C driver will to left slave_addr , and add 1 . This is the case slave_addr on equal 0xb5 .
AT88 requires reading the device address is 0xb6 .
The bf561 use the GPIO to simulate I2C, Other equipments are also mounted on the I2C bus .
If your device do has the special request that the current I2C driver does not satisfy, then hack the current I2C driver code as needed.
I use GPIO to simulate the timing , do not use linux I2C . : (
Thanks could you mark the status of this thread as "answered"
Retrieving data ...