On Wednesday 17 March 2004 12:44, zantos wrote: > I want to put a few bytes of configuration data in flash memory at run time > and read also. Any small example of code anywhere on how to do this for a > newbie. TIA > z AFAIK the 16F628 can't write its own flash (program!) memory. Use the EEPROM for that. The most convenient way of using the flash memory for storing data is using the RETLW table-read construction, but you really don't want to put configuration values in the flash memory. The EEPROM can also be written during programming, so setting defaults is easy. Koen -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads