CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

programmer memory for PIC16F676

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








programmer memory for PIC16F676
PostPosted: Sun Mar 20, 2005 5:46 am     Reply with quote

Hi,

I found my firmware not running if ROM usage bigger than 768, even debugger shows no compile error.
datasheet says the flash memory is 1024 for PIC16F676

1, Is there any limitionation of progamme size?
2, Normally, what is the difference of code written in assembly and CCS C? Can reach 50%

Recently I found PIC16F676 does not have enough ROM for my design.
I wonder whether to replace with a high memory chip or write my code in assembly can solve the problem.

Confused
Ttelmah
Guest







PostPosted: Sun Mar 20, 2005 6:27 am     Reply with quote

Are you using an ICD?.
If so, this uses memory. There is a significant block of ROM at the top of the chip, that is used by the ICD system, and is therefore not available for code when you are operating this way.
The 'useage' difference between assembler, and C, varies massively, both with compiler versions, and what you are actually 'doing'. Typically, the overhead will range from nothing (some lines result in very efficient code), with an overall average, depending on the chip involved, at perhaps +10% to +40%. The latter versions of the compiler have tended to improve this. I have a project that was originally written in assembler, and then the version-2, shifted to compiler, on one of the larger PICs. The assembler was 10377 lines long. The compiler source, was 2066 lines, and the resulting asembler 'list' file, when generated, was 13142 lines. With the latest improvements in optimisation on the larger PIC chips, this has since fallen to 11147 lines. The difference in maintainability on a 2000 line program, versus a 10000 line program, is where C wins....

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group