Multiple software I2C, modified LCD library
Posted: 16 Apr 2013 11:48
Looking for a software I2C library I realize that MikroC doesn't have what I need... or at least I didn't find it.
Having more I2C devices with the same adress, I thought that using multiple I2C lines will solve the problem. Unfortunately, software I2C create only one. Would be very useful If we had the possibility to define more I2C interfaces.
For now I will try to use a multiplexing circuit or to write my own software I2C library (or to use the library "as it is" but redefining pins by using a macro every time I change line ).
Another suggestion is about LCD library. Since the R/W pin is not used, you don't know if data on display is exactly what you transmitted. If you have a long LCD cable, for example the LCD is on the electrical box door and the board is on the opposite wall, the noise in the environment will disturb your data and you'll have strange characters on display. Reading back should improve the noise reduction.
Having more I2C devices with the same adress, I thought that using multiple I2C lines will solve the problem. Unfortunately, software I2C create only one. Would be very useful If we had the possibility to define more I2C interfaces.
For now I will try to use a multiplexing circuit or to write my own software I2C library (or to use the library "as it is" but redefining pins by using a macro every time I change line ).
Another suggestion is about LCD library. Since the R/W pin is not used, you don't know if data on display is exactly what you transmitted. If you have a long LCD cable, for example the LCD is on the electrical box door and the board is on the opposite wall, the noise in the environment will disturb your data and you'll have strange characters on display. Reading back should improve the noise reduction.