I2C to LCD display


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373

    Default I2C to LCD display

    I have an LCD 16x2 display that uses I2C for an interface. I have only used I2C with eeproms, and the data sheet is poorly translated from Chinese and is scant at best. Has anyone used an LCD display with I2C and care to share some example code?
    Thanks,
    Ron

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Which LCD are you using?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373

    Default

    Hey Steve,
    I finally found out the display uses the ST7032i driver chip. I found the manual on line, and it was much more detailed than the info for the 2x16 module, plus, the writer actually knew english rather than putting it through a translator.
    The fact that it ties up two pins, runs from 3.3 volts, and is only 1.7" wide by .1" thick, makes it worth while figuring out.
    I will etch a break out board, and get to work.
    Thanks for the reply,
    Ron

  4. #4
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373

    Default

    I did get the display to work, but it is acting odd while using the I2Cwrite command. I will more than likely roll my own I2C routine, but I would like to understand why the standard instruction will not work. Anyone played with this and know in what sequence the bytes are sent out? The LCD requires an eight bit address byte, followed by an eight bit control byte, then any data. Reading the I2C info in PBP, it looks like a control byte is sent first. I made the control byte the address byte using an eight bit variable, and this works, but it looks like the next byte is misinterpreted.
    Thanks,
    Ron

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts