>>I used to use a EPROM for storing code, but I found that some circuits use >>flash for storing code instead. What is the difference between these two >>ways of code storage? Which is better? > > > Flash is electrically erasable, EPROM erases with UV light. > Flash can be easily programmed in circuit. > > This article from Michael Barr's Embedded Systems Glossary should help. > http://www.netrino.com/Publications/Glossary/MemoryTypes.html I have been suspecting that Flash or EEPROM are not as rugged on the field as EPROM. Most likely due to surge, EPROM when it fails, it is a device failure. UV does not help. But a good percentage of Flash or EEPROM can be recovered through reprogramming. Comments? Cheers, Ling SM -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist