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 CCS Technical Support

write_eeprom donīt work.

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



Joined: 08 Sep 2003
Posts: 2

View user's profile Send private message

write_eeprom donīt work.
PostPosted: Wed Feb 25, 2004 9:36 pm     Reply with quote

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








PostPosted: Wed Feb 25, 2004 10:01 pm     Reply with quote

The picmicro is 18f8720.
Ttelmah
Guest







PostPosted: Thu Feb 26, 2004 3:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 26, 2004 1:17 pm     Reply with quote

I believe you need to do this:
#rom int8 0xF00000 =
{...}

If you don't use the int8 the compiler uses int16
Guest








PostPosted: Thu Feb 26, 2004 2:52 pm     Reply with quote

Hello tankīs , but the problem is with write_eeprom , i use #rom int8.

Tankīs for any help.
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