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

Time to Write to Internal Eeprom & Flash?

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



Joined: 20 Sep 2005
Posts: 23
Location: Glasgow, Scotland, UK

View user's profile Send private message

Time to Write to Internal Eeprom & Flash?
PostPosted: Mon Nov 21, 2005 5:11 am     Reply with quote

I want to buffer 20-30 bytes of data arriving every few seconds, to any spare internal eeprom or flash program memory that I've got left Idea , on a 10 MHz Modtronics SB65 (PIC18f6621), in case I loose the serial link to a PC host for a few minutes.

Anybody know how long it takes to read or write using these funcs? Question

write_eeprom & read_eeprom
write_program_eeprom & read_program_eeprom
write_program_memory & read_program_memory

Neither the CCS help or manual give any idea, but I presume that there is a "write every few hundred microseconds" until it reads back correct going on inside the write routines, and that this might take a few millisecs per byte????
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 21, 2005 6:27 am     Reply with quote

The CCcode overhead is negligible. The time is dependant on the write characteristics of the device and can be found in the data sheet for the processor. For example, a 18F1320 has an 18ms page write to Flash Program Memory time. The CCS executes the write and waits until it is complete before returning.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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