PDA

View Full Version : Which pic has a big flash program memory?



amindzo
- 1st November 2006, 15:51
Hi,
i have written a program about 1000 lines and it's hex file is more than 4k so i can't use 16F873A but i use 16F877A.so i have these two questions:
1- if my program is being more than 8K what should i do?

2- i used 16F877A instead of 16F873A. but i just need 28 pin micro so i have
alot of extra pin.so it is effect on the cost of the project because an engineer should do the project with less cost.so whould i do for this?

sayzer
- 1st November 2006, 16:37
Hi,...and it's hex file is more than 4k so i can't use 16F873A but i use 16F877A.so i have these two questions:
1- if my program is being more than 8K what should i do?...


Are you using PBP and Code Studio?
If yes, how many "words" do you get when you compile your code?
Remember that the "words used" changes from PIC to PIC.

If you compile a code for 16F873A, you get say 200 words, but you may get more if you compile the exact same code for 16F877A.

Thus, you should not look at the size of the HEX file, but the "words used".


---------------------------

SteveB
- 1st November 2006, 16:39
Start Here (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=74). Take your pick. Quite a few (28) in the 96K-128K (http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1136&mid=10&lang=en&pageId=74) range. Not so many (11) in the 128K-256K (http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1137&mid=10&lang=en&pageId=74) range. To get a large program memory size, you will need to go with an 18 series pic. Use can use the parametric search features to get the pin count/memory size/feature set you desire.

Steve

Dave
- 1st November 2006, 16:39
amindzo, Look at using an 18F252 then in the future you can upgrade to an 18F2620....

Dave Purola,
N8NTA

amindzo
- 1st November 2006, 19:35
Hi,
i use micro code studio picbasic2.41.
my program was about 6355 word.