Address Map for 4x16 LCD

Status
Not open for further replies.

eidtech

Junior Member level 2
Joined
Jun 13, 2006
Messages
21
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Location
Mexico
Activity points
1,406
4x16 lcd

I have a problem with one LCD 4 x 16 Module (from
JHD...lcd-china.com).

This code...

Code:
lcd_gotoxy(0,0);
lcd_putsf("0000000000000000");
lcd_gotoxy(0,1); 
lcd_putsf("1111111111111111");         
lcd_gotoxy(0,2);
lcd_putsf("2222222222222222");
lcd_gotoxy(0,3); 
lcd_putsf("3333333333333333");

Produces the following output:

Code:
0000000000000000
1111111111111111
    222222222222
    333333333333

Address Base is specified as following:

Code:
static unsigned char _base_y[4]={0x80,0xC0,0x40,0x00};

Changing Address Base to:

Code:
static unsigned char _base_y[4]={0x00,0x40,0x10,0x50};

Result is:

Code:
0000000000000000

    222222222222
    333333333333

No solution was found on controller datasheet.

MCU is ATMega128 and Compiler is Codevision 1.24.8d

If anyone knows what can i solve it please post.

Thank you
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…