Jump to content

2 x 2*16 Display


Thomas
 Share

Recommended Posts

Hallo!

Just to verifiy this, before start debugging on lower level. (electrical connections seems to be ok).

There is nothing to do (additional programming) when connecting two 2*16 LCD displays?

Only to set the cursor to 0x80 (first line of second LCD) or 0xC0 (seconde line of second LCD)?

The enable line of the second LCD is connected to PIC-Pin RC4.

All other connections are parallel.

LCD one works, LCD two do not.

Greetings Thomas

Link to comment
Share on other sites

Alright, so maybe you forgot to configure the Y offsets in the application?

The problem is I haven't.

But let us assume that I did.

What would the following code produce?

Will there be output on the second LCD?

unsigned char i;

for (i = 0; i < 256; i++){

  MIOS_LCD_CursorSet(i);

  MIOS_LCD_PrintChar('T');

}

Practically it didn't. My guess was that initialization for the seconde LCD is missing because it shows the black bar in the first line.

Link to comment
Share on other sites

Hallo Thorsten!

That's my code in main.c:

void DISPLAY_Init(void) __wparam

{

  display_init();

 

  MIOS_LCD_CursorSet(0x80);

  MIOS_LCD_PrintCString("hallo!");

  MIOS_LCD_CursorSet(0xc0);

  MIOS_LCD_PrintCString("Thomas!");

}

Where display_init() only calls MIOS_LCD_YAddressSet:

/** initializes the display */

void display_init(){

  MIOS_LCD_YAddressSet(0x00, 0x40, 0x80, 0xc0);

}

The second display is initialized but stays blank. 

What's wrong?

Are the offsets ok?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...