10 Replies Latest reply on Nov 19, 2014 12:24 PM by userc_40848

    LCD displaying issues with the 5LP kit

      So ive been trying to work on getting the kit setup with the CAN/LIN kit and all this time, i couldnt tell if it was working because nothing was showing up on the LCD.


      After some research and really looking close at the LCD, i noticed that there was text, but it was really faint and flickering. This was at position (0,0)


      So i changed it to use position (1,0) and not you can really make out the text BUT now its like the flickering has slowed down which is allowing you to make out the text.




      What can i check to see if i can resolve this? Is the LCD bad? is it just a programming or configuration issue?


      The post i found with similar issues was suggesting to revert back to older version of the control, so i went from 2.0 to 1.7 prototype on the LCD.


      This is the post i found:




      Ive gone thru 1.7, 1.8, 1.9(where im currently at) and you cant see any text when on position (0,0) but you can really see it on position (1,0) but has a slight flicker to it, like someone purposely added that as an effect.




      Any help or suggestions would be great.




      thank you

        • 1. Re: LCD displaying issues with the 5LP kit

          The flickering most likely comes from updating the display too often (maybe with a display clear inbeetween). Try to slow down the update (either by adding a delay, or by updating only when the data changes).


          If you resolve the flickering, and the display is still not readable, try to change the contrast of the LCD (you need to add the trimmer for this).

          • 2. Re: LCD displaying issues with the 5LP kit

            Are you sure the CAN/LIN interface does not use Port2 of your board? Something in my mind rings that I may have read something telling that...





            • 3. Re: LCD displaying issues with the 5LP kit

              One method of eliminating flicker in a loop that frequently updates LCD is


              create a virtual LCD buffer, say 2 x 17 in RAM if its a 2 X 16. Routine


              when it goes to write, checks the buffer character for character, and


              if any character is found different old vs new, that is updated in buffer


              and that character is written out to display.




              I used this technique and completely eliminated all artifacts from the LCD.




              Regards, Dana.

              • 4. Re: LCD displaying issues with the 5LP kit

                Currently there is no delay, so i will try that first.


                Where would i look to verify if that is true? Also at the momemt, because i wasnt seeing any readings from the Truck i was connecting to, im just writing the word "Hello" to the LCD for testing and debugging.


                I will look into this as well, as i am still learning im sure there will be things ive over looked.




                I really appreciate the suggestions and will try them and look into them.




                thank you

                • 5. Re: LCD displaying issues with the 5LP kit

                  Have a look into the manual of the CAN board you use, it tells exactly what to do when connecting to one of the kits.


                  Could of course be that I am mistaken and the matter was concerned not with CAN.





                  • 6. Re: LCD displaying issues with the 5LP kit

                    ok, i looked and only mention of Port2 was in section 4.5.1 and stated the following:


                    Jumper Settings of CY8CKIT-001 DVK for Using Port B
                    Port B uses the port 2 GPIO pins to connect to two of the LEDs and the two LIN transceiver circuits
                    on the expansion board. Therefore, switch the jumper J12 to ‘Off’ position; this switches off the
                    power for the character LCD that is connected to port 2 of the CY8CKIT-001 DVK. This means that
                    the LCD on the DVK cannot be used when the port 2 GPIO pins are used and the expansion board
                    is occupying port B of the DVK.




                    Now that is referring to a kit i dont have and not using, so dont think it would pertain to me.


                    But will def look and try and keep in mind..


                    thank you

                    • 7. Re: LCD displaying issues with the 5LP kit

                      As long as the LCD shows the text as such properly, I don't think this is a port issue. And its not really prossible to connect two components to the same port, Creator prevents that.

                      • 8. Re: LCD displaying issues with the 5LP kit

                        Well got the LCD displaying correctly with the simple addition of the delay


                         #include <project.h>

                        uint8 Rx_Data;

                        int main()
                                /* Place your application code here. */        
                                LCD_Char_1_PrintString("Engine Oil Temp");




                        Now on to my next issue.

                        • 9. Re: LCD displaying issues with the 5LP kit

                          There is always one more issue left :(

                          • 10. Re: LCD displaying issues with the 5LP kit

                            Very true, but actually seeing text on the LCD gave me hope :)


                            I really appreciate the help and suggestions.