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

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

READ-write

  • 24c16讀寫驅動程序

    24c16讀寫驅動程序,//=-------------------------------------------------------------------------------/*模塊調用:讀數據:read(unsigned int address)寫數據:write(unsigned int address,unsigned char dd)   dd為要寫的 數據字節*///------------------------------------------------------------------------------ sbit sda=P3^0;sbit scl=P3^1; sbit a0=ACC^0;                  //定義ACC的位,利用ACC操作速度最快sbit a1=ACC^1;sbit a2=ACC^2;sbit a3=ACC^3;sbit a4=ACC^4;sbit a5=ACC^5;sbit a6=ACC^6;sbit a7=ACC^7; //------------------------------------------------------------------------------#pragma disablevoid s24(void)                 //起始函數{_nop_();    scl=0;     sda=1;    scl=1;    _nop_();    sda=0;    _nop_();    _nop_();    scl=0;     _nop_();    _nop_();    sda=1;} //------------------------------------------------------------------------------#pragma disablevoid p24(void)                 //停止函數{sda=0;    scl=1;    _nop_();    _nop_();    sda=1;} //-----------------------------------------------------------------------------#pragma disableunsigned char rd24(void) /////////////////從24c16讀一字節數據{       ACC=0x00;sda=1;scl=1;a7=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a6=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a5=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a4=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a3=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a2=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a1=sda;_nop_();_nop_();_nop_();_nop_();scl=0;scl=1;a0=sda;_nop_();_nop_();_nop_();_nop_();scl=0;sda=1;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0; /// ///////////////24c16的一位回答位。return(ACC);}//------------------------------------------------------------------------------#pragma disablevoid wd24(unsigned char dd) ////////////////向24c16寫一字節數據{      sda=1;ACC=dd;sda=a7;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a6;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a5;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a4;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a3;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a2;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a1;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=a0;scl=1;_nop_();_nop_();_nop_();_nop_();scl=0;sda=0;scl=1;//scl=0;(在下面程序中)}//---------------------------------------------------------------------------#pragma disableunsigned char read(unsigned int address){unsigned char dd;    s24();                        ////////////////////////開始條件    wd24(0xa0);                /////////////////////////寫器件地址(寫命令)     _nop_();_nop_();_nop_();_nop_();      scl=0;                        ///////////////////////////////////接收器件地址確認信號    wd24(address);                //////////////////////////// 寫數據地址    _nop_();_nop_();_nop_();_nop_();    scl=0;s24();                             ///////////////////////////////////開始條件    wd24(0xa1);                 /////////////////////////////寫器件地址(讀命令)    scl=0;    dd=rd24();              //////////////////////////////////讀 一字節    p24();                   ////////////////////////////////////停止條件    return(dd);}//------------------------------------------------------------------------------#pragma disablevoid write(unsigned int address,unsigned char dd){s24();                        /////////////////開始條件    wd24(0xa0);            ////////////////////////寫器件地址;    scl=0;     wd24(address);              /////////////////////寫數據地址    scl=0;    wd24(dd);                  //////////////////////////寫dd數據    scl=0;    p24();                      /////////////////////////停止條件;  }          

    標簽: 24c16 讀寫 驅動程序

    上傳時間: 2013-11-18

    上傳用戶:墻角有棵樹

  • at24c16 c程序

    一個24c16的讀寫程序(已經調試過)(arens)  //////////////////////////////////////////////////////////////// //24c16讀寫驅動程序,FM24C16A-AT24C16中文資料pdf //=-------------------------------------------------------------------------------/*模塊調用:讀數據:read(unsigned int address)寫數據:write(unsigned int address,unsigned char dd)   dd為要寫的 數據字節*///---------------------------------------------------------------------------------- sbit sda=P3^0;sbit scl=P3^1; sbit a0=ACC^0;                  //定義ACC的位,利用ACC操作速度最快sbit a1=ACC^1;sbit a2=ACC^2;sbit a3=ACC^3;sbit a4=ACC^4;sbit a5=ACC^5;sbit a6=ACC^6;sbit a7=ACC^7; //--------------------------------------------------------------------------------------#pragma disablevoid s24(void)                 //起始函數{_nop_();    scl=0;     sda=1;    scl=1;    _nop_();    sda=0;    _nop_();    _nop_();    scl=0;     _nop_();    _nop_();    sda=1;

    標簽: 24c c16 at 24

    上傳時間: 2013-10-31

    上傳用戶:fdfadfs

  • 2120+2025L lehua write樂華燒錄工具加全部程序

    2120+2025L lehua write樂華燒錄工具加全部程序 希望大家喜歡。

    標簽: lehua write 2120 2025

    上傳時間: 2013-11-01

    上傳用戶:aa7821634

  • 2120+2025L lehua write樂華燒錄工具加全部程序

    2120+2025L lehua write樂華燒錄工具加全部程序 希望大家喜歡。

    標簽: lehua write 2120 2025

    上傳時間: 2013-12-10

    上傳用戶:xingyuewubian

  • Read data from a file

    Read data from a file

    標簽: Read data from file

    上傳時間: 2015-01-19

    上傳用戶:trepb001

  • write flash code

    write flash code

    標簽: write flash code

    上傳時間: 2013-12-19

    上傳用戶:小草123

  • read the network addresses from a named Directory Services object and display all parts of the addre

    read the network addresses from a named Directory Services object and display all parts of the address.

    標簽: addresses Directory the Services

    上傳時間: 2013-12-13

    上傳用戶:nanxia

  • Write 3270 Session Screen Output to A File

    Write 3270 Session Screen Output to A File

    標簽: Session Screen Output Write

    上傳時間: 2014-08-30

    上傳用戶:sssl

  • write flash through jtag for s3c4510

    write flash through jtag for s3c4510

    標簽: through s3c4510 write flash

    上傳時間: 2013-12-10

    上傳用戶:wff

  • flash write

    flash write

    標簽: flash write

    上傳時間: 2015-02-27

    上傳用戶:李彥東

主站蜘蛛池模板: 五河县| 依兰县| 乌兰浩特市| 波密县| 通许县| 运城市| 宜都市| 洞头县| 苏尼特右旗| 额济纳旗| 湖南省| 徐汇区| 云和县| 阳泉市| 和平县| 沂水县| 呈贡县| 新邵县| 银川市| 铁力市| 六安市| 盈江县| 浦东新区| 霞浦县| 江永县| 连州市| 浮山县| 宿迁市| 济南市| 石景山区| 囊谦县| 罗江县| 河北省| 得荣县| 南汇区| 柞水县| 西城区| 河西区| 邳州市| 辽宁省| 太仆寺旗|