I2C Delay (General query)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi all,

The microcontroller which I am using doesnot support I2C hardware. So,I am trying to implement I2C in the module using Bit Banging(GPIO ports). The microcontroller communicates with EEPROM, which has SDA and SCL pins.The EEPROM chip has a baud rate of max 400Kbps. I am aware of I2C protocols and know how to implement (Start, write, read, stop), but I am unable to determine the baud rate at which the controller needs to communicate with the EEPROM. Since the controller doesnt supports the I2C hardware, how and where can I set the baud rate (No baud generator formula). I am also finding hard to calculate the I2C delay time, once I set the pin from High to Low or Low to High. Could someone please explain in general, what is the proper way to implement I2c baud and delaytime. The EEPROM chip has maximum baud rate upto 400Kbps. The control rums at maximum clock speed of 40MHz .

Your help is highly appreciated

Thanks
0 Likes
2 Replies
Not applicable
Please help me
0 Likes
Not applicable
Please reply, dont just view it
0 Likes