信息存贮器有两段,segment A和segment B,每段128字节,使用方法请见下面例子:
//****************************************************************************
// MSP-FET430x110 Demo - Flash In-System Programming
//
// Description; This program first erases flash seg A, then it increments all
// values in seg A, then it erases seg B, then copies seg A to seg B.
// Assumed MCLK 550kHz - 900kHz.
//
// MSP430F1121
// -----------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
//
// M. Mitchell
// Texas Instruments, Inc
// August 2002
// Built with IAR Embedded Workbench Version: 1.25A
// December 2003
// Updated for IAR Embedded Workbench Version: 2.21B
//******************************************************************************
//******************************************************************************
#include <msp430x11x1.h>
char value; // 8-bit value to write to segment A
// Function prototypes
void write_SegA (char value);
void copy_A2B (void);