Page 1 of 1

LCD is not doing what I want

Posted: Thu Mar 05, 2015 11:05 am
by go233
Hi there,
1. I have flowcode 6 demo. I run the example "Hello world" downloaded from MATRIX web site.
LCB connected to PORTB
It works with 16F88, but it doesn't with 16F747; the simulation works in both cases.

2. if I move the LCD from PORTB to PORTA dosn't work with the PIC16F88

3. if I move the LCD from PORTB to PORTC doesn't work with the PIC16F747

Could you help me, please?

Thanks
Giovanni

Re: LCD is not doing what I want

Posted: Thu Mar 05, 2015 11:21 am
by medelec35
Hi Giovanni,
Sounds like your configuration settings (build, project options).

Is watchdog timer and Low voltage programming disabled?

What about osc clock speed. if greater than 4MHz is osc set for HS and is clock speed settings matching crystal speed?

I believe you did not have an issue with 16F88 because in flowcode it's preconfigured.
With 16F747 it's not, so you will have to go through all the configuration options and make sure they are similar to 16F88 .

Martin

Re: LCD is not doing what I want

Posted: Thu Mar 05, 2015 12:26 pm
by Benj
Hello,
2. if I move the LCD from PORTB to PORTA dosn't work with the PIC16F88
The LCD won't work with a 16F88 device on PortA as pin A5 on the 16F88 is the reset MCLR pin and cannot be used as an output.
3. if I move the LCD from PORTB to PORTC doesn't work with the PIC16F747
As Martin has said this could be down to incorrect config settings.

If your in doubt please attach your Flowcode project .fcfx file to the forums so we can try and provide better help rather than guessing what might be wrong.

Re: LCD is not doing what I want

Posted: Fri Mar 06, 2015 8:21 am
by go233
Hi,
yes, I will as soon as I get to the office, but
I don't understand how the simulation works....I hoped that the simulator can mirror the "real hardware" connections of the device!!!!!! Therefore should warm me with an error or something saying "LCD won't work because pin xy is in use for bla bla".... am I missing something here? or the simulator has a bug? or is not capable to simulate the real hardware?
Thanks
Giovanni

Re: LCD is not doing what I want

Posted: Fri Mar 06, 2015 10:53 am
by go233
Hello,
this is the file you wanted...I hope.
Giovanni

Re: LCD is not doing what I want

Posted: Fri Mar 06, 2015 2:07 pm
by medelec35
Hi Giovanni,
The only thing that I can spot is clock is set for 19.66MHz yet osc type is not sent on the recommended HS.
Also LCD pin Data0 is connected to D0 when all the other pins are connected to portB.
Could that be your issue?

Martin