iic单步调试时void I2C_EE_PageWrite(u8* pBuffer, u8 WriteAddr, u8 NumByteToWrite),卡在 while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED)); ,
/* Send EEPROM address for write */
I2C_Send7bitAddress(I2C1, EEPROM_ADDRESS, I2C_Direction_Transmitter);
/* Test on EV6 and clear it */
while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED));
我看了寄存器的值,ADDR为没置1,但是全速运行,不调试时情况运行结果会是正确的,这是什么原因??? |