LCD2041 internal memory corruption?
Posted: Tue Apr 17, 2007 9:41 am
Hi,
I bought 2x LCD2041 from you a few months back for prototype work, and I now want to use them in the final product, however..
The two I have work flawlessly for 99% of operation (RS232, 19200 baud), but I have problems whenever I try to send the value 10 as part of a command.
The commands that I have encountered problems with so far are:
Set Cursor Position, where sending:
254, 71, 9, 3, "hello"
prints hello at 9,3 where you would expect, and:
254, 71, 11, 3, "hello"
prints hello at 11,3 where you would expect, but:
254, 71, 10, 3, "hello"
prints a 3-pixel-high vertical bar character (or horizontal if loaded), at 13,1 followed by the hello.
Place Horizontal Bar Graph (this may or may not be related):
First I load the chars:
254, 104
then display a bar graph with:
254, 124, 1, 1, 0, 11
which displays a 11 pixel wide bar graph starting at 1,1 as expected, but:
254, 124, 1, 1, 0, 10
displays a 13 pixel wide bar! and...
254, 124, 1, 1, 0, 9
displays a 10 pixel wide bar. Highly confusing behaviour.
I have set up a startup screen by modifying the custom characters in bank 0, and that works fine.
I have tried setting custom horizontal bar characters by programming bank 0, but even after loading them instead of the defaults I get the same result. I have only set the first 5 characters of bank 0 however, because I have no idea what the other 3 would be used for in a 5 pixel wide bar graph.
Is this display broken or am I doing something wrong?
Thanks
I bought 2x LCD2041 from you a few months back for prototype work, and I now want to use them in the final product, however..
The two I have work flawlessly for 99% of operation (RS232, 19200 baud), but I have problems whenever I try to send the value 10 as part of a command.
The commands that I have encountered problems with so far are:
Set Cursor Position, where sending:
254, 71, 9, 3, "hello"
prints hello at 9,3 where you would expect, and:
254, 71, 11, 3, "hello"
prints hello at 11,3 where you would expect, but:
254, 71, 10, 3, "hello"
prints a 3-pixel-high vertical bar character (or horizontal if loaded), at 13,1 followed by the hello.
Place Horizontal Bar Graph (this may or may not be related):
First I load the chars:
254, 104
then display a bar graph with:
254, 124, 1, 1, 0, 11
which displays a 11 pixel wide bar graph starting at 1,1 as expected, but:
254, 124, 1, 1, 0, 10
displays a 13 pixel wide bar! and...
254, 124, 1, 1, 0, 9
displays a 10 pixel wide bar. Highly confusing behaviour.
I have set up a startup screen by modifying the custom characters in bank 0, and that works fine.
I have tried setting custom horizontal bar characters by programming bank 0, but even after loading them instead of the defaults I get the same result. I have only set the first 5 characters of bank 0 however, because I have no idea what the other 3 would be used for in a 5 pixel wide bar graph.
Is this display broken or am I doing something wrong?
Thanks