您好,
I2C例程中的读写子函数:
Uint32 I2C_read( Uint32 slaveAddress, Uint32 uiByteCount,Uint8 * ucBuffer, I2C_Wait wait)
Uint32 I2C_write( Uint32 slaveAddress, Uint32 uiByteCount,Uint8 * ucBuffer, I2C_Wait wait)
1、其中的slaveAddress指的是什么?
2、读写的slaveAddress是否一样?
谢谢!
jack liu_first:
回复 King Wang1:
King Wang1,您好
比如slaver 是7 bit 地址,如:1001 100 ,最低位表示读写方向。读是99h,写是98h,那读写时slaveAddress到底是哪个呢?
谢谢
jack liu_first:
回复 jack liu_first:
In 7-bit addressing mode (XA = 0 in ICMDR): bits 6-0 provide the 7-bit slave address that the I2C transmits when it is in themaster-transmitter mode. Bits 9-7 are ignored.
yaping song:
你好,请问你的I2C例程是在哪里下载的啊?我最近也在调试这个。能否给我发一个例程啊?qq:825251216,谢谢了。
JY LI:
请问你的例子是PDK包里的吗,还是在哪里下载的
jack liu_first:
回复 JY LI:
是PDK里的