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

MSP430µ¥Æ¬»úѧϰ(Ò»)——Flash¶Áд²Ù×÷

 ÉùÃ÷£º±¾ÎÄÒÔMSP430F2122ΪÀý˵Ã÷Flash¶Áд²Ù×÷¡£
Ò»¡¢MSP430F2122µÄFLASH½á¹¹
       FLASHÄ£¿é½á¹¹Í¼Èçͼһ
       
ͼһ
       MSP430 FLASHÐ͵¥Æ¬»úµÄFLASH´æ´¢Æ÷·ÖΪÖ÷´æ´¢Æ÷ºÍÐÅÏ¢´æ´¢Æ÷¡£Ö÷´æ´¢Æ÷¸ù¾Ý²»Í¬µÄÈÝÁ¿·ÖΪÈô¸É¶Î£¨segment£©Ã¿¸ö¶ÎΪ512×Ö½Ú£¬Ã¿Ò»¸ö¶ÎÓÖÓÐËĸö¿é£¨block£©£¬Ã¿¸ö¿éΪ64×Ö½Ú£»ÐÅÏ¢´æ´¢Æ÷·ÖΪSegmengA¡¢SegmentB¡¢SegmentCºÍSegmentD£¬ÆäÖÐÿ¸ö¶Î¸÷ÓÐ64¸ö×Ö½Ú¡£Èçͼ¶þËùʾ
   ͼ¶þ
¶þ¡¢FLASHÄ£¿éµÄ¼Ä´æÆ÷
      Ïà¹ØµÄ¼Ä´æÆ÷ÓУºFCTL1¡¢FCTL2¡¢FCTL3ºÍIE1
      
ͼÈý
ͼËÄ
ͼÎå
 
ͼÁù
    
ͼÆß
 
Èý¡¢FLASH¶ÁдµÄÈí¼þʵÏÖ
       FLASH´æ´¢Æ÷дÈëÊý¾Ýʱ£¬Ã¿Ò»Î»Ö»ÄÜÓÉ“1”±ä³É“0”£¬²»ÄÜÓÉ“0”±ä³É“1“£¬Òò´Ë£¬µ±ÎÒÃÇÓÐÊý¾ÝÒª±£´æµ½FLASH´æ´¢Æ÷ʱ£¬ÒªÏȶÔÄ¿±ê¶Î½øÐÐÕû¶Î²Á³ý²Ù×÷£¬²Á³ý²Ù×÷ʹµÄ¶ÔÓ¦¶ÎFLASH´æ´¢Æ÷±ä³ÉÈ«“1”¡£ÏÂÃæÊDzÁ³ýFLASH¶ÎµÄ×Ó³ÌÐò£¬ÅäÖúñØÒªµÄ¼Ä´æÆ÷ºó£¬Ïò¶ÎÖÐÈÎÒâµØַдÈëÊý¾Ý£¬¼°²Á³ýÒ»¶Î¡£
void flash_clr(int *ptr)
{
     _DINT();                               //¹ØÖжÏ
     FCTL3 = 0x0A500;              //* Lock = 0 ¿ªËø
     FCTL1 = 0x0A502;              //* Erase = 1 ʹÄܲÁ³ý
    *((int *) ptr) = 0;                  //* ²Á³ý¶Î
}
FLASH´æ´¢Æ÷¿ÉÒÔ°´×Ö½ÚдÈ룬Ҳ¿ÉÒÔ°´×ÖдÈë¡£
       // ×Ö½ÚдÈë
