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

Data flash on 18LF6620

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



Joined: 15 Dec 2004
Posts: 4

View user's profile Send private message

Data flash on 18LF6620
PostPosted: Wed Dec 15, 2004 6:04 am     Reply with quote

I'm trying to use the data flash on a 6620 and am using write_eeprom(), however the function only accepts an 8 bit address. How can I write to the data flash above 0xff ??

Thanks
Michael.


Last edited by mnoble_uk on Wed Dec 15, 2004 6:21 am; edited 1 time in total
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 6:15 am     Reply with quote

I can't find the datasheet for the 16LF6620, are you sure about this type number?
mnoble_uk



Joined: 15 Dec 2004
Posts: 4

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 6:20 am     Reply with quote

oopsie I meant 18LF6620 ....
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 7:08 am     Reply with quote

From the readme.txt in v3.212:
Quote:
The READ_PROGRAM_EEPROM and WRITE_PROGRAM_EEPROM functions for PIC18 now return 16 bits. The manual indicates it is 8 bits. New functions are comming that will will have more options.


If you have an older version then check your readme.txt for supporting 16 bits.
mnoble_uk



Joined: 15 Dec 2004
Posts: 4

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 7:47 am     Reply with quote

yes I've read that, but that sentence doesnt make much sense.

Besides does that not refer to programme flash rather than data flash?
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 8:15 am     Reply with quote

You are right, I mixed up the data and program EEPROM.

The quickest way to find out if 16 bit addressing works is just to try it. Write data to a high memory address and check in MPLAB the EEPROM view to find out where the data was written.
mnoble_uk



Joined: 15 Dec 2004
Posts: 4

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 8:27 am     Reply with quote

Ive tried it and it doesnt work, hence the question Laughing
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