unitrant
Joined: 18 Jul 2005 Posts: 9 Location: Hertfordshire. UK
|
Problem using #rom with EEprom data |
Posted: Tue Sep 12, 2006 4:56 am |
|
|
I have converted 16F877 code to 18F452 code but I am finding the section to initialise data for the internal EEprom is going awry.
The code below generates 8bit numbers for the EEprom when 16F877 is defined but generates 16bit numbers when 18F452 is defined.
Code: | #ifdef proc_18F452
#rom 0xF00000 =
#else
#rom 0x2100 =
#endif
{
#if ICE2000==1
1, 0, 10, 10,
21,
#else
0x7F, 0x00, 0x10, 0x10,
0x93,
#endif
}
|
Do I need to add/change something or is there a bug in #rom when used in this way, please? |
|