STM32F1xx smbus send address no ack?
my smbus device is a temperature sensor (TMP100).MCU is STM32F103RBT6
when i wrote a word to slave as following:
I2C_GenerateSTART(SMBus_NAME, ENABLE);
while(!I2C_CheckEvent(I2C2,I2C_
I2C_Send7bitAddress(SMBus_NAME, slaveAddr, I2C_Direction_Transmitter);
while(!I2C_CheckEvent(I2C2,I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED)){;}
I2C_SendData(I2C2,addr);// device registor address
the registor I2C2->SR1 : 0x4400. due to the smbus line nack.. how to solve it?
