View previous topic :: View next topic |
Author |
Message |
ckrusen
Joined: 09 Feb 2009 Posts: 12
|
Can't access all of 16F688's RAM |
Posted: Wed Jul 29, 2009 10:54 am |
|
|
Device: PIC16F688 RAM
Compiler: CCSC PCM V3.235
The PIC16F688 has 256 bytes of RAM, and according to the datasheet the RAM occupies the spaces: $20-$7F, $90-$EF, and $120-$16F. That adds up to 256 bytes.
However, the compiler complains that I've used 100% of the RAM, while the SYM file shows no variables (declared or SCRATCH) above $EF.
How do I specify the memory space so I can use those last 80 bytes fro $120 - $16F?
Thanks in advance _________________ Calvin |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jul 29, 2009 11:12 am |
|
|
Quote: |
How do I specify the memory space so I can use those last 80 bytes fro $120 - $16F?
|
Quote: | #include <16F688.h>
#device *=16
#fuses XT, NOWDT, PUT, BROWNOUT
#use delay(clock=4000000)
|
Add the line shown in bold. This is for the 16F-series. It's not needed for 18F. |
|
|
ckrusen
Joined: 09 Feb 2009 Posts: 12
|
|
Posted: Wed Jul 29, 2009 11:37 am |
|
|
PCM programmer wrote: | Quote: |
How do I specify the memory space so I can use those last 80 bytes fro $120 - $16F?
|
Quote: | #include <16F688.h>
#device *=16
#fuses XT, NOWDT, PUT, BROWNOUT
#use delay(clock=4000000)
|
Add the line shown in bold. This is for the 16F-series. It's not needed for 18F. |
Thanks!
It seems odd to default to excluding nearly 1/3 of the RAM. _________________ Calvin |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|