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

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

?? sst39vf016.txt

?? sst39vf016驅(qū)動(dòng)程序
?? TXT
?? 第 1 頁 / 共 3 頁
字號(hào):
Software
Drivers

39VF016
16 Mbit Multi-Purpose Flash

September 2001


ABOUT THE SOFTWARE
This application note provides software driver examples for 39VF016,
16 Mbit Multi-Purpose Flash, that can be used in any microprocessor based
system.  Software driver examples used in this document utilize two programming
languages: (a) high -level "C" for broad platform support and (b) optimized x86
assembly language. In many cases, software driver routines can be inserted
"as is" into the main body of code being developed by the system software
developers. Extensive comments are included in each routine to describe the
function of each routine. The driver in "C" language can be used with many
microprocessors and microcontrollers, while the x86 assembly language provides
an optimized solution for x86 microprocessors. Note:  A Code Segment base 
address equal to C000h was used in this sample code.  Software designers shall 
assign the segment address appropriate to their designs.

ABOUT THE 39VF016

Companion product datasheets for the 39VF016 should be reviewed in
conjunction with this application note for a complete understanding of
the device.

Both the C and x86 assembly code in the document contain the following routines,
in this order:

Name                    Function
------------------------------------------------------------------
Check_SST_39VF016      Check manufacturer and device ID
CFI_Query               CFI Query Entry/Exit command sequence
Erase_One_Sector        Erase a sector of 4096 bytes
Erase_One_Block         Erase a block of 64K bytes
Erase_Entire_Chip       Erase the contents of the entire chip
Program_One_Byte        Alter data in one byte
Program_One_Sector      Alter data in 4096 bytes sector
Program_One_Block       Alter data in 64K bytes block
Check_Toggle_Ready      End of internal program or erase detection using
                        Toggle bit
Check_Data_Polling      End of internal program or erase detection using
                        Data# polling


"C" LANGUAGE DRIVERS

/***********************************************************************/
/* Copyright Silicon Storage Technology, Inc. (SST), 1994-2001         */
/* Example "C" language Driver of 39VF016 16 Mbit Multi-Purpose Flash  */
/* Nelson Wang, Silicon Storage Technology, Inc.                       */
/*                                                                     */
/* Revision 1.0,  Sept. 12, 2001                                       */
/*                                                                     */
/* This file requires these external "timing"  routines:               */
/*                                                                     */
/*      1.)  Delay_150_Nano_Seconds                                    */
/*      2.)  Delay_25_Milli_Seconds                                    */
/*      3.)  Delay_100_Milli_Seconds                                   */
/***********************************************************************/

#define FALSE                   0
#define TRUE                    1

#define SECTOR_SIZE             4096    /* Must be 4096 bytes for 39VF016 */
#define BLOCK_SIZE              65536   /* Must be 64K bytes for 39VF016  */

#define SST_ID                  0xBF    /* SST Manufacturer's ID code  */
#define SST_39VF016             0xD9    /* SST39VF016 device code      */

typedef unsigned char           BYTE;
typedef unsigned int            WORD;

/* -------------------------------------------------------------------- */
/*                       EXTERNAL ROUTINES                              */
/* -------------------------------------------------------------------- */

extern void     Delay_150_Nano_Seconds();
extern void     Delay_25_Milli_Seconds();
extern void     Delay_100_Milli_Seconds();


/************************************************************************/
/* PROCEDURE:   Check_SST_39VF016                                       */
/*                                                                      */
/* This procedure decides whether a physical hardware device has a      */
/* SST39VF016 16 Mbit Multi-Purpose Flash installed or not.             */
/*                                                                      */
/* Input:                                                               */
/*          None                                                        */
/*                                                                      */
/* Output:                                                              */
/*          return TRUE:  indicates a SST39VF016                        */
/*          return FALSE: indicates not a SST39VF016                    */
/************************************************************************/

