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).
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...
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.
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.
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.
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..
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.
Well got the LCD displaying correctly with the simple addition of the delay
/* Place your application code here. */
LCD_Char_1_PrintString("Engine Oil Temp");
Now on to my next issue.
There is always one more issue left :(
Very true, but actually seeing text on the LCD gave me hope :)
I really appreciate the help and suggestions.