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
Finished Code Estimate
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- AbhijitR
- Posts: 299
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 280 times
- Been thanked: 79 times
- Contact:
Re: Finished Code Estimate
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
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
-
- Posts: 315
- Joined: Sun Jun 23, 2013 1:29 pm
- Has thanked: 28 times
- Been thanked: 61 times
- Contact:
Re: Finished Code Estimate
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?
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?
- AbhijitR
- Posts: 299
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 280 times
- Been thanked: 79 times
- Contact:
Re: Finished Code Estimate
Yes indeed, I use FC8Docara wrote: was that compiled code produced with Flowcode?
Abhi