void flash_write_int8(int8_t *ptr, int8_t value)
{
     _DINT();
     FCTL3 = 0x0A500; 


Ïà¹ØÎĵµ£º

FLASH²¥·ÅÆ÷¿Ø¼þÏà¹ØÊôÐÔ·½·¨ËµÃ÷

FLASH²¥·ÅÆ÷¿Ø¼þÏà¹ØÊôÐÔ·½·¨ËµÃ÷¡£
2008-07-03 18:19
AlignMode £¨¶Áд£©
Óï·¨£ºAlignMode As Long
˵Ã÷£º¶ÔÆ뷽ʽ£¨Óë SAlign ÊôÐÔÁª¶¯£©¡£µ±¿Ø¼þµÄ ³¤¿í±ÈÀýÓëӰƬ²»Ò»ÖÂÇÒ WMode ²»Îª ExactFit ʱ£¬Ó°Æ¬
£¨Ã»Óб»·Å´óµÄ£©ÔڿؼþÖÐÏÔʾµÄλÖÿÉÓøÃÊôÐÔµ÷Õû¡£ ¸ÃÊôÐÔÖµÓɱê־λ×é³É¡£Èçͼ£¬½«¸ÃÊôÐÔÖµ£¨¶þ½øÖÆ£© ......

NORºÍNAND Flash´æ´¢Æ÷µÄÇø±ð

                         
NORºÍNANDÊÇÏÖÔÚÊг¡ÉÏÁ½ÖÖÖ÷ÒªµÄ·ÇÒ×ʧÉÁ´æ¼¼Êõ¡£IntelÓÚ1988ÄêÊ×ÏÈ¿ª·¢³öNOR flash¼¼Êõ,³¹µ×¸Ä±äÁËÔ­ÏÈÓÉEPROMºÍEEPROMһͳÌìϵľÖÃæ¡£½ô½Ó×Å,1989Äê,¶«Ö¥¹ ......

¹ØÓÚFlashÄÚ´æÇåÀí£¨×ª£©

Flash PlayerµÄgarbage collection£¨GC£©·ÖÁ½ÖÖÔËÐз½Ê½£¬Ò»ÖÖÊÇ“ÒýÓüÆÊý·¨”£¨Reference Counting£©£¬Ò»ÖÖÊÇ“±ê¼Ç-Çå³ý·¨”£¨Mark Sweeping£©¡£
ÒýÓüÆÊý·¨ÊÇͨ¹ý¼ÆËãÖ¸Ïòij¸ö¶ÔÏóµÄÒýÓõÄÊýÁ¿À´È·¶¨ÊÇ·ñÇå³ý¸Ã¶ÔÏó¡£Èç¹ûÒ»¸ö¶ÔÏóµÄÒýÓÃÊýÁ¿Îª0£¬±íʾ³ÌÐòÎÞ·¨ÔÙ·ÃÎʵ½¸Ã¶ÔÏó£¬ÔòÇå³ý¸Ã¶ÔÏó£»Èç¹ûÒ ......

£¨×ªÔØ£©FLASHÓÎÏ·ÈëÃÅ Îå


¡¡¡¡¸ãÁË°ëÌìµÄÄñCLASS£¬ÎÒÃÇÓֻص½ÁË×öÓÎÏ·µÄÄÚÈÝÉÏÀ´¡£
¡¡¡¡ÔÛÃÇѧÄÇô¶à֪ʶ£¬Ä¿µÄҲֻΪÁ˸üºÃµÄÀ´×öÓÎÏ·¡£Õâ¸öÓÎÏ·°É£¬Ç°ÃæÒ²ÓÐÅóÓÑ˵µ½ÁË£¬¸ù±¾²»ÓÃCLASS£¬×ö¸öµ¥¸öFLAÎļþF9°´ÁËÃÍ´ò´úÂ룬ȻºóMCÀïµã¿ªÁ˶«Äñµã´úÂ룬Î÷Äñµã´úÂ룬ҲÄÜÍê³É¡£Ã»´í£¬È·ÊµÕâÑù¡£
¡¡¡¡ÎÒ×Ô¼ºÏ൱³¤Ò»¶Îʱ¼äÄÚÒ²ÊDz»¶®CLASSÖ®Á÷£¬Ö»Óà ......

£¨×ªÔØ£©FLASHÓÎÏ·ÈëÃÅ °Ë

¡¡¡¡·¶Àý½Ó±¦ÓÎÏ·Öе÷ÖÏÔʾÀàºÍʱ¼ä¿ØÖÆÀàµÄCLASS½²½â
¡¡¡¡ÊÂʵÉÏÕâÁ½²¿·Ö±È½Ï¼òµ¥
¡¡¡¡ËùÒÔ²¢ÔÚÒ»Æð½²½âÁË
¡¡¡¡½²½âÇ°Ïȵ㿪FLAÎļþ£¬°ÑÕâÁ½¸öMC¿´¿´£¬¶ÔMC¹¹ÔìÁ˽âÁË£¬²ÅÄÜдCLASSÂï~
¡¡¡¡¿´Ïµ÷ÖÏÔʾÀàµÄ´úÂ룺
class game.Score_view extends MovieClip {
¡¡¡¡private var w1:MovieClip;
¡¡¡¡private var w2:M ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