i2c for LCD

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

Post Reply
zadah
Posts: 31
Joined: Wed May 02, 2012 5:49 pm
Has thanked: 3 times
Been thanked: 7 times
Contact:

i2c for LCD

Post by zadah »

Hello

I tried this from Flowcode 4 forum:

http://www.matrixmultimedia.com/mmforum ... =26&t=8037

But it doesnt compile on flowcode 5.

Is there any similar simple solution for Flowcode 5 version ?

I have quite popular "Funduino i2c 20x4 LCD", which I would like to test with flowcode.

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: i2c for LCD

Post by Benj »

Hello,

The file uses customised components, here is a version which should compile correctly in v5.
I2C_LCD_mcp.fcf
(40.25 KiB) Downloaded 481 times

zadah
Posts: 31
Joined: Wed May 02, 2012 5:49 pm
Has thanked: 3 times
Been thanked: 7 times
Contact:

Re: i2c for LCD

Post by zadah »

Thanks Benj

It compiles now OK.

I would like to understand how the modified code works... I noticed that LCD RawSend macro is not calling transmit byte nor enable pulse i2c macros....

I didint understand when i2c transmission occurs inside the LCD macro.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: i2c for LCD

Post by bercioiu »

Hi guys!

What chip (I/O Expander) have to use with that flowchart because I tried with MCP8574 and didn't work at all... And another question: RC7 used in the flowchart is for the VDD on LCD?
I use Flowcode V5 Prof. with all the updates.
I need that custom code because I don`t know how to use i2c and I have an project with LCD and the spot for LCD is 1 meter from the 16F887 and in the classic connection (6 wires), from time to time have to reset the pic because the LCD is going crazy.
Thank you!

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: i2c for LCD

Post by Benj »

I would like to understand how the modified code works...
The I2C code is hidden inside the Enable LCD macro.
What chip (I/O Expander) have to use with that flowchart because I tried with MCP8574 and didn't work at all
Think we used the MCP23017 which may have used to exist under the name of MCP23S17 or something similar.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: i2c for LCD

Post by bercioiu »

In that thread with lcd_mcp file is another file for pcf, can you please fix that too to compile in the v5 Flowcode?

Post Reply