Hi,
I has face a probem in i2c driver and need help.
In EV-board , the i2c driver is used to MSP430 and TVP5146 video encode, and
the protocol is 7 bit slave address + register address (offset) + 1bytes
data.
But now i would like to use new rtc chip(s35390a), this chip is communicate
with special protocol that is 7bit slave address + 7 bytes data (without
register address).
So I modify a driver for new rtc chip, using the follow function to use i2c
:
int i2c_transfer(struct i2c_adapter * adap, struct i2c_msg
msgs[],int num)
but the result is wrong when writting data and then reading data to compare
.
Finial, when i use logic analyzer to analyse the write command , the
waveform is very strange , for example :
data that i transmit: address(0x65)+data(1234567)
waveform: address(0x65) +0xf6(?)+ data(123456)
Any help will be appreciated.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source