亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sst39vf640xb.cpp

?? sst39vf640xB flash driver
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
/*                                                                      */
/* Output:                                                              */
/*          None                                                        */
/************************************************************************/
void SecID_Query(WORD *SST_SecID, WORD *User_SecID)
{
    WORD index;
         //  Issue the SecID Entry code to 39VF640X
    *sysAddress(0x555) = 0x00AA;  // write data 0x00AA to device addr 0x555
    *sysAddress(0x2AA) = 0x0055;  // write data 0x0055 to device addr 0x2AA
    *sysAddress(0x555) = 0x0088;  // write data 0x0088 to device addr 0x555
    Delay_150_Nano_Seconds();      // insert delay time = Tida

    	//  Perform all Security ID operations here:
    	//  	SST programmed segment is from address 000000H--000007H,
    	//  	User programmed segment is from address 000010H--000017H.

    for (index = 0x0000; index <= 0x0007; index++)
    {
    	 *SST_SecID = *sysAddress(index);
         ++SST_SecID;
         *User_SecID = *sysAddress(index+0x0010);
         ++User_SecID;
	// Security query data is stored in user-defined memory space.
    }
        // Issue the Sec ID Exit code thus returning the 39VF640X
        // to the read operating mode
    *sysAddress(0x555) = 0x00AA;  // write data 0x00AA to device addr 0x555
    *sysAddress(0x2AA) = 0x0055;  // write data 0x0055 to device addr 0x2AA
    *sysAddress(0x555) = 0x00F0;  // write data 0x00F0 to device addr 0x555
    Delay_150_Nano_Seconds();      // insert delay time = Tida
}


/************************************************************************/
/* PROCEDURE:   Erase_One_Sector                                        */
/*                                                                      */
/* This procedure can be used to erase a total of 2048 words.           */
/*                                                                      */
/* Input:                                                               */
/*      Dst     DESTINATION address where the erase operation starts    */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates success in sector-erase             */
/*          return FALSE: indicates failure in sector-erase             */
/************************************************************************/
int Erase_One_Sector(Uint32 Dst)
{
	Uint32 DestBuf = Dst;
   int  ReturnStatus;

	//  Issue the Sector Erase command to 39VF640X
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(0x555) = 0x0080;     // write data 0x0080 to device addr 0x555
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(DestBuf) = 0x0050;    // write data 0x0050 to device sector addr

   ReturnStatus = Check_Toggle_Ready(DestBuf);	// wait for TOGGLE bit ready

   return ReturnStatus;
}


/************************************************************************/
/* PROCEDURE:   Erase_One_Block                                         */
/*                                                                      */
/* This procedure can be used to erase a total of 32K words.            */
/*                                                                      */
/* Input:                                                               */
/*      Dst     DESTINATION address where the erase operation starts    */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates success in block-erase              */
/*          return FALSE: indicates failure in block-erase              */
/************************************************************************/
int Erase_One_Block (Uint32 Dst)
{
   Uint32 DestBuf = Dst;
   int ReturnStatus;

    //  Issue the Block Erase command to 39VF640X
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(0x555) = 0x0080;     // write data 0x0080 to device addr 0x555
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(DestBuf) = 0x0030;    // write data 0x0030 to device sector addr

   ReturnStatus = Check_Toggle_Ready(DestBuf);	  	// wait for TOGGLE bit ready

   return ReturnStatus;
}


/************************************************************************/
/* PROCEDURE:   Erase_Entire_Chip                                       */
/*                                                                      */
/* This procedure can be used to erase the entire chip.                 */
/*                                                                      */
/* Input:                                                               */
/*      NONE                                                            */
/*                                                                      */
/* Output:                                                              */
/*      NONE                                                            */
/************************************************************************/
int Erase_Entire_Chip(void)
{
   //  Issue the Chip Erase command to 39VF640X
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(0x555) = 0x0080;     // write data 0x0080 to device addr 0x555
	*sysAddress(0x555) = 0x00AA;     // write data 0x00AA to device addr 0x555
	*sysAddress(0x2AA) = 0x0055;     // write data 0x0055 to device addr 0x2AA
	*sysAddress(0x555) = 0x0010;     // write data 0x0010 to device addr 0x555

   //Delay_50_Milli_Seconds();       	// Delay Tsce time
   if (Check_Data_Polling (0,0xFFFF))
   	return TRUE;
   else
    return FALSE;
}