int Check_SST_39VF016()
{
        BYTE far *Temp;
        BYTE SST_id1;
        BYTE SST_id2;
        int  ReturnStatus;

        /*  Issue the Software Product ID code to 39VF016 */

        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0x90;                   /* write data 0x90 to the address   */

        Delay_150_Nano_Seconds();       /* check DATABOOK for the most  */
                                        /* accurate value -- Tida       */

        /* Read the product ID from 39VF016 */

        Temp  = (BYTE far *)0xC0000000; /* set up address to be C000:0000h  */
        SST_id1  =  *Temp;              /* get first ID byte                */
        Temp  =  (BYTE far *)0xC0000001;/* set up address to be C000:0001h  */
        SST_id2  =  *Temp;              /* get first ID byte                */

        /* Determine whether there is a SST 39VF016 installed or not */

        if ((SST_id1 == SST_ID) && (SST_id2 ==SST_39VF016))
                ReturnStatus = TRUE;
        else
                ReturnStatus = FALSE;

        /* Issue the Soffware Product ID Exit code thus returning the 39VF016*/
        /* to the read operating mode                                        */

        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h   */
        *Temp = 0xAA;                   /* write data 0xAA to the address    */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh   */
        *Temp = 0x55;                   /* write data 0x55 to the address    */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h   */
        *Temp =0xF0;                    /* write data 0xF0 to the address    */

        Delay_150_Nano_Seconds();       /* check DATABOOK for the most  */
                                        /* accurate value -- Tida       */

        return(ReturnStatus);
}


/************************************************************************/
/* PROCEDURE:   CFI_Query                                               */
/*                                                                      */
/* This procedure should be used to query for CFI information           */
/*                                                                      */
/* Input:                                                               */
/*          None                                                        */
/*                                                                      */
/* Output:                                                              */
/*          None                                                        */
/************************************************************************/

int CFI_Query()
{
        BYTE far *Temp1;

        /*  Issue the Software Product ID code to 39VF016   */

        Temp1 = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp1= 0xAA;                   /* write data 0xAA to the address   */
        Temp1 = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp1= 0x55;                   /* write data 0x55 to the address   */
        Temp1 = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp1= 0x98;                   /* write data 0x98 to the address   */

        Delay_150_Nano_Seconds();

        /* --------------------------------- */
        /*  Perform all CFI operations here  */
        /*  NOTE:  no sample code provided   */
        /* --------------------------------- */


        /* Issue the CFI Exit code thus returning the 39VF016  */
        /* to the read operating mode                          */

        Temp1  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp1 = 0xAA;                   /* write data 0xAA to the address   */
        Temp1  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp1 = 0x55;                   /* write data 0x55 to the address   */
        Temp1  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp1 = 0xF0;                   /* write data 0xF0 to the address   */

        Delay_150_Nano_Seconds();
}


/************************************************************************/
/* PROCEDURE:   Erase_One_Sector                                        */
/*                                                                      */
/* This procedure can be used to erase a total of 4096 bytes.           */
/*                                                                      */
/* Input:                                                               */
/*      Dst     DESTINATION address where the erase operation starts    */
/*                                                                      */
/* Output:                                                              */
/*      NONE                                                            */
/************************************************************************/

int Erase_One_Sector (BYTE far *Dst)
{
        BYTE far *Temp;

        /*  Issue the Sector Erase command to 39VF016  */

        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0x80;                   /* write data 0x80 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */

        Temp  = Dst;                    /* set up starting address to be erased */
        *Temp = 0x30;                   /* write data 0x30 to the address   */
        Delay_25_Milli_Seconds();       /* Delay time = Tse                 */
}


/************************************************************************/
/* PROCEDURE:   Erase_One_Block                                         */
/*                                                                      */
/* This procedure can be used to erase a total of 64K bytes.            */
/*                                                                      */
/* Input:                                                               */
/*      Dst     DESTINATION address where the erase operation starts    */
/*                                                                      */
/* Output:                                                              */
/*      NONE                                                            */
/************************************************************************/

int Erase_One_Block (BYTE far *Dst)
{
        BYTE far *Temp;

        /*  Issue the Sector Erase command to 39VF016  */

        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0x80;                   /* write data 0x80 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */

        Temp  = Dst;                    /* set up starting address to be erased */
        *Temp = 0x50;                   /* write data 0x50 to the address   */
        Delay_25_Milli_Seconds();       /* Delay time = Tbe                 */
}


/************************************************************************/
/* PROCEDURE:   Erase_Entire_Chip                                       */
/*                                                                      */
/* This procedure can be used to erase the entire chip.                 */
/*                                                                      */
/* Input:                                                               */
/*      NONE                                                            */
/*                                                                      */
/* Output:                                                              */
/*      NONE                                                            */
/************************************************************************/

