Jump to content

DOG CLCD Display Problem


robinfawell
 Share

Recommended Posts

I am attempting to incorporate the above display into my digital piano setup.

 

I have set up the display in the MIOS studio bootloader using the help function.  It works except that the second line is missing.  

 

Do I need to initialise the LCD?  I notice in the Functions list there are functions like

 

 

const char* MIOS32_LCD_LcdTypeName ( mios32_lcd_type_t lcd_type  ) 

 
Are these needed? 
 
Of course I may have a hardware fault either in the display or in my connections.  I have checked the board wiring fairly thoroughly.
 
I should also add that the 2 X 16 standard LCD works.
 
Robin
 
 
 
 
 
 
Edited by robinfawell
Link to comment
Share on other sites

Hi Robin,

 

there is no special configuration required in the application, but you have to configure the dedicated DOG CLCD mode in the bootloader

set lcd_type CLCD_DOG
If this doesn't help, then try out a different cursor map.

Because the cursor position handling is different from common CLCDs.

 

E.g. what happens with:

      u8 cursor_map[] = {0x00, 0x40, 0x14, 0x54}; // offset line 0/1/2/3
      MIOS32_LCD_CursorMapSet(cursor_map);
And what happens with:
      u8 cursor_map[] = {0x00, 0x10, 0x20, 0x30}; // offset line 0/1/2/3
      MIOS32_LCD_CursorMapSet(cursor_map);
 

Best Regards, Thorsten.

Link to comment
Share on other sites

Hello Thorsten

 

Thanks for the reply. 

 

Your reply prompted me to read the text file associated with the Bootloader.  I examined the LCD section and I realised that I had misinterpreted the "lcd_height" as character height rather than number of lines.  After fixing this it worked.

 

Robin

Link to comment
Share on other sites

Hello Thorsten

 

Since my last post the display has mysteriously reverted back to a one line display.  I have in attempting to remove the display and backlight managed to break the glass of the display.  The display type is EA DOGM 162.  

 

When i receive the new display I will try your suggested changes to the cursor map setting.  I assume that the 1st and 2nd settings are the "addresses" of start positions of the first and second lines of the display and the 14 and 54 somehow define the 16th character.

 

I have attempted to find the relevant program to change the cursor settings.  I have found a reference to this under app lcd universal  in app.c. line 572

 

      // modify cursor mapping, so that it complies with 3-line dog displays
      u8 cursor_map[] = {0x00, 0x10, 0x20, 0x30}; // offset line 0/1/2/3
      MIOS32_LCD_CursorMapSet(cursor_map);

Is this the correct place?

 

Thanks Robin

Edited by robinfawell
Link to comment
Share on other sites

Hi Thorsten

 

I have progressed.  Following your suggestions I have modified app_lcd to the following code

 

 u8 cursor_map[] = {0x00, 0x40, 0x14, 0x54}; // offset line 0/1/2/3
and
u8 cursor_map[] = {0x00, 0x40, 0x10, 0x50}; // offset line 0/1/2/3

both work .  Thank you

 

Looking at the data sheet for the EA DOGM 16x display I notice that the Command Parameters are different for the following

 

Bias Set

Power Control

Follower Control 

Contrast Set

 

I have changed settings to those of the data sheet and see no obvious difference.  However I have only one display which makes comparisons difficult!

 

I'm very pleased with the DOG display.

 

 

My Thanks Again 

 

Robin

Edited by robinfawell
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...