Hi..
I found this Nokia 7110 LCD code (in CCS) on the internet and I want to learn to understand the code. With the help of datasheet, I managed to figure out most of the things but there are still certain things that I need help on.
According to the datasheet, the LCD display area consist of 96 horizontal pixels. That means that it can display 16 characters of 6 pixel width (5 pixel width with 1 empty pixel between characters for seperation purposes). However, I just cannot manage to display 16 full complete characters without its side getting cropped off (refer to the picture attached).
If I am not mistaken, below are the 2 parts of the code that is responsible for making this happen.
I have tried putting spaces (using spacebar) and also changing the xaddr value but i simply cannot make it happen. I have spent countless hours going through the datasheet but i just don't understand what it is saying and because of that, I don't know what I need to change.
Below is the link to the datasheet of the driver it is using.
The complete source code is attached below.
I would be grateful if somebody can help me in this..
Thanks..
I found this Nokia 7110 LCD code (in CCS) on the internet and I want to learn to understand the code. With the help of datasheet, I managed to figure out most of the things but there are still certain things that I need help on.
According to the datasheet, the LCD display area consist of 96 horizontal pixels. That means that it can display 16 characters of 6 pixel width (5 pixel width with 1 empty pixel between characters for seperation purposes). However, I just cannot manage to display 16 full complete characters without its side getting cropped off (refer to the picture attached).
If I am not mistaken, below are the 2 parts of the code that is responsible for making this happen.
Code:
void nokia_gotoxy(char xnokia, char ynokia) {
char xaddr;
xaddr = (0x32+((xnokia-1)*6)) << 4;
nokia_write_command(0xB0 | (ynokia-1)); // page address set
nokia_write_command(0x10 | xaddr); // column address 4 most bit set
nokia_write_command(xaddr>>4); // column address 4 least bit set
}
// Part of main
nokia_gotoxy(1,1);
printf(lcd_chr,"01234567890123456789");
I have tried putting spaces (using spacebar) and also changing the xaddr value but i simply cannot make it happen. I have spent countless hours going through the datasheet but i just don't understand what it is saying and because of that, I don't know what I need to change.
Below is the link to the datasheet of the driver it is using.
Code:
http://www.ortodoxism.ro/datasheets/epson/SED1566.pdf
The complete source code is attached below.
I would be grateful if somebody can help me in this..
Thanks..