|
|
View previous topic :: View next topic |
Author |
Message |
Pedro
Joined: 08 Sep 2003 Posts: 2
|
write_eeprom don�t work. |
Posted: Wed Feb 25, 2004 9:36 pm |
|
|
Hello , i try this but don�t work :
I use PCWH v.3.184.
My fuses are : HS,WDT128,MCU,PROTECT,NOCPD,NOWRTD,NOPUT,NODEBUG,NOVLP,NOOSCSEN,NOBROWNOUT,NOWRTC
#Rom 0xf00000={0x00,0x00}
.
.
.
int teste;
write_eeprom(0,0x10);
teste=read_eeprom(0);
the teste value is 0x00 and not 0x10.
Any idea ????? please....
[]s Pedro |
|
|
Guest
|
|
Posted: Wed Feb 25, 2004 10:01 pm |
|
|
The picmicro is 18f8720. |
|
|
Ttelmah Guest
|
|
Posted: Thu Feb 26, 2004 3:11 am |
|
|
Anonymous wrote: | The picmicro is 18f8720. |
I think you have your fuses confused...
'NOCPD', means that the code area is not protected. 'PROTECT', means that the data EEPROM _is_...
Best Wishes |
|
|
Tony Helinski
Joined: 09 Sep 2003 Posts: 6
|
|
Posted: Thu Feb 26, 2004 1:17 pm |
|
|
I believe you need to do this:
#rom int8 0xF00000 =
{...}
If you don't use the int8 the compiler uses int16 |
|
|
Guest
|
|
Posted: Thu Feb 26, 2004 2:52 pm |
|
|
Hello tank�s , but the problem is with write_eeprom , i use #rom int8.
Tank�s for any help. |
|
|
|
|
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
|