EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Problems

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Problems

Post by victorhantelmann »

I can't figure out how to make this work ... I am using PIC18F26K80 for it's CAN capabilities because I will also need to be able to see what will be sent or received by CAN (future development).
The problem is that for the moment I can't make the LCD type DEM20486SYH-LY to work by using Flowcode 5 LCD component functions... Can you please point me what am I doing wrong?
There shouldn't any problem since DEM20486SYH-LY is Samsung's KS0066U DRIVER & CONTROLLER based as your EB005 LCD Board but in fact there is (probably something that I' doing wrong...)
Thank you in advance.
Attachments
Stand_SCH.pdf
(64.84 KiB) Downloaded 297 times
EB-005-12-3_MOD_001.fcf
(13.75 KiB) Downloaded 273 times
Last edited by victorhantelmann on Sun Jan 27, 2013 6:04 pm, edited 2 times in total.

victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by victorhantelmann »

I am also adding a link to KS0066U datasheet
http://www.ece.uidaho.edu/ee/classes/EC ... S0066U.pdf
and DEM20486SYH datasheet for reference information.
Attachments
DEM20486SYH.pdf
(145.72 KiB) Downloaded 280 times
Last edited by victorhantelmann on Sun Jan 27, 2013 6:07 pm, edited 2 times in total.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20286SYH-LY LCD Prob

Post by dazz »

Hi
what issues are you having ie nothing displaying etc
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20286SYH-LY LCD Prob

Post by Enamul »

Hi
You have to check two things..One is whether your LCD controller is HD44780 or compatible with that or not. If not you have to modify the c code to make it compatible. Your R/W pin of LCD need to be ground for normal LCD operations. I am not sure whether you have done that in program or not..better to GND in hardware before you are sure that it works fine with existing LCD component of Flowcode.
Enamul
University of Nottingham
enamul4mm@gmail.com

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20286SYH-LY LCD Prob

Post by medelec35 »

Hi Victor,
I can spot two issues with your flowchart.
1) You have set the osc frequency to 40MHz.
the default internal osc with no osccon set is 8MHz.
Therefore with PLL = 4 x 8 = 32MHz

2)Watchdog is enabled and there are no clear watchdog commands or auto clear watchdog is not enabled.

Is the LED running at the precise 1Hz?

Can you try this version please. I can't guarantee without testing it first.
Unfortunately I don't have a pic18F26K80 :(

Martin
Attachments
EB-005-12-3_MOD_001.fcf
(13.71 KiB) Downloaded 281 times
Martin

victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by victorhantelmann »

First of all thank you all very much for your fast reply.
Answer 1 - for dazz:
Nothing is displaying. V0 as in datasheet at 4.5 Vcc for best contrast. If I modify contrast voltage, I can see the background rectangles so the LCD is working.
Answer 2 - for Enamul:
I have grounded R/W pin but still no change. I'm not sure if KS0066U and HD44780 are fully compatible but they are certainly close, I am still studying the datasheet.
Answer 3 - for Medelec35:
The LED is blinks about 4 times slower than 1 Hz (with the code you provided) and nothing shows on LCD.
I will verify PIC18F26K80 datasheet for OSC configuration.
It would be nice to be able to work with INTOSC and PLL to 64 MHz but since PPPv3 application has different interface names than the ones used in datasheet by Microchip it is difficult and a little confusing for me because I have to guess. I have to look into this problem much more.
Answer 4 - for all:
I rechecked the wires on my prototype board so I am posting the new schematic.
Attachments
Stand_SCH.pdf
(64.96 KiB) Downloaded 272 times
Last edited by victorhantelmann on Sun Jan 27, 2013 6:06 pm, edited 1 time in total.

victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by victorhantelmann »

I checked the suggestions given by medelec35 concerning PLL, OSCTUNE and OSCON. Thank you for pointing me in that direction.
I am posting the code containing oscillator settings, this code blinks the LED at 1 Hz.
Unfortunately the LCD is still blank but at least I solved the oscillator.
Attachments
EB-005-12-3_MOD_002.fcf
(17.6 KiB) Downloaded 286 times
Last edited by victorhantelmann on Sun Jan 27, 2013 6:06 pm, edited 1 time in total.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20286SYH-LY LCD Prob

Post by kersing »

In your (revised) schematic there is the DEM20486SYH-LY, your message subject states DEM20286SYH-LY. Which one are you using?

Anyway, when looking at the 4 bit initialization sequence for DEM20486SYH-LY (data sheet you attached, page 13) and for the LCD on the Eblock (page 46) there seems to be quite a difference. I think this display will require modifications to the LCD Start code for it to work.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by victorhantelmann »

Answer to kersing:
1. I use DEM20486SYH-LY LCD sorry for this mistake, I changed all my posts accordingly.
2. You are right, I did wrote the INIT procedure and I am attaching the code for all of you to take a look and verify it if you have time.
3. Thank you for pointing me in the right direction.
4. Unfortunately my LCD is still not displaying anything on screen, but I think that there is more to it than just the INIT procedure ... Any advice would be appreciated.
Thank you again.
Attachments
EB-005-12-3_MOD_003.fcf
(43.96 KiB) Downloaded 226 times

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by kersing »

Have you considered changing the Start code of the LCD component? Right click on the LCD component, select 'Custom code', select 'Start' in the list of component macro's and click the button 'Edit Code'. Now you are able to change the C code in the macro. By updating this macro (and using RawSend) you do not need to worry about setting/resetting the handshake signals.

Also, while working on the display code it might help to keep the clock below 30MHz. There have been reports of timing issues with high speed clocks and the LCD component. Then increase the clock speed after you get the display working.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

victorhantelmann
Posts: 14
Joined: Sat Apr 14, 2012 11:37 pm
Location: Iasi, Romania
Has thanked: 8 times
Been thanked: 7 times
Contact:

Re: EB-005-12-3 and PIC18F26K80 with DEM20486SYH-LY LCD Prob

Post by victorhantelmann »

Thank you all for helping, I am attaching the final test code and the INITIALISATION SUPPL for this kind of display.
It is working well and I hope that it will be useful to others since it is a cheap and rather big display.
I will follow mr. kersing advice later as soon as I will have the time, thank you sir.
Attachments
INITIALIZATION_SUPPL.PDF
(42.97 KiB) Downloaded 311 times
EB-005-12-3_MOD_004.fcf
(50.81 KiB) Downloaded 196 times

Post Reply