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: 19546
Posted: Tue Nov 04, 2014 9:29 am
#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.
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