Problem with EB005 LCD Display

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
jim_g
Posts: 22
Joined: Tue Jan 13, 2015 12:47 pm
Has thanked: 6 times
Been thanked: 8 times

Problem with EB005 LCD Display

Post by jim_g »

Hi.
I have just started to program using Flowcode 6 and I am making sure I can program each of my blocks successfully before I connect them together as a project.

I want to use the display block EB005 with PIC 18F45K22 (the device I have 'standardised' on) but my Flowcode 6 program does not work.

Suspecting the display, I used the EB005 factory test code, with a PIC 16F877A to test it, and the display works just fine.
I then changed the target device to PIC 18F45K22, same crystal at 19660800 Hz and using the same programmer (Olimex PIC-KIT3). The EB006 board is powered from a 12 volt supply and the programmer disconnected before testing. For the PIC 18F45K22, I disabled the clock multiplier and changed the P3A/CCP3 Mux bit from RB5 to RE0. Otherwise I have not changed the EB005 factory test program other than to select a new device. The LCD display does not work with this CPU.
If I place an EB004 board 'in series with' the EB005, I can see LED flashes during the LCD commands on Port B. I have also tried putting 200ms delays before and after the LCD initialisation macro, with no improvement. I can only think that this is either a timing issue, or a CPU configuration error on my part. Can anyone help please?
Attachments
EB-005-Test.fcfx
(6.64 KiB) Downloaded 255 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problem with EB005 LCD Display

Post by Benj »

Hello Jim,

I have changed your config settings slightly and hopefully now the chip will run.
EB-005-Test.fcfx
(6.43 KiB) Downloaded 256 times
Let me know how you get on.

jim_g
Posts: 22
Joined: Tue Jan 13, 2015 12:47 pm
Has thanked: 6 times
Been thanked: 8 times

Re: Problem with EB005 LCD Display

Post by jim_g »

Hi Benj

Thanks for the fast reply!

Yes, that fixed the problem. Looks like I've got some reading and learning to do! I count 6 changes.
Best Regards and thanks
Jim

jim_g
Posts: 22
Joined: Tue Jan 13, 2015 12:47 pm
Has thanked: 6 times
Been thanked: 8 times

Re: Problem with EB005 LCD Display

Post by jim_g »

Just in case anyone else needs to know, the offending configuration item was the extended instruction set, which I had enabled in error.

Regards

Jim

User avatar
E*2Engineer
Posts: 35
Joined: Wed Dec 25, 2013 6:54 pm
Has thanked: 12 times
Been thanked: 6 times

Re: Problem with EB005 LCD Display

Post by E*2Engineer »

jim_g wrote:Just in case anyone else needs to know, the offending configuration item was the extended instruction set, which I had enabled in error.

Regards

Jim
Hi,
I am having problems with any new code I write not working with the LCD display, how are you enabling/ disabling the extended instruction set?
Thanks,
E*2 engineer.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times

Re: Problem with EB005 LCD Display

Post by QMESAR »

how are you enabling/ disabling the extended instruction set?
HI
Go to Build >> Project Options >> Configure and you will find it in the configuration window
Attachments
21.01.jpg
21.01.jpg (178.99 KiB) Viewed 5681 times

User avatar
E*2Engineer
Posts: 35
Joined: Wed Dec 25, 2013 6:54 pm
Has thanked: 12 times
Been thanked: 6 times

Re: Problem with EB005 LCD Display

Post by E*2Engineer »

QMESAR ,
Thanks for your your fast reply.
I am currently using FC 4.5 and so am trying to find the equivalent in my version.
I will be upgrading to to Version 6 in two months, but until then, I will have to work my way though it.
It's weird, as there are no changes to my configuration I know of. But old programs are running the display fine, and new programs are not.........
Thanks,
E*2Engineer

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times

Re: Problem with EB005 LCD Display

Post by QMESAR »

Hello
I never use V4 :D
Sorry I can not be of more help too you ,Ben or one of the experienced user will certainly help you
Good luck

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

Re: Problem with EB005 LCD Display

Post by medelec35 »

Hi E*2Engineer,
It may help if you can post a flowchart so we can see if we help you further.
But just in case the issues is the extended instruction set option:

With Flowcode V4, you will need to go to 'Chip', 'Configure'
There are two configuration screens.
Simple and expert.
You must have the expert configuration enabled.
If you can only see simple configuration menu:
Simple config.png
(7.71 KiB) Downloaded 2741 times
Then to save keep pressing 'Switch to Expert Config Screen'
You can enable Expert Config Screen by selecting 'Options', then unselect 'Use Simple Config Screen', select OK
When in expert config screen by 'Chip', 'Configure' menu you can then select Disabled for Extended instruction set:
Expert Config.png
(31.73 KiB) Downloaded 2741 times
Note: What is called Expert configuration with V4, is the standard configuration screen for Flowcode V5 and above

Martin
Martin

Post Reply