Interacting with I2C devices is usually done with a microcontroller and an I2C library, but sometimes either the microcontroller is not supporting I2C or you have some other restrictions which do not allow you to use the provided I2C library. For that reason you can always Bitbang the I2C protocol a.k.a emulate the behavior of this protocol by manually toggling the pins.

The following example is using Bitbanging to communicate with an EEPROM device (ST – M24C02). However you can easily alter it and use in your own application. Beware that you have to change several parts of the code to work on you application, this example is only for reference.

 

 

 

Author

Write A Comment