Variant to usual components in PIC designs

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

Moderators: Benj, Mods

Post Reply
msnm4
Posts: 6
Joined: Sun Jan 13, 2008 7:20 pm
Contact:

Variant to usual components in PIC designs

Post by msnm4 »

Hi all,

I am testing the Flowcode demo and find it a great tool for people who doesnΒ΄t want to deal with C syntaxis issues. But I could notice there are some components definition fully focused on E-blocks. Two examples are the LCD and keypad macro components. The first demands a specific Hw connection of the LCD to the pic micro (in 2 x 4 bit chunks, etc) and the second do not allow other than 12 key keypads (or am I wrong?).
In PIC design it is quite usual to have LCD displays with its 8 data pins fully connected to a port and the other 3 pins (RS, Enable, R/W) connected to another. Also in keypads, 16 keys is quite frequent.
I can imagine that changing those macros to make Flowcode a HW independent tool should not be very complicated, or may be it is already done?
Thanks for your answer.

Mauricio

ivan
Posts: 4
Joined: Thu Feb 14, 2008 12:45 pm
Contact:

Re: Variant to usual components in PIC designs

Post by ivan »

hi
if you look also at pdf files of E-Blocks there is a fully schematics very useful for some components wich connection are not desc. in help files

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: Variant to usual components in PIC designs

Post by Benj »

Hello

The most common design for the LCD is to use the 4-bit data mode as this way you get the most free I/O pins to use for other peripherals.

Changing the Keypad component for a 16 Key component should not be too difficult but it will require editing the C code file for the component.

msnm4
Posts: 6
Joined: Sun Jan 13, 2008 7:20 pm
Contact:

Re: Variant to usual components in PIC designs

Post by msnm4 »

Hi Benj,
Thank you for your answer, and I agree with both of your statements.
I am considering to buy Flowcode to avoid dealing with code, but it seems that to take full advantage of it (for 100% application flexibility) you need to be a C programmer!!
Is it possible to develop a wizard to design custom components?
Regards

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: Variant to usual components in PIC designs

Post by Benj »

Hello

We have spent a large amount of time developing a custom component wizard in the past for previous versions of Flowcode but we have found that it doesn't get used very much and in the end we have to provide extra support for customers struggling to use it correctly. This cuts into other features that we could be building into Flowcode.

If you are looking at simple components such as a 16 key keypad then I can probably point you in the right direction and provide help if you get stuck.

You are correct in saying the for 100% flexibility you need to know C but most of our users do not need this level of flexibility. Also the great thing about Flowcode is that it actually generates commented C code in a very readable format so you can create Flowcode programs and then view the C files and get to grips with the various commands that are occurring behind the scenes.

msnm4
Posts: 6
Joined: Sun Jan 13, 2008 7:20 pm
Contact:

Re: Variant to usual components in PIC designs

Post by msnm4 »

I would be very gratefull if you could help me how to start designing my own custom components. For example:
-How to proceed with the file custom_code.c.?
-Is it enough to modify that file or is it necessary to touch something else?
- Once you do that behind the scenes and open Flowcode again, do you see any kind of screen for that custom component?

Regards and thanks again

Mauricio
Argentina

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: Variant to usual components in PIC designs

Post by Benj »

Hello

I have added a quick guide to the custom components to the Flowcode Beta Components Page. This can be accessed via the Downloads page of our website.

Please note that we will not provide support for the coding of the custom component. If you get stuck then post on our forums and someone should be able to help you.

Post Reply