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

16f84 ORG Range

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







16f84 ORG Range
PostPosted: Wed Apr 21, 2004 9:58 pm     Reply with quote

I'm using a 16f84 device.
When compiling why would the following give me an error: Invalid ORG range? I thought the stack range can be up to 1FFFh.

Thanks in advance.

The code that gives an error:


#org 0x1EE0, 0x1EEF
const char Build_Date[] = __DATE__;
#org 0x1EF0, 0x1EFF
const char Build_Time[] = __TIME__;
Ttelmah
Guest







Re: 16f84 ORG Range
PostPosted: Thu Apr 22, 2004 2:38 am     Reply with quote

Guest_X44 wrote:
I'm using a 16f84 device.
When compiling why would the following give me an error: Invalid ORG range? I thought the stack range can be up to 1FFFh.

Thanks in advance.

The code that gives an error:


#org 0x1EE0, 0x1EEF
const char Build_Date[] = __DATE__;
#org 0x1EF0, 0x1EFF
const char Build_Time[] = __TIME__;

The _address range_ of the processor, is 1FFF, _but_ on the 16F84, only 3FF words are physically implemented. Look at the 'memory organization' diagram in the chip's data sheet.
The compiler knows the upper address that is available.
The 'stack', has nothing to do with the physical ROM.

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