Menu

2-wire LCD using Xpress Board

Help
2016-09-23
2016-09-24
  • Domenic Cirone

    Domenic Cirone - 2016-09-23

    Having a bit of a problem. I am trying to run the 2 wire lcd demo LCDCURSOR_2WIRE_TEST 16f688.gcb on the XPress eval board. I only thing I changed was the #chip to #chip 16f18855, 32 .

    What I am doing wrong? It looks like there is a timing problem in the LCD.H file.

    Domenic

     
    • Anobium

      Anobium - 2016-09-24

      The Xpress Board demos are in the Vendor folders. Start there.

      What is the difference? The Xpress board uses I2C2 and the 16f688 uses I2C (note... Xpress board uses the second I2C module).

      So, take the Xpress board i2C discovery or the Temp sensor (i2c2 based) and then get the LCD integrated. Should only take a few moments.

      Good luck,

       
      • Domenic Cirone

        Domenic Cirone - 2016-09-24

        Sorry, I think you misunderstood. The demo file I referenced is a HD44780 16x2 LCD connected with a 74HC164. It doesn't use I2C. I have tried directly connecting the LCD, with no problem. BTW, the version I am using, 0.95.009.

         
        • Anobium

          Anobium - 2016-09-24

          ok.

          You will need to do much more work that the #chip. This code is older code from one of the users - it did work. :-) He published in a magazine with the code.

          I do no have that config but you will to ensure the PPS is set correctly and there may be other 16f18855 changes required.

          I am sure this is not a timing issue as the lcd.h supports one wire thru to 8 wires ok - I would be wrong. Do try LCDSPEED SLOW. See the manaul for the command.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.