robinfawell Posted November 30, 2013 Report Share Posted November 30, 2013 (edited) 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 November 30, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
TK. Posted November 30, 2013 Report Share Posted November 30, 2013 Hi Robin, there is no special configuration required in the application, but you have to configure the dedicated DOG CLCD mode in the bootloaderset lcd_type CLCD_DOGIf 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. Quote Link to comment Share on other sites More sharing options...
robinfawell Posted December 1, 2013 Author Report Share Posted December 1, 2013 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 Quote Link to comment Share on other sites More sharing options...
robinfawell Posted December 3, 2013 Author Report Share Posted December 3, 2013 (edited) 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 December 3, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
robinfawell Posted December 5, 2013 Author Report Share Posted December 5, 2013 (edited) 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 December 5, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.