Finished Code Estimate

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

Moderator: Benj

Post Reply
Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Finished Code Estimate

Post by Docara »

Hi

Looking to size a PIC - just would like to get an idea/estimate in practice of finished code size to implement a Modbus slave system to drive a 2 output pins based on received byte.
I'm looking to use the PIC16LF18xx range, so will it fit into a 2K, 4K or an 8K device.

Thanks

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: Finished Code Estimate

Post by Benj »

Hello,

Sounds like you should be able to get away with a fairly small memory device. I would create a project with a large memory device, add the code you want to implement and compile to hex and see what kind of memory usage the program requires. You can then switch between different target devices based on the required memory usage.

User avatar
AbhijitR
Posts: 298
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 279 times
Been thanked: 78 times
Contact:

Re: Finished Code Estimate

Post by AbhijitR »

Hello! Docara

In the past I have used PIC16F1938 (1K RAM) for only MODBUS slave application, I used more or less 7 inputs and 3 outputs (digital), 3 Registers and 1 analog input, everything went okay with this chip, I have also attached the complier message for your knowledge.

Thank you.

Regards
Abhi
Attachments
Compiler_Message_PIC16F1938_Modbus.PNG
(10.38 KiB) Downloaded 1219 times

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: Finished Code Estimate

Post by Docara »

Thank you Both,

Hi Ben, yes in an ideal world this of course is the way to go, but I might need 30+ devices so there is a massive budgetary component to this.

Hi Abhi, that's great but was that compiled code produced with Flowcode?

User avatar
AbhijitR
Posts: 298
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 279 times
Been thanked: 78 times
Contact:

Re: Finished Code Estimate

Post by AbhijitR »

Docara wrote: was that compiled code produced with Flowcode?
Yes indeed, I use FC8

Abhi

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: Finished Code Estimate

Post by Docara »

Sweeeet

Thanks :D
Matt

Post Reply