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

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

Postby victorhantelmann » Sat Jan 26, 2013 11:10 pm

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 157 times
EB-005-12-3_MOD_001.fcf
(13.75 KiB) Downloaded 111 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

Postby victorhantelmann » Sat Jan 26, 2013 11:29 pm

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.86 KiB) Downloaded 116 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: 514 times
Been thanked: 467 times
Contact:

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

Postby dazz » Sat Jan 26, 2013 11:58 pm

Hi
what issues are you having ie nothing displaying etc
Regards
Dazz
These users thanked the author dazz for the post:
victorhantelmann (Sun Jan 27, 2013 5:57 pm)
Rating: 5%
 
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

Postby Enamul » Sun Jan 27, 2013 12:53 am

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.
These users thanked the author Enamul for the post:
victorhantelmann (Sun Jan 27, 2013 5:57 pm)
Rating: 5%
 
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8809
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2553 times
Been thanked: 3712 times
Contact:

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

Postby medelec35 » Sun Jan 27, 2013 1:13 am

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 120 times
These users thanked the author medelec35 for the post:
victorhantelmann (Sun Jan 27, 2013 5:57 pm)
Rating: 5%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Postby victorhantelmann » Sun Jan 27, 2013 9:32 am

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

Postby victorhantelmann » Sun Jan 27, 2013 12:16 pm

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 119 times
Last edited by victorhantelmann on Sun Jan 27, 2013 6:06 pm, edited 1 time in total.

kersing
Valued Contributor
Valued Contributor
Posts: 1930
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 567 times
Been thanked: 1078 times
Contact:

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

Postby kersing » Sun Jan 27, 2013 12:47 pm

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.
These users thanked the author kersing for the post (total 2):
dazz (Sun Jan 27, 2013 1:41 pm) • victorhantelmann (Sun Jan 27, 2013 5:58 pm)
Rating: 10%
 
“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

Postby victorhantelmann » Sun Jan 27, 2013 5:42 pm

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 77 times

kersing
Valued Contributor
Valued Contributor
Posts: 1930
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 567 times
Been thanked: 1078 times
Contact:

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

Postby kersing » Sun Jan 27, 2013 6:57 pm

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.
These users thanked the author kersing for the post (total 2):
victorhantelmann (Sun Jan 27, 2013 11:19 pm) • medelec35 (Mon Jan 28, 2013 12:49 am)
Rating: 10%
 
“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

Postby victorhantelmann » Sun Jan 27, 2013 11:19 pm

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
(43.03 KiB) Downloaded 166 times
EB-005-12-3_MOD_004.fcf
(50.81 KiB) Downloaded 82 times
These users thanked the author victorhantelmann for the post (total 3):
dazz (Sun Jan 27, 2013 11:32 pm) • kersing (Mon Jan 28, 2013 12:05 am) • medelec35 (Mon Jan 28, 2013 12:48 am)
Rating: 15%