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 support@ccsinfo.com

16F505 have same RAM like 12F509

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



Joined: 21 Sep 2010
Posts: 159

View user's profile Send private message

16F505 have same RAM like 12F509
PostPosted: Tue Nov 04, 2014 7:19 am     Reply with quote

Hy
I have compiler 4.140
I make program for PIC12F509, after I see not enought no of pins I changed for PIC16F505 and on compiler RAM used is the same 89%, but on data sheet I see 509 have 41 SRAM bytes, and 505 have 72 SRAM bytes.
When I change controllers RAM used must fall to about 51%? for same program?
509 have 2 Bank of registers
505 have 4 Bank of registers (but compiler use only 2 I think)
I look froward for your help.
Best regards.
Ttelmah



Joined: 11 Mar 2010
Posts: 19246

View user's profile Send private message

PostPosted: Tue Nov 04, 2014 9:29 am     Reply with quote

#DEVICE *=8

By default the compiler saves space in the code, by only using 5bit RAM addresses. Makes the code smaller (reduces bank switching) but limits you on how much RAM can be accessed.
nailuy



Joined: 21 Sep 2010
Posts: 159

View user's profile Send private message

PostPosted: Tue Nov 04, 2014 4:11 pm     Reply with quote

Yes Ttelmah you are right.
Thank you.
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