632- adjusting column/row position

Merlin

New member
i'm using a 632 interfaced to an Atmel micro. my question is this, i'm using the UART to send the lcd data, which works fine. but i want to adjust where certain text shows up, i was trying it like this.
Code:
printf("data");
putchar(17); //tells the lcd to adjust
putchar(0); //column 0
putchar(1); //row 1
printf("more data");
i was thinking this would show up as
Code:
data
more data
on the lcd. it isn't working though, any suggestions?
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

CF Tech

Administrator
Hmmm . . . that looks like it should work.

Try:
Code:
printf("data"); 
putchar(17); //tells the lcd to adjust 
putchar(1); //column 1 
putchar(1); //row 1 
printf("more data");
That should do:
Code:
data
 more data
Some libraries go out of their way to have trouble sending a 0, maybe that is what is going on. I would not expect something called "putchar()" to have troubles like that though.
 

Merlin

New member
yep that worked. i took it another step and put it in the format
Code:
printf("data");
putchar(17);
putchar(0x00);
putchar(1);
printf("more data");
using the hex value for the column worked, i'm not for sure why though. so now i've got
Code:
data
more data
thanks
 
USB LCD Displays - Graphic and Character LCDs with a Keypad
Top