LCD is not doing what I want

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

Moderator: Benj

Post Reply
go233
Posts: 96
Joined: Mon Mar 02, 2015 12:32 pm
Has thanked: 5 times
Been thanked: 11 times
Contact:

LCD is not doing what I want

Post 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

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

Re: LCD is not doing what I want

Post 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
Martin

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: LCD is not doing what I want

Post 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.

go233
Posts: 96
Joined: Mon Mar 02, 2015 12:32 pm
Has thanked: 5 times
Been thanked: 11 times
Contact:

Re: LCD is not doing what I want

Post 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

go233
Posts: 96
Joined: Mon Mar 02, 2015 12:32 pm
Has thanked: 5 times
Been thanked: 11 times
Contact:

Re: LCD is not doing what I want

Post by go233 »

Hello,
this is the file you wanted...I hope.
Giovanni
Attachments
td1.fcfx
(4.23 KiB) Downloaded 165 times

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

Re: LCD is not doing what I want

Post 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
Martin

Post Reply