/************************************************************************/
/* PROCEDURE:   Program_One_Word                                        */
/*                                                                      */
/* This procedure can be used to program ONE word of data to the        */
/* 39VF640X.                                                            */
/*                                                                      */
/* NOTE:  It is necessary to first erase the sector containing the      */
/*        word to be programmed.                                	*/
/*                                                                      */
/* Input:                                                               */
/*           SrcWord The WORD which will be written to the 39VF640XB    */
/*           Dst     DESTINATION address which will be written with the */
/*                   data passed in from Src                            */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates success in word-program             */
/*          return FALSE: indicates failure in word-program             */
/************************************************************************/
int Program_One_Word (WORD *SrcWord,   Uint32 Dst)
{
    Uint32 DestBuf = Dst;
    WORD *SourceBuf = SrcWord;
    int ReturnStatus;

    *sysAddress(0x555) = 0x00AA; // write data 0x00AA to device addr 0x555
    *sysAddress(0x2AA) = 0x0055; // write data 0x0055 to device addr 0x2AA
    *sysAddress(0x555) = 0x00A0; // write data 0x00A0 to device addr 0x555
    *sysAddress(DestBuf) = *SourceBuf; // transfer the WORD to destination

    ReturnStatus = Check_Toggle_Ready(DestBuf); // wait for TOGGLE bit ready

    return ReturnStatus;
}


/************************************************************************/
/* PROCEDURE:   Program_One_Sector                                      */
/*                                                                      */
/* This procedure can be used to program a total of 2048 words of data  */
/* to the SST39VF640X.                                                  */
/*                                                                      */
/* NOTES: 1. It is necessary to first erase the sector before the	*/
/*        programming.                                			*/
/*        2. This sample code assumes the destination address passed	*/
/*        from the calling function is the starting address of the	*/
/*        sector.							*/
/*                                                                      */
/* Input:                                                               */
/*           Src     SOURCE address containing the data which will be   */
/*                   written to the 39VF640XB                            */
/*           Dst     DESTINATION address which will be written with the */
/*                   data passed in from Src                            */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates success in sector-program           */
/*          return FALSE: indicates failure in sector-program           */
/************************************************************************/
int Program_One_Sector (WORD *Src, Uint32 Dst)
{

    WORD *SourceBuf;
    Uint32 DestBuf;
    int Index, ReturnStatus;

    SourceBuf = Src;
    DestBuf = Dst;
    ReturnStatus = Erase_One_Sector(DestBuf);	// erase the sector first
    if (!ReturnStatus)
    	return ReturnStatus;

    for (Index = 0; Index < SECTOR_SIZE; Index++)
    { 	// transfer data from source to destination
	ReturnStatus = Program_One_Word( SourceBuf, DestBuf);
	++DestBuf;
	++SourceBuf;

        if (!ReturnStatus)
    	   return ReturnStatus;
    }

    return ReturnStatus;
}


