Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 16th September 2005, 05:30 AM   (permalink)
Default Flash & EEPROM

What are the main differences between Flash and EEPROM ?

I was wondering that if in a microcontroller, both Flash Program Memory and EEPROM can retain data after power off, then what's the difference between them ? Also both are Alterable Memories..ie: The content in any individual address can be changed, no need to erase completely for changing just one value. So what is the difference ?
Electrix is offline   Reply With Quote
Old 16th September 2005, 08:26 AM   (permalink)
Default Re: Flash & EEPROM

Quote:
Originally Posted by Electrix
What are the main differences between Flash and EEPROM ?

I was wondering that if in a microcontroller, both Flash Program Memory and EEPROM can retain data after power off, then what's the difference between them ? Also both are Alterable Memories..ie: The content in any individual address can be changed, no need to erase completely for changing just one value. So what is the difference ?
They are slightly different technologies, that's all, many items claimed to be FLASH are in fact actually EEPROM - but 'FLASH' is a more exciting buzzword for the advertisers, so most are now advertised as FLASH.

As far as I'm aware?, Atmel started this trend (although they did convert to 'proper' FLASH after a while), and MicroChip eventually followed suit. Even later on, MicroChip started making 'proper' FLASH versions as well, the 876A and 877A being two of the first - the 628A doesn't appear to be FLASH though.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 16th September 2005, 01:22 PM   (permalink)
Default

FLASH - A special type of EEPROM that can be erased and reprogrammed in blocks instead of one byte at a time.
The principal difference is that EEPROM requires data to be written or erased one byte at a time whereas flash memory allows data to be written or erased in blocks. This makes flash memory faster.
__________________
Instruite
http://www.icesociety.org
=====================
Ideas that work,
Concepts that sell.
=====================
instruite is offline   Reply With Quote
Old 16th September 2005, 03:11 PM   (permalink)
Default

Quote:
Originally Posted by instruite
FLASH - A special type of EEPROM that can be erased and reprogrammed in blocks instead of one byte at a time.
The principal difference is that EEPROM requires data to be written or erased one byte at a time whereas flash memory allows data to be written or erased in blocks. This makes flash memory faster.
That is true, as I looked up a few websites..However, FLASH does allow you to change one individual memory location by itself and not having to reprogram the entire chip (similar to EEPROM). My programmer software (Oshon) allows me to read the chip and make a change in any of the location individually.
Electrix is offline   Reply With Quote
Old 16th September 2005, 03:13 PM   (permalink)
Default

Another (significant) difference is that Flash program memory mostly cannot be altered during program/code execution, whereas the EEPROM in general can always store/erase data during execution.
Electrix is offline   Reply With Quote
Old 16th September 2005, 03:36 PM   (permalink)
Default

Quote:
Originally Posted by Electrix
Another (significant) difference is that Flash program memory mostly cannot be altered during program/code execution, whereas the EEPROM in general can always store/erase data during execution.
Ever heard of bootloader?
__________________
L.Chung
eblc1388 is offline   Reply With Quote
Old 16th September 2005, 03:42 PM   (permalink)
Default

Quote:
Originally Posted by eblc1388
Quote:
Originally Posted by Electrix
Another (significant) difference is that Flash program memory mostly cannot be altered during program/code execution, whereas the EEPROM in general can always store/erase data during execution.
Ever heard of bootloader?
Yup, just heard of it..never tried it out ! Correct me here if necessary, once you have downloaded the code into your program memory with a bootloader, you cannot modify it during execution..
Electrix is offline   Reply With Quote
Old 16th September 2005, 04:38 PM   (permalink)
Default

Quote:
Originally Posted by Electrix
Yup, just heard of it..never tried it out ! Correct me here if necessary, once you have downloaded the code into your program memory with a bootloader, you cannot modify it during execution..
Yes you could, but you shouldn't! - fairly obviously writing over the code that is doing the writing is going to cause a problem or two :lol:

A bootloader is just a program that runs as normal in the PIC, so when you are writing to the PIC using a bootloader you ARE modifying it during execution.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 17th September 2005, 02:00 AM   (permalink)
Default

Electrix wrote:
Quote:
Quote:
instruite wrote:
FLASH - A special type of EEPROM that can be erased and reprogrammed in blocks instead of one byte at a time.
The principal difference is that EEPROM requires data to be written or erased one byte at a time whereas flash memory allows data to be written or erased in blocks. This makes flash memory faster.
That is true, as I looked up a few websites..However, FLASH does allow you to change one individual memory location by itself and not having to reprogram the entire chip (similar to EEPROM). My programmer software (Oshon) allows me to read the chip and make a change in any of the location individually.
I never said Flash cannot be programmed with one byte at a time
When I say it is special type of EEPROM, I guess it means EEPROM with some extra features which is Block programming
__________________
Instruite
http://www.icesociety.org
=====================
Ideas that work,
Concepts that sell.
=====================
instruite is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 02:35 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.