Page 1 of 1

Problem with EB005 LCD Display

Posted: Tue Jan 13, 2015 1:41 pm
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?

Re: Problem with EB005 LCD Display

Posted: Tue Jan 13, 2015 3:23 pm
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.

Re: Problem with EB005 LCD Display

Posted: Tue Jan 13, 2015 6:19 pm
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

Re: Problem with EB005 LCD Display

Posted: Tue Jan 13, 2015 6:42 pm
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

Re: Problem with EB005 LCD Display

Posted: Wed Jan 21, 2015 6:40 am
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.

Re: Problem with EB005 LCD Display

Posted: Wed Jan 21, 2015 9:05 am
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

Re: Problem with EB005 LCD Display

Posted: Thu Jan 22, 2015 8:16 am
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

Re: Problem with EB005 LCD Display

Posted: Thu Jan 22, 2015 8:41 am
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

Re: Problem with EB005 LCD Display

Posted: Thu Jan 22, 2015 8:42 am
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