Am 03.12.2002 22:22:29, schrieb "Flemming Nyboe" <[email protected]>:

>Allright, there's a "flash.h" header, but once FCTL1 is set up for a write,
>how do I actually write to an address in information memory in C ?

1. set up FCTL1-3 (WRT=1)
2. write to address as it were RAM
 e.g. set up a pointer:
unsigned short *flashw = 0xe000;
for(i=0;i<128;i++) {
  *flashw = 123+i;
  flashw++;
}
or whatever.

3. disable writing (WRT=0)

chris



Reply via email to