MSP-EXP430Launchpad 实验指南参考代码附录本附录为 MSP-EXP430Launchpad 实验指南中各章节涉与示例程序的完整参考代码
目录第三章 13
64第五章 105
553第六章 576
3 光照度检测模块程序设计 646
476第三章3
5Flash 使用的代码样例#include "msp430g2553
h"/****************************************************g2553 有 4 个数据段,每个数据段有 64bytes,共 256bytesD:0x1000 -- 0x003FC:0x1040 -- 0x107FB:0x1080 -- 0x10BFA:0x10C0 -- 0x10FF ****************************************************/#define uint unsigned int#define uchar unsigned char#define SegA 0x010C0#define SegB 0x01080#define SegC 0x01040#define SegD 0x01000 #define SegSize 64/********************Flash 初始化********************/void FlashInit(){ FCTL2