Jump to content

DOG LCDs


TK.
 Share

Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Link to comment
Share on other sites

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 by philetaylor
Link to comment
Share on other sites

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 by Sasha
Link to comment
Share on other sites

  • 2 years later...

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

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...