bad text on LCD

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there freaks....
I am working with the STK500 with the ICE200 and the Code vision compiler.

I connected an LCD 16X2 to my project.
Now here is the problem.......

In the first line i write the words that comes from a PC keyboard and i am checking all the time if i arrived to th 5th word (longer then that is wrong).
As soon as the user get to the 6th word i need to write on the second line that it is bad and clear the screen (after a small delay) and wait for the next word to be written (all over again from the first word).

The problem is that as soon as it arrives to the 6th word it does write the "bad word" massage but it keeps on writing it on the first line altough i wrote in the code "lcd_gotoxy(0,1) which means go down to the second line.

I have solved that only after i did clear LCD command and it looks like i am not doing it right

any one found this problem as well????

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the controller thinks it always has a 4x20 lcd, so the second line starts at character 40 or something..... write 01234567890123456789 and see what comes out....

Imagecraft compiler user