Sasha Posted January 24, 2011 Report Posted January 24, 2011 Have I asked incredibly stupid question or nobody can`t give me any clue what I`m doing wrong? I did my best to follow the integration instructions but still getting nowhere. :( Quote
philetaylor Posted January 24, 2011 Report Posted January 24, 2011 The only difference between the DOG CLCD and the standard CLCD driver is the initialization sequence, I would imagine that the MB808 is expecting to talk to a standard CLCD and not a DOG. This explains why it works if the LCD has already been initialized by the DOG driver. If you have recompiled the app with the DOG driver as the custom LCD driver (modules/app_lcd/dog). You then need to either specifically select the custom LCD in your app or change the PIC ID to 0000-0000-0000-7000 to select the custom LCD driver. Cheers Phil Quote
Sasha Posted January 24, 2011 Report Posted January 24, 2011 The problem is that I can`t recompile the code if I add that "select LCD type #7..." part to the asm code. I pointed make file to the doglcd driver. Quote
Sasha Posted January 27, 2011 Report Posted January 27, 2011 I managed to make display work with MB808 with help of my friend, but it don`t shows content of 2nd line. I`m using 2x16 instead of 3x16 DOG. Are there something else I should configure in order to show 2nd line? Quote
philetaylor Posted January 27, 2011 Report Posted January 27, 2011 (edited) That should be 'fairly' easy to fix....... With the DOG CLCD's, unlike usual CLCD layouts where line 2 is at offset 0x40, each line sometimes runs consecutively so 0x00=line1, 0x10=line2 etc. If this is the case with your display then you would need to change MIOS_LCD_YAddressSet to 0x10 (instead of the default 0x40). This is set in seq_lcd.inc so a quick 'hack' would be to change the line in SEQ_LCD_SetPageOffsets from "movlw 0x40" to "movlw 0x10". I have never used the 2 line version so I'm not sure if this will work but it is worth a try :) Cheers Phil EDIT: Alternatively, you may need to alter the initialization in the dog lcd driver/module as per: http://www.lcd-module.com/eng/pdf/doma/dog-me.pdf Edited January 27, 2011 by philetaylor Quote
Sasha Posted January 28, 2011 Report Posted January 28, 2011 (edited) Thank you philetaylor. I did so, but still no 2nd line. :( I`ll try alter the initialisation. I hope it should look like this: movlw 0x39 ; 8bit interface, switch to instruction table 1 call MIOS_LCD_Cmd movlw 0x1c ; BS: 1/4, 3 line LCD call MIOS_LCD_Cmd movlw 0x52 ; Booster off, set contrast C5/C4 call MIOS_LCD_Cmd movlw 0x69 ; set Voltage follower and amplifier call MIOS_LCD_Cmd movlw 0x74 ; set contrast C3/C2/C1 call MIOS_LCD_Cmd movlw 0x38 ; back to instruction table 0 call MIOS_LCD_Cmd movlw 0x0F ; display on call MIOS_LCD_Cmd movlw 0x01 ; Clear Display call MIOS_LCD_Cmd movlw 0x06 ; Entry Mode call MIOS_LCD_Cmd Edited January 28, 2011 by Sasha Quote
philetaylor Posted January 28, 2011 Report Posted January 28, 2011 That looks fine, from re-reading the datasheet I am more convinced that this is the problem :) Cheers Phil Quote
Sasha Posted January 28, 2011 Report Posted January 28, 2011 (edited) Cool, I`ll try it as soon as I back home from work. Thanks for the help mate. Edited January 28, 2011 by Sasha Quote
Sasha Posted January 28, 2011 Report Posted January 28, 2011 DOG finally barks! :) Besides altering the initialization, I needed to change the second line offset to 0x40. Thank you once again for your help. ;) Quote
eptheca Posted June 27, 2013 Report Posted June 27, 2013 Hi guys, I see this tread is a bit old, but I'll try it here first Can anyone help me with a wiring diagram for the DOG GLCD for MIOS 8 Core I can only find one for the CLCD's If I understand it correctly I need 9 caps and a resistor to reduce the 5V to about 3V Does the GLCD also need a 4.7K Pull-Down? and I use this driver? http://svnmios.midibox.org/listing.php?repname=svn.mios&path=%2Ftrunk%2Fmodules%2Fapp_lcd%2Fdog_g%2F thanks in advance Quote
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.