int Erase_Entire_Chip()
{
        BYTE far *Temp;

        /*  Issue the Chip Erase command to 39VF016  */

        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0x80;                   /* write data 0x80 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0xAA;                   /* write data 0xAA to the address   */
        Temp  = (BYTE far *)0xC0002AAA; /* set up address to be C000:2AAAh  */
        *Temp = 0x55;                   /* write data 0x55 to the address   */
        Temp  = (BYTE far *)0xC0005555; /* set up address to be C000:5555h  */
        *Temp = 0x10;                   /* write data 0x10 to the address   */
        Delay_100_Milli_Seconds();      /* Delay Tsce time                  */
}


/************************************************************************/
/* PROCEDURE:   Program_One_Byte                                        */
/*                                                                      */
/* This procedure can be used to program ONE byte of data to the        */
/* 39VF016.                                                             */
/*                                                                      */
/* NOTE:  It is necessary to first erase the sector containing the      */
/*        byte to be programmed.        			        */
/*                                                                      */
/* Input:                                                               */
/*           Src     The BYTE which will be written to the 39VF016      */
/*           Dst     DESTINATION address which will be written with the */
/*                   data passed in from Src                            */
/*                                                                      */
/* Output:                                                              */
/*           None                                                       */
/************************************************************************/

void Program_One_Byte (BYTE SrcByte,    BYTE far *Dst)
{
		  BYTE far *Temp;
	     BYTE far *SourceBuf;
        BYTE far *DestBuf;
        int Index;

        DestBuf = Dst;

        Temp =  (BYTE far *)0xC0005555; /* set up address to be C000:555h   */
        *Temp = 0xAA;                   /* write data 0xAA  to the address  */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国午夜理伦三级不卡影院| 日本aⅴ精品一区二区三区| 日韩无一区二区| 欧美视频在线观看一区二区| 色婷婷av一区| 色婷婷亚洲精品| 91在线观看美女| 成+人+亚洲+综合天堂| 国产成人啪免费观看软件| 国产在线国偷精品产拍免费yy| 免费av成人在线| 久久国产精品无码网站| 另类人妖一区二区av| 狠狠色2019综合网| 国产一区二区三区不卡在线观看| 国产一区二三区好的| 国产在线视视频有精品| 国产传媒欧美日韩成人| 不卡一卡二卡三乱码免费网站| 成人成人成人在线视频| 91麻豆高清视频| 欧美日韩国产一二三| 91精品国产91综合久久蜜臀| 日韩精品一区在线观看| 国产日韩欧美一区二区三区乱码| 国产精品人妖ts系列视频| 亚洲同性同志一二三专区| 亚洲一区二区三区四区在线| 首页欧美精品中文字幕| 狠狠色丁香婷综合久久| 成人小视频在线| 精品视频123区在线观看| 日韩美女天天操| 欧美国产日韩在线观看| 亚洲日本韩国一区| 婷婷夜色潮精品综合在线| 精品一区二区三区蜜桃| 成人18视频日本| 欧美日韩国产a| 久久午夜老司机| 夜色激情一区二区| 久久66热re国产| 99天天综合性| 日韩三级视频中文字幕| 欧美高清在线一区| 亚洲最新视频在线观看| 另类小说欧美激情| 色婷婷av一区| 国产亚洲欧美日韩在线一区| 一区二区高清在线| 国产一区二区三区综合| 在线视频欧美精品| 久久久久久亚洲综合| 亚洲成人免费看| 成人毛片在线观看| 日韩免费视频线观看| 亚洲免费观看高清完整版在线观看熊| 亚洲h精品动漫在线观看| 国产成人精品午夜视频免费| 欧美日韩高清在线播放| 国产精品第四页| 韩国精品在线观看| 欧美日韩亚洲丝袜制服| 中文子幕无线码一区tr| 免费欧美高清视频| 在线亚洲精品福利网址导航| 久久精品视频免费| 美脚の诱脚舐め脚责91| 91国偷自产一区二区三区成为亚洲经典| 日韩女优制服丝袜电影| 亚洲成av人**亚洲成av**| 风流少妇一区二区| 日韩欧美一二区| 亚洲福中文字幕伊人影院| 不卡视频在线看| 久久综合色婷婷| 奇米精品一区二区三区在线观看一| 91在线视频免费91| 久久精品人人做人人综合| 日韩成人一区二区三区在线观看| 色综合中文字幕| 中文幕一区二区三区久久蜜桃| 国产91精品欧美| 日韩免费高清av| 亚洲成av人综合在线观看| av一区二区三区黑人| 国产亚洲欧美激情| 国产一区二区三区不卡在线观看| 欧美一区二区精品| 亚洲第一会所有码转帖| 日本精品免费观看高清观看| 中文字幕欧美激情一区| 国产毛片精品一区| 精品国产乱码久久久久久老虎 | 久久亚洲一区二区三区四区| 亚洲午夜电影网| 色欧美日韩亚洲| 一区二区不卡在线视频 午夜欧美不卡在| 国产激情视频一区二区三区欧美| 欧美一区二区国产| 香蕉加勒比综合久久| 91久久精品一区二区三区| 一色桃子久久精品亚洲| 高清成人免费视频| 亚洲国产成人自拍| 国产**成人网毛片九色| 国产欧美精品一区| 久久久久久久精| 久久精品欧美一区二区三区不卡| 蜜桃久久久久久| 欧美一区二区三区在线视频| 日韩中文字幕麻豆| 7777精品久久久大香线蕉| 亚洲超碰97人人做人人爱| 在线成人午夜影院| 日本不卡不码高清免费观看 | 亚洲欧美激情视频在线观看一区二区三区| 成人免费看视频| 亚洲女与黑人做爰| 欧美怡红院视频| 蜜臀av性久久久久蜜臀aⅴ四虎 | 在线一区二区三区做爰视频网站| 自拍偷拍亚洲综合| 91福利视频久久久久| 婷婷久久综合九色综合绿巨人| 日本黄色一区二区| 首页国产丝袜综合| 久久久国产精品午夜一区ai换脸| 99国产精品久| 亚洲电影在线免费观看| 欧美一区二区三区在线看| 国产成人在线视频播放| 亚洲区小说区图片区qvod| 欧美图片一区二区三区| 六月丁香婷婷久久| 国产精品传媒在线| 欧美久久久影院| 国产乱码一区二区三区| 亚洲卡通动漫在线| 欧美电影在线免费观看| 国产一区二区精品久久99| 亚洲欧美综合另类在线卡通| 欧美另类高清zo欧美| 经典三级视频一区| 亚洲免费观看高清完整版在线| 在线播放日韩导航| 国产成人综合网| 亚洲一区二区五区| 久久久久综合网| 欧美亚洲禁片免费| 久久精品国产**网站演员| 中文字幕在线不卡一区二区三区| 欧美精品777| 成人美女在线视频| 麻豆精品在线观看| 亚洲女人的天堂| 久久综合精品国产一区二区三区| 91丨九色porny丨蝌蚪| 久久99国产精品免费网站| 亚洲精品高清视频在线观看| 精品卡一卡二卡三卡四在线| 色哟哟国产精品| 国产一区视频在线看| 国产一区欧美二区| 亚洲一区二区美女| 国产亚洲精品中文字幕| 在线成人免费观看| 一本色道**综合亚洲精品蜜桃冫| 韩国女主播一区| 亚洲国产中文字幕在线视频综合| 日本一区二区三区久久久久久久久不| 欧美日韩亚洲综合一区| 99久久精品国产毛片| 国产麻豆精品一区二区| 午夜欧美视频在线观看 | 久久电影国产免费久久电影| 有坂深雪av一区二区精品| 久久久国产精品麻豆| 日韩免费福利电影在线观看| 欧美无砖砖区免费| av亚洲产国偷v产偷v自拍| 狠狠狠色丁香婷婷综合激情 | 成人app网站| 国产麻豆精品久久一二三| 蜜臀av一区二区在线免费观看| 一区二区在线电影| 国产精品久久久久久久岛一牛影视 | 91免费精品国自产拍在线不卡| 韩国精品久久久| 日产精品久久久久久久性色| 亚洲一区视频在线观看视频| 欧美国产精品中文字幕| 久久综合九色综合欧美就去吻| 日韩精品最新网址| 欧美疯狂性受xxxxx喷水图片| 欧美三级视频在线播放| 一本久久综合亚洲鲁鲁五月天| 99久久精品免费精品国产| 国产精品亚洲成人| 国产米奇在线777精品观看|