Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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 ÖвåÈëFLASHÎÞ·¨ÏÔʾµÄÎÊÌâ

½ñÌì¸üÐÂÎÒÃǹ«Ë¾µÄÍøÕ¾Ê×Ò³Óöµ½Á˵ãÎÊÌ⣬ÐÂ×°µÄdreamweaver cs3 ×öºÃµÄÒ³ÃæÉÏ´«ºó·¢ÏÖǶÈëµÄ*.swfÎļþÎÞ·¨ÏÔʾ£¨¸Ð¾õ¾ÍÏñ²»´æÔÚÒ»Ñù£©¡£ÎÒÅųýÁËËùÓпÉÄܳöÏÖÎÊÌâµÄµØ·½£¨±ÈÈçÁ´½ÓµØÖ·¡¢Ïà¶ÔºÍ¾ø¶Ô·¾¶¡¢ÎļþÃûµÈ£©£¬×îºó¶à·½²éÕÒÖÕÓÚ·¢ÏÖ£¬Ô­À´ÊÇdreamweaver cs3 µÄ°æ±¾ÎÊÌâ¡£Õ⻹ÊÇÎÒµÄͬÊ´ӰٶÈÉÏËѵ½µÄ½â¾ö°ì·¨¡£
Ô ......

Ê×Ò³flash·­¹ö½¹µãͼµÄ¼òµ¥ÊµÏÖ

ÅäºÏ½¹µãͼflashʹÓã¬Ô­À´ÊÇÈ¡µÃ×îеÄͼƬÎÄÕ£¬È»ºó°ÑÏà¹ØÐÅÏ¢×÷Ϊ²ÎÊý´«µÝ¸øflash²¥·Å¡£
focus.asp´úÂëÈçÏ£º
<!--#Include File="conn.asp" -->
<!--#Include File="include/inc.asp"-->
<%
'Ê×Ò³½¹µãÒ³Ãæ
'by winston
'2010/05/15
Dim QueryArray
Dim FocusLinks,FocusP ......

CLSIDfromProgID ¼ì²âFlashÊÇ·ñ°²×°µÄBug


CLSID  clsid; 
HRESULT  hr  = 
CLSIDfromProgID(L"ShockwaveFlash.ShockwaveFlash",  &clsid);
ÒÔÉÏ´úÂëÓÃÀ´¼ì²âFlashÊÇ·ñ°²×°£¬CLSIDfromProgIDͨ¹ý×¢²á±íÀ´²éѯCLSIDµÄÖµ¡£²»ÖªºÎ¹ÊÓÐʱע±íÄÚ×¢²áÏî²»ÍêÕû£¨ÔÚXP£¬2003Öж¼ÓгöÏÖ£©,²éѯµÃÖªHKEY_CLASSES_ROOT\ShockwaveFlash ......

²¥·ÅFlashÎļþ

µÚÒ»£¬Ìí¼Ó¿Ø¼þ¡£
   ¹¤¾ßÏä Ìí¼Ó—COM×é¼þ—Ñ¡ÔñShockwave Flash Object£¬µã»÷È·¶¨¡£Ö®ºó¸ù¾ÝÐèÒª¶Ô¸ÃdllÎļþ½øÐÐ×¢²á¡£
    ×¢²á·½Ê½Îªregsvr32  C:\Windows\System32\Macromed\Flash\Flash10a.ocx [²é¿´Õâ¸öĿ¼£¬°æ±¾²»Í¬¿ÉÄÜ´ËÎļþÃû²»Í¬]
µÚ¶þ£¬ÍϷſؼþÖÁ´°Ìå¡£
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