/************************************************************************/
/* PROCEDURE:   Program_One_Block                                       */
/*                                                                      */
/* This procedure can be used to program a total of 32k words of data   */
/* to the SST39VF640XB.                                                  */
/*                                                                      */
/* NOTES: 1. It is necessary to first erase the block before the	*/
/*        programming.                                			*/
/*        2. This sample code assumes the destination address passed	*/
/*        from the calling function is the starting address of the	*/
/*        block.							*/
/*									*/
/* Input:                                                               */
/*           Src     SOURCE address containing the data which will be   */
/*                   written to the 39VF640X                            */
/*           Dst     DESTINATION address which will be written with the */
/*                   data passed in from Src                            */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates success in block-program            */
/*          return FALSE: indicates failure in block-program            */
/************************************************************************/
int Program_One_Block (WORD *Src, Uint32 Dst)
{
    WORD *SourceBuf;
    Uint32 DestBuf;
    int Index, ReturnStatus;

    SourceBuf = Src;
    DestBuf = Dst;
    ReturnStatus = Erase_One_Block(DestBuf);	// erase the block first
    if (!ReturnStatus)
    	return ReturnStatus;

    for (Index = 0; Index < BLOCK_SIZE; Index++)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品一区| 国产午夜亚洲精品理论片色戒| 综合自拍亚洲综合图不卡区| 99视频超级精品| 亚洲一区视频在线观看视频| 欧美美女黄视频| 极品少妇一区二区| 国产精品欧美久久久久一区二区 | 欧美日韩三级在线| 免费看日韩a级影片| 国产精品麻豆久久久| 欧美精选午夜久久久乱码6080| 国产一区二区影院| 亚洲国产精品一区二区尤物区| 2021久久国产精品不只是精品| 99riav一区二区三区| 九九九精品视频| 亚洲综合成人在线| 国产亚洲短视频| 欧美精品第1页| 91视频www| 国产一区二区三区高清播放| 亚洲国产视频网站| 国产精品高潮呻吟| 精品国产乱码久久久久久闺蜜| 91美女片黄在线观看91美女| 国产精品一区二区黑丝| 天堂在线一区二区| 一区二区视频在线| 国产精品久久精品日日| 久久网站热最新地址| 91麻豆精品国产91久久久资源速度 | 色呦呦日韩精品| 国产aⅴ综合色| 久久国产乱子精品免费女| 亚洲超丰满肉感bbw| 亚洲精品福利视频网站| 国产精品―色哟哟| 中文字幕精品在线不卡| 国产午夜精品久久| 久久久久久日产精品| 日韩一区二区在线观看视频| 在线亚洲人成电影网站色www| jiyouzz国产精品久久| 成人中文字幕电影| 风间由美一区二区三区在线观看| 韩国午夜理伦三级不卡影院| 捆绑调教美女网站视频一区| 亚洲一区二区在线免费看| 亚洲日本护士毛茸茸| 日韩美女视频一区| 亚洲九九爱视频| 亚洲美女视频一区| 亚洲午夜视频在线| 日韩精品欧美精品| 免费在线一区观看| 国产真实乱对白精彩久久| 国产一区二区三区日韩| 国产精品资源在线看| 国产成人亚洲综合a∨婷婷| 国内成人自拍视频| 成人一区二区三区视频在线观看 | 狠狠色综合播放一区二区| 九九视频精品免费| 成人性视频免费网站| 91免费精品国自产拍在线不卡| 91麻豆福利精品推荐| 欧美日韩高清在线播放| 日韩视频免费观看高清完整版| 日韩欧美不卡一区| 国产精品色哟哟网站| 亚洲午夜久久久久中文字幕久| 日韩av电影免费观看高清完整版 | 亚洲成人av资源| 日本不卡一区二区三区高清视频| 美女视频黄频大全不卡视频在线播放| 开心九九激情九九欧美日韩精美视频电影| 韩国成人在线视频| 成人av免费网站| 欧美精品一二三区| 国产亚洲视频系列| 亚洲第一久久影院| 国产成人综合在线| 欧美日韩视频专区在线播放| 精品国产乱码久久久久久牛牛| 国产精品久久久久影院老司| 午夜婷婷国产麻豆精品| 国产福利一区二区三区视频在线| 91亚洲大成网污www| 日韩一区二区在线观看视频播放| 国产精品久久久久三级| 日本强好片久久久久久aaa| 成人一区二区三区| 日韩一区二区在线免费观看| 亚洲欧洲日韩一区二区三区| 免费欧美在线视频| 欧洲人成人精品| 国产人成亚洲第一网站在线播放| 天堂av在线一区| 91丨porny丨首页| 亚洲精品一区二区三区99| 一区二区三区高清在线| 国产999精品久久久久久| 91精品国产一区二区三区蜜臀| 成人欧美一区二区三区黑人麻豆 | 久久精品日韩一区二区三区| 亚洲一区av在线| 99精品国产91久久久久久| 精品国产不卡一区二区三区| 亚洲电影一级黄| 99麻豆久久久国产精品免费| 久久理论电影网| 日本美女视频一区二区| 欧美日韩亚洲综合| 亚洲精品中文在线| av中文字幕不卡| 国产亚洲精品精华液| 国内精品写真在线观看| 欧美一区二区三区成人| 日韩综合小视频| 欧美日产在线观看| 日韩黄色在线观看| 51精品久久久久久久蜜臀| 午夜亚洲福利老司机| 欧美日韩一区三区| 午夜精品在线看| 在线不卡a资源高清| 日韩精品一区第一页| 91精品国模一区二区三区| 香港成人在线视频| 91精品国产美女浴室洗澡无遮挡| 同产精品九九九| 日韩欧美另类在线| 久久福利视频一区二区| 26uuu亚洲综合色| 国产成人精品一区二区三区网站观看| 久久只精品国产| 成人精品小蝌蚪| 亚洲精品ww久久久久久p站| 色婷婷综合五月| 五月天久久比比资源色| 制服丝袜亚洲精品中文字幕| 免费成人结看片| 久久精品人人做人人爽人人| 粉嫩欧美一区二区三区高清影视| 中文字幕国产一区二区| 色猫猫国产区一区二在线视频| 亚洲综合在线五月| 日韩欧美在线不卡| 成人午夜免费av| 亚洲电影一级黄| 久久久99免费| 色综合久久久久综合体| 日本人妖一区二区| 国产色婷婷亚洲99精品小说| 一本色道久久综合狠狠躁的推荐| 婷婷成人激情在线网| 久久久久国产精品人| 色综合一区二区| 久久国产夜色精品鲁鲁99| 国产精品久久久久久亚洲伦| 欧美色图片你懂的| 国产一区二区福利视频| 亚洲综合丁香婷婷六月香| 欧美变态tickling挠脚心| 99视频有精品| 极品美女销魂一区二区三区| 亚洲视频一区二区在线| 欧美成人精精品一区二区频| 91视频在线观看| 国产在线不卡视频| 亚洲一区二区在线视频| 欧美激情中文字幕| 欧美一级专区免费大片| 91国偷自产一区二区开放时间| 久久99精品久久久久久久久久久久| 日韩美女视频一区二区| 久久久久久久网| 69久久夜色精品国产69蝌蚪网| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 欧美午夜精品免费| 成人在线视频首页| 九九国产精品视频| 三级欧美在线一区| 一级中文字幕一区二区| 成人免费一区二区三区在线观看 | 国产精品一卡二| 热久久免费视频| 亚洲一区二区成人在线观看| 亚洲视频你懂的| 国产精品五月天| 久久只精品国产| 久久在线观看免费| 欧美xxx久久| 欧美xxxx在线观看| 久久综合色播五月| 久久婷婷国产综合国色天香| 精品久久一二三区| 精品国产污网站| 精品粉嫩超白一线天av|