View previous topic :: View next topic |
Author |
Message |
angel
Joined: 19 Oct 2004 Posts: 40
|
new pic |
Posted: Fri Oct 10, 2008 12:57 am |
|
|
Hi
I am using a 16F876 pic and ccs compiler. I have some problems with the memory. After compiling my ROM is 96% and my Ram range (15%-60%). I could always opitimize the code but I lose a lot of time.
Due to the difficulties to continue programming because of the memory I am thinking of changing my PIC. Do you know a PIC that is similar to the 16F876 but with more memory ? I think the CCS performace would be much better.... maybe a PIC 18? In this case what is your favourite? Thanks. |
|
|
linhnc308
Joined: 16 Feb 2006 Posts: 9 Location: Viet Nam
|
|
Posted: Fri Oct 10, 2008 1:47 am |
|
|
hi,
If You need more space. You can use PIC18F2620 (my favorite). It had 32KB flash. Use can choose a cheaper device name PIC18F26K20, it like 2620.
Go to MicroChip web site, and download Microchip MAP, it quite useful for you to choose a suitable device for your project. |
|
|
MicroManiac
Joined: 21 Aug 2008 Posts: 34
|
|
Posted: Fri Oct 10, 2008 3:18 am |
|
|
One more thing, you got a 96% ROM!!!!!!!!!!!!!!
Dude you need to optimize your code because even if your thinking is correct, you might have errors and you will not be able to trace them.
try the PIC18f452 it is a really good device
But you need to OPTIMIZE your code before doing so _________________ "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Albert Einstein |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1636 Location: Perth, Australia
|
|
Posted: Fri Oct 10, 2008 8:50 am |
|
|
MicroManiac wrote: | One more thing, you got a 96% ROM!!!!!!!!!!!!!!
Dude you need to optimize your code because even if your thinking is correct, you might have errors and you will not be able to trace them.
try the PIC18f452 it is a really good device
But you need to OPTIMIZE your code before doing so |
I would not use a 452 for new designs. The PIC18F4620 is pin compatible to the PIC18F452 and is the same price but the PIC18F4620 has more RAM and Program Memory
The PIC16F876/PIC16F877 can be replaced with PIC18F2620/4620 pin compatible counter parts.
However, if you are going to change families anyway, check out the PIC24 family, much more RAM and Program memory but with a significantly improved I/O subsystems. The remappable I/O pins allow 28 pin devices to be used in applications that could have have been achieved in PIC16F/PIC18F 40 pin devices. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|