Yes... finally.. I found the solution...
I have been looking at the wrong section in the datasheet all the while... The hours spent in looking at the datasheet might have made my brain too tired to think and not able to process the information just now.. After a few hours of break, finally my mind able to process the information better..
Ok... here is what I changed
Code:
void nokia_gotoxy(char xnokia, char ynokia) {
char xaddr;
xaddr = (0x00+((xnokia-1)*6));
nokia_write_command(0xB0 | (ynokia-1)); // page address set
nokia_write_command(0x11 | xaddr); // column address 4 most bit set
nokia_write_command(xaddr | 0x02); // column address 4 least bit set
}
nokia_gotoxy(1,1);
printf(lcd_chr,"0123456789012345");
And attached is the result of the simulation..
However, there is still one minor problem that I cannot figure out how to solve.. Refering to the picture attached, the section that is inside the red circle is actually caused by the first row of the numbers 0, 1, 2, 3 .
For some reason which I cannot explain, the the first few columns of COM1 (row 1) is overlapped with the last few columns of COMS (last row).
Any idea on how I can cake the COMS row (last row) completely blank..?
Thanks..