MSP430¶ÁдƬÄÚFLASH±£´æÊý¾Ý
±¾ÎÄÀ´×Ôhttp://blog.csdn.net/hellogv/ £¬ÒýÓñØÐë×¢Ã÷³ö´¦£¡
FLASHÐ͵ÄMSP430µ¥Æ¬»ú¶¼´øÓÐÐÅÏ¢´æ´¢Æ÷SegmengA¼°SegmentB,SegmengA¼°SegmentB¸÷ÓÐ128×Ö£¬SegmentBµÄµØÖ·ÊÇ£º0x01000hµ½0x107F£¬SegmentAµÄµØÖ·ÊÇ£º0x01080hµ½0x010FFh¡£³ÌÐò±»Ð´ÈëMSP430Ö®ºó£¬³ÌÐòͨ¹ýSegmengA¼°SegmentB¾Í¿ÉÒÔ±£´æ²»µôµçÊý¾Ý¡£×¢Ò⣺ÿ´Î³ÌÐòÉÕдµ½MSP430ʱ£¬SegmengA¼°SegmentB¶¼»á±»²Á³ý£¡
½ÓÏÂÀ´Ìù³ö±¾ÎĵijÌÐò´úÂ룬ÒÔ¼°³ÌÐòдÈëÐÅÏ¢´æ´¢Æ÷Ö®ºóµÄFLASHÊý¾Ý£º
#include <msp430xG43x.h>
void WriteSegment_256 (char index,char *value,char size);
char ReadSegment_256(char index);
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
FCTL2 = FWKEY + FSSEL0 + FN0; // MCLK/2 for Flash Timing Generator
char str1[3]={0xAA,0xBB,0xCC};
WriteSegment_256(0,str1,3);
for(char i=0;i<255;i++)
_NOP();
char str2[3]={0xBB,0xAA,0xCC};
WriteSegment_256(0,str2,3);
}
#define SegmentStart 0x01000 //Segment = 0x01000~0x010FF
#define SegmentSize 255 //SegmentA + SegmentB = 256
//*********************************************************
//¶ÁȡƬÄÚ´æ´¢µÄÊý¾Ý
//*********************************************************
char ReadSegment_256(char index)
{
char *flash_ptr = ((char *) SegmentStart) + index;
return *flash_ptr;
}
// *****************************************************
//°ÑÊý×éдÈëÊý¾Ýµ½Æ¬ÄÚFLASH£¬±ØÐëÏÈÈ«²¿²Á³ýÔÙдÈë
//²ÎÊýindex:±£´æÊý×éµÄλÖÃ
//²ÎÊývalue:Êý×éµÄÖ¸Õë
//²ÎÊýsize:Êý×éµÄ´óС
// *****************************************************
void WriteSegment_256 (char index,char *value,char size)
{
char buffer[SegmentSize],i=0;
char *flash_ptr = (char *) SegmentStart;
//ÏȶÁÈ¡ÔFLASHÊý×é
for(i=0;i<SegmentSize;i++)
buffer[i]=ReadSegment_256(i);
//²Á³ýFLASH£¬±ØÐë
FCTL1 = FWKEY + ERASE; // Set Erase bit
FCTL3 = FWKEY; // Clear Lock bit
*f
Ïà¹ØÎĵµ£º
½ñÌì¸üÐÂÎÒÃǹ«Ë¾µÄÍøÕ¾Ê×Ò³Óöµ½Á˵ãÎÊÌ⣬ÐÂ×°µÄdreamweaver cs3 ×öºÃµÄÒ³ÃæÉÏ´«ºó·¢ÏÖǶÈëµÄ*.swfÎļþÎÞ·¨ÏÔʾ£¨¸Ð¾õ¾ÍÏñ²»´æÔÚÒ»Ñù£©¡£ÎÒÅųýÁËËùÓпÉÄܳöÏÖÎÊÌâµÄµØ·½£¨±ÈÈçÁ´½ÓµØÖ·¡¢Ïà¶ÔºÍ¾ø¶Ô·¾¶¡¢ÎļþÃûµÈ£©£¬×îºó¶à·½²éÕÒÖÕÓÚ·¢ÏÖ£¬ÔÀ´ÊÇdreamweaver cs3 µÄ°æ±¾ÎÊÌâ¡£Õ⻹ÊÇÎÒµÄͬÊ´ӰٶÈÉÏËѵ½µÄ½â¾ö°ì·¨¡£
Ô ......
1¡¢ÓÃpanel,label,button,textinput×齨²¼¾Ö£¬ÈçÏÂͼ£º
2¡¢ÉèÓû§Ãû¡¢ÃÜÂë¡¢ÑéÖ¤ÂëËù¶ÔÓ¦µÄtextinputµÄid·Ö±ðΪuserName¡¢pasWord¡¢inVal;ÉèÓÃÓÚÏÔʾÑéÖ¤ÂëµÄlabel×齨µÄidΪ£ºval.
²¼¾Ö´úÂëÈçÏ£º
<s:Panel x="126" y="98" width="250" height="200" id="login" title="Óû§ ......
CLSID clsid;
HRESULT hr =
CLSIDfromProgID(L"ShockwaveFlash.ShockwaveFlash", &clsid);
ÒÔÉÏ´úÂëÓÃÀ´¼ì²âFlashÊÇ·ñ°²×°£¬CLSIDfromProgIDͨ¹ý×¢²á±íÀ´²éѯCLSIDµÄÖµ¡£²»ÖªºÎ¹ÊÓÐʱע±íÄÚ×¢²áÏî²»ÍêÕû£¨ÔÚXP£¬2003Öж¼ÓгöÏÖ£©,²éѯµÃÖªHKEY_CLASSES_ROOT\ShockwaveFlash ......
P0werPointÖвåÈëFlash¶¯»µÄÁíÒ»ÖÖ·½·¨
PowerPointÒòÆäͨË×Ò×¶®¡¢ÈÝÒ×ÉÏÊÖ¶ø³ÉΪÀÏʦÃÇÖÆ×÷¿Î¼þµÄ³£Óù¤¾ß£¬¶øFlashÊÇĿǰ±È½ÏÁ÷Ðе͝»ÖÆ×÷Èí¼þ£¬ÓÐʱÔÚPowerPoint¿Î¼þÖÐΪÁ˸üÐÎÏóµØËµÃ÷ÎÊÌ⣬ϣÍû¿ÉÒÔ²åÈëFlash¶¯»¡£
¿´¹ý¡¶ÖйúµçÄÔ½ÌÓý±¨¡·ÒÔǰ¿¯µÇ¹ýÔÚPowerPointÖвåÈëFlash¶¯»µÄÎÄÕ£¬»ù±¾·½·¨ÊÇÑ¡Ôñ²Ëµ¥&ldquo ......