2020-11-23 09:33 PM
Now the issue concluded to the source of issue.
The value of Dtata is 0x38 but its not getting transfered to TFR. Though for other resistors its working fine. The value of TFR always stays 0x00000000. Since the data is not loaded to Tx FIFO, the communcation not starts.
void I2C_FillTxFIFO(I2C_Type* I2Cx, uint8_t Data)
{
/* Check the parameters */
assert_param(IS_I2C_ALL_PERIPH(I2Cx));
/* Write in the DR register the data to be sent */
I2Cx->TFR = (uint32_t)Data;
}