I2C LCD 16x2 Pic16f628 Code


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2025
    Posts
    2

    Default I2C LCD 16x2 Pic16f628 Code

    I2C LCD 16x2 Pic16f628 Code

    I have I2C attached to LCD 16x2 using Pic16f628, internal OSC 4Mhz, DSA on B.1, SLC on B.2, LED on B.5 for Blink at the end, there are 4.7k pull up resistors on the expansion board. I am not getting anything readable. The hardware verified with the Arduino uno "Nice display". I am looking for some simple code that gives something readable to be able to change around to study changes.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,698


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: I2C LCD 16x2 Pic16f628 Code

    Warning I'm not a teacher

  3. #3
    Join Date
    Dec 2025
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: I2C LCD 16x2 Pic16f628 Code

    I have gone through all those posts that I thought were remotely pertinent. I have tried all the code available in those posts. I have changed every variable possible that I know to try. I don’t understand the details of insertion of the code and variables but somewhat I think the concept. Do I need to learn C first or something else to figure this out? I have not posted any of my code because it has no viability. I have spent countless hours on this. Any information would be much appreciated.

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,698


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: I2C LCD 16x2 Pic16f628 Code

    There a a few variants of backpack lcd's there are pcf8574 ones and pcf8574a ones. they have different i2c address' ranges.
    there are at least two differently wired versions also.
    there are also dfrobot lcds that look similar but are completely different.

    The hardware verified with the Arduino uno "Nice display"
    so what settings from arduino were used to get that result ?


    Do I need to learn C first or something else to figure this out?
    C has nothing to do with it , first step is know what the actual hardware is and its i2c address and how its configured


    I have not posted any of my code because it has no viability.
    so nobody has any idea of what you are trying and can not possibly see where you have gone wrong
    do post your best effort
    Warning I'm not a teacher

Similar Threads

  1. Pic16f616 with lcd 16x2 problem
    By juanen19 in forum mel PIC BASIC
    Replies: 7
    Last Post: - 29th August 2013, 19:20
  2. Lcd 16x2 circuit and sample program...
    By larzazral in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd July 2012, 12:21
  3. Interfacing 16x2 LCD to PIC18F2520
    By spotlite in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st January 2012, 09:29
  4. Sample code for I2C text LCD needed
    By Alexey in forum Code Examples
    Replies: 4
    Last Post: - 15th September 2011, 02:29
  5. swap lcd 16x2 with 20x2
    By kzeoprf in forum General
    Replies: 4
    Last Post: - 2nd September 2011, 17:25

Members who have read this thread : 5

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