Multiple I2C LCD with AVR and mikroC PRO AVR

Status
Not open for further replies.

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,524
Helped
540
Reputation
1,078
Reaction score
524
Trophy points
1,393
Visit site
Activity points
0
Multiple I2C LCD with AVR and mikroC PRO AVR. I didn't post in my previous Multiple LCDs thread because this is for AVR.

This is a Multiple I2C LCD library. You can have 8 I2C LCDs on one I2C bus. I have used I2C LCDs and modules from Banggood.
 

Attachments

  • I2C LCD Li.rar
    164.4 KB · Views: 219
  • i2c_lcds.png
    63.5 KB · Views: 250

I am using 20x4 LCD display(JHD 204A) with PCF8574T. connecting these to ATmega16 microcontroller. I am using GCC compiler. can I use the same code?
 

You only have to make changes in library functions. That is you have to change the TWI_xyz() functions to your GCC's TWI functions.
 

@Milan.rajik.... I made changes in the code as you suggested. But still it is not working. I have attached the code. kindly Help me
 

Attachments

  • I2c_20_4.txt
    7.5 KB · Views: 172

Refer to book "AVR Microcontroller and Embedded Systems using Assembly and C" by Muhammed Ali Mazidi. Page no. 646 and 647. It has i2c (TWI) C code. Make TWI functions based on it and try.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…