您好,
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是否一样?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
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是否一样?
谢谢!
slave地址是你的I2C总线上的Slaver他对应的地址,你通过查Slaver的手册和使用说明能找到。比如各种Flash啊,Sensor等等。
读写地址都是一样的。
King Wang1,您好
比如slaver 是7 bit 地址,如:1001 100 ,最低位表示读写方向。读是99h,写是98h,那读写时slaveAddress到底是哪个呢?
谢谢
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 the
master-transmitter mode. Bits 9-7 are ignored.
你好,请问你的I2C例程是在哪里下载的啊?我最近也在调试这个。能否给我发一个例程啊?qq:825251216,谢谢了。