Page 1 of 1

Finished Code Estimate

Posted: Mon Nov 25, 2019 1:01 pm
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

Re: Finished Code Estimate

Posted: Mon Nov 25, 2019 1:09 pm
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.

Re: Finished Code Estimate

Posted: Mon Nov 25, 2019 1:18 pm
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

Re: Finished Code Estimate

Posted: Mon Nov 25, 2019 2:29 pm
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?

Re: Finished Code Estimate

Posted: Mon Nov 25, 2019 3:39 pm
by AbhijitR
Docara wrote: was that compiled code produced with Flowcode?
Yes indeed, I use FC8

Abhi

Re: Finished Code Estimate

Posted: Mon Nov 25, 2019 4:26 pm
by Docara
Sweeeet

Thanks :D
Matt