We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
i am a beginner in this form. i am using STM32F051 discovery board.i have a problem in reading of pca9536 i/o expander throgh i2c. here i got the output till resend the address for read operation. Data is not receiving in stm32f051,SCL is also not sending at this time. the code for read is given below.please help me to rectify this problem. while(I2C_GetFlagStatus(I2C1, I2C_FLAG_TCR) == SET); I2C_TransferHandling(I2C1, PCAAddr, 1, I2C_Reload_Mode, I2C_No_StartStop); while(I2C_GetFlagStatus(I2C1, I2C_FLAG_RXNE) == RESET); K = I2C_ReceiveData(I2C1);