|
|
View previous topic :: View next topic |
Author |
Message |
KenMacfarlane
Joined: 20 Sep 2005 Posts: 23 Location: Glasgow, Scotland, UK
|
Time to Write to Internal Eeprom & Flash? |
Posted: Mon Nov 21, 2005 5:11 am |
|
|
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 , 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?
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
|
|
Posted: Mon Nov 21, 2005 6:27 am |
|
|
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!! |
|
|
|
|
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
|