Hey everyone,
I’m using the LPC2106 board from SparkFun, along with the SerLCD v2.5.
I finally got it to work, and I have some very basic code to read characters from the keyboard on UART0, and either spit them out to UART1 or send lines of text, etc.
Anyway, what I’ve noticed is that the display won’t load as you’d expect, from left to right, all 20 characters, before wrapping to the next line (this is a 4x20 display). It goes like this:
-
Starting on Line 1, the first 16 characters fill as normal, but then it wraps to line 2
-
It fills the first 16 characters of line 2, but then jumps back to character 17 on line 1, completing the row (characters 17-20).
-
It then wraps to line 3, filling the first 12 characters (not 16, like before).
-
It will then wrap back up to line 2, and complete the row (characters 17-20).
-
It then moves to line 4 and fills the first 12 characters before wrapping back to Line 1 to repeat the process.
If it helps, it looks like this. This test was performed by echoing exactly what was typed on the keyboard. I used the English alphabet, first in caps, then in lower case, then in caps again.
ABCDEFGHIJKLMNOPghij
QRSTUVWXYZabcdefwxyz
klmnopqrstuv
ABCDEFGHIJKL
So, the summary here is that the screen isn’t populating properly. I tried the clear screen command (0xFE followed by 0x01), which functionally cleared the screen but didn’t affect the character fill order.
Also, I seem unable to populate the last 8 characters of lines 3 and 4.
Has anyone seen anything like this before?