|
|
View previous topic :: View next topic |
Author |
Message |
Guest_X44 Guest
|
16f84 ORG Range |
Posted: Wed Apr 21, 2004 9:58 pm |
|
|
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 |
Posted: Thu Apr 22, 2004 2:38 am |
|
|
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 |
|
|
|
|
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
|