2017-06-01 10:32 PM
Hai, I am using Stm32f103vbt6 micro controller, I have some issue with interfacing the I2C EEPROM.
eeprom is at24cm02. its has only one address pin. In code 'I2C_Send7bitAddress ' this line has sussefully send, My addres byte is 0xA0. but after that
while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED))
{ /* If the timeout delay is exeeded, exit with error code */ if ((timeout--) == 0) return 0xFF; }this line getting error.
what is the reason for this?
Please give me a reply
Solved! Go to Solution.
2017-06-02 06:46 AM
Hi zhitai liu
,
Thanks for your reply, i solved the problem,Problem was with the pull up resistors of the data line and clock line .
2017-06-02 03:39 AM
It's always healthy to use oscilloscope and check whether the digital pulses are really sent out.
:)
2017-06-02 06:46 AM
Hi zhitai liu
,
Thanks for your reply, i solved the problem,Problem was with the pull up resistors of the data line and clock line .
2017-06-08 01:12 AM
Good job!!
Sometimes to debug hardware error is as fun as firmware coding!!