DOG LCDs

Hi Thorsten,

OK, your arguments are convinced me.

Really Bad idea.

PS: I am blind without my glasses.  :slight_smile:

Best Regards

Jack

You could always use 2 40x2 displays…  :stuck_out_tongue:

what are the references of the DOG Lcd and the DOG touchscreen @ mouser ? (the pink one of TK)

are there drivers (uc1610 ?) for :

http://fr.mouser.com/ProductDetail/ELECTRONIC-ASSEMBLY/EA-TOUCH160-1/?qs=XoD1gVtqLQvx3SsJpN7Png%3d%3d

and

http://fr.mouser.com/ProductDetail/ELECTRONIC-ASSEMBLY/EA-DOGXL160S-7/?qs=sGAEpiMZZMt7dcPGmvnkBoVrwDsRKMrKHVulqwLaEg8%3d

Best regards

Hi.

Not sure about mouser product codes as usually you buy the display and then select one of the backlights, this is the manufacturers website: http://www.lcd-module.com/products/dog.html

Yes there are MIOS32 drivers for the DOGXL displays (UC1610) based. It also supports the 4 greyscale mode of the UC1610.

Cheers

Phil

ok could you please explain me a little more : i need

1 - display LCD

2- the backlight

3 - a touchpanel that sticks to the LCD right ?

cheers

Yes that is exactly what you need. Some of the backlights work better with some displays and the STN pos reflective display doesn’t work with a backlight at all.

This website has a table showing which backlight is recommended with which display (from the UK distributor) http://www.mmselectr…o.uk/lcddog.htm

Cheers

Phil

I have just received negative doglcd with red backlight with help from kokipsiho.

I like it, but not entirely satisfied with it`s contrast. \

May somebody tell me how exactly can I change the contrast in driver. I see these lines, but not sure how to increase/decrease it.

movlw 0x50 ; Booster off, set contrast C5/C4

movlw 0x7c ; set contrast C3/C2/C1

Am I looking in right place?

I`m having hard times compile MB808 application to use dog driver. Can somebody please explain this in details. I tried to follow steps from Readme file.

"Assembler-Only" Applications

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  1) main.asm (or main.inc): ensure, that the application includes 

     the global <app_lcd.inc> instead of "app_lcd.inc"

Where do I set it and how? I don`t see anything like that in .asm files of MB808

2) Makefile: include app_lcd.mk


---

# include application specific driver

include $(MIOS_PATH)/modules/app_lcd/clcd/app_lcd.mk

I believe my makefile should look like this:

MIOS_PATH = .

MIOS_BIN_PATH = ./bin

export MIOS_PATH

export MIOS_BIN_PATH

include Makefile.orig

# include application specific LCD driver (dummy driver by default)


# include application specific driver for DOG LCDs

include $(MIOS_PATH)/modules/app_lcd/dog/app_lcd.mk

3) main.asm (or main.inc): call MIOS_LCD_TypeSet from USER_Init hook:

---

	;; select LCD type #7

	;; (custom LCD driver, hooks in $MIOS_PATH/modules/app_lcd/dog/app_lcd.asm module will be used)

	;; Parameter #1 and #2 select the enable pins like for common CLCD driver

	;; Note that the DOG driver switches to CLCD (type #0) after initialisation!

	;; Up to 2 DOG based LCDs are supported

	;; E input of first LCD at D.7, E of second LCD @C.4

	movlw	0x37 ; E pin

	movwf	MIOS_PARAMETER1

	movlw	0x24 ; E2 pin

	movwf	MIOS_PARAMETER2

	movlw	0x07

	call	MIOS_LCD_TypeSet

Where exactly should I put this code? I have tried various locations in the .asm file, but than I`m receiving error when compiling. I Have also tried to put it in the main.inc but receiving error again.

Sasha

I am not very confident with MIOS compile using SVN but i know that the LCD can be set using command line in Terminal OSX as i tried it several months before

I did a post in Programmers lounge several months ago, regarding to MIOS32

http://discourse.midibox.org/t/topic/13190

it is export function

Julien, the link is not OK, and search engine don`t give me any results. Can you please check it again?

EDIT: It must be because Programmers Lounge is not public forum.

I have tried this LCD with dog test application and it worked fine, after that I change just makefile to use dog driver.

After compiling, uploading and rebooting it seams LCD is working fine, but after powering down, it fails to initialize. When I upload the same MB808 code, it don`t initialize until I upload test app first, and than MB808. Again, it work until powering it down.

Have I asked incredibly stupid question or nobody cant give me any clue what Im doing wrong? I did my best to follow the integration instructions but still getting nowhere. :frowning:

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

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.

I managed to make display work with MB808 with help of my friend, but it dont shows content of 2nd line. Im using 2x16 instead of 3x16 DOG. Are there something else I should configure in order to show 2nd line?

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 :slight_smile:

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

Thank you philetaylor. I did so, but still no 2nd line. :frowning:

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

That looks fine, from re-reading the datasheet I am more convinced that this is the problem :slight_smile:

Cheers

Phil

Cool, I`ll try it as soon as I back home from work. Thanks for the help mate.

DOG finally barks! :slight_smile:

Besides altering the initialization, I needed to change the second line offset to 0x40.

Thank you once again for your help. :wink:

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