用 SMBus 实现串行通信.zip

  • rivering
    了解作者
  • C/C++
    开发工具
  • 452KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 3
    下载次数
  • 2020-07-22 11:31
    上传日期
这是用单片机I/O模拟SMbus协议时参考的文章,虽然是基于51平台和汇编语言的,但是对SMbus的原理、时序做出了很详细的说明,适用性很广。
用 SMBus 实现串行通信.zip
  • 用 SMBus 实现串行通信.pdf
    563.6KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/624f986674bc5c010546c1b8/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/624f986674bc5c010546c1b8/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">C8051F MCU</div><div class="t m1 x2 h3 y1 ff2 fs1 fc0 sc1 ls1 ws1">&#24212;</div><div class="t m0 x3 h4 y1 ff1 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m1 x4 h3 y1 ff2 fs1 fc0 sc1 ls1 ws1">&#29992;</div><div class="t m0 x5 h4 y1 ff1 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m1 x6 h3 y1 ff2 fs1 fc0 sc1 ls1 ws1">&#31508;</div><div class="t m0 x7 h4 y1 ff1 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m1 x8 h3 y1 ff2 fs1 fc0 sc1 ls1 ws1">&#35760;</div><div class="t m0 x9 h5 y1 ff3 fs0 fc0 sc0 ls1 ws1"> </div><div class="t m0 xa h6 y2 ff4 fs0 fc0 sc0 ls1 ws1"> </div><div class="t m0 xb h7 y3 ff4 fs3 fc0 sc0 ls1 ws1"> </div><div class="t m0 xc h8 y4 ff4 fs4 fc0 sc0 ls2 ws2">Silicon Laboratories Inc. <span class="_"> </span> <span class="_ _0"> </span><span class="ff2 ls1 ws1">&#26032;&#21326;&#40857;&#30005;&#23376;&#26377;&#38480;&#20844;&#21496;<span class="ff4"> </span></span></div><div class="t m0 xc h8 y5 ff4 fs4 fc0 sc0 ls3 ws3">4635 Boston Lane <span class="_ _1"> </span><span class="ff2 ls1 ws1">&#28145;&#22323;&#24066;&#31119;&#30000;&#21306;&#21326;&#24378;&#21271;&#36335;&#29616;&#20195;&#20043;&#31383;&#22823;&#21414;<span class="_ _2"> </span><span class="ff4">A<span class="_"> </span></span>&#24231;<span class="_ _2"> </span></span><span class="ls4 ws4">13F C<span class="_"> </span><span class="ff2 ls1 ws1">&#23460;</span><span class="ws1">(518013) </span></span></div><div class="t m0 xc h9 y6 ff4 fs4 fc0 sc0 ls5 ws5">Austin, TX 78735 <span class="_ _3"> </span> <span class="_ _4"> </span> </div><div class="t m0 xd h9 y7 ff4 fs4 fc0 sc0 ls1 ws6">0755-83645240 83645242 83645244 83645251 </div><div class="t m0 xe ha y8 ff5 fs0 fc0 sc0 ls6 ws1">AN013 <span class="_ _5"> </span><span class="ff2 ls1">&#8212;<span class="ff5"> <span class="_ _5"> </span></span>&#29992;<span class="_ _6"> </span></span><span class="ls7">SMBus<span class="_ _6"> </span><span class="ff2 ls1">&#23454;&#29616;&#20018;&#34892;&#36890;&#20449;<span class="ff4"> </span></span></span></div><div class="t m0 xf hb y9 ff4 fs5 fc0 sc0 ls1 ws1"> </div><div class="t m0 x10 hc ya ff4 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m0 x11 hd yb ff2 fs6 fc0 sc1 ls8 ws1">&#30456;&#20851;&#22120;&#20214;<span class="ff6 sc0 ls1"> </span></div><div class="t m0 x10 he yc ff2 fs2 fc0 sc0 ls1 ws1">&#26412;&#24212;&#29992;&#31508;&#35760;&#36866;&#29992;&#20110;&#19979;&#21015;&#22120;&#20214;&#65306;<span class="ff4"> </span></div><div class="t m0 x10 he yd ff5 fs2 fc0 sc0 ls9 ws1">C8051F000<span class="ff2 ls1">&#12289;<span class="_ _7"></span><span class="ff5 ls9">C8051F001<span class="ff2 ls1">&#12289;<span class="_ _7"></span><span class="ff5 lsa">C8051F002<span class="ff2 ls1">&#12289;<span class="_ _7"></span><span class="ff5 lsb">C8051F005<span class="ff2 ls1">&#12289;<span class="_ _7"></span><span class="ff5 ls9">C8051F006<span class="ff2 ls1">&#12289;<span class="_ _7"></span><span class="ff5 lsc">C8051F010<span class="ff2 ls1">&#12289;<span class="_ _8"></span><span class="ff5 lsd">C8051F01<span class="_ _9"></span>1</span></span></span></span></span></span></span></span></span></span></span></span></div><div class="t m0 xc he ye ff2 fs2 fc0 sc0 ls1 ws1">&#21644;<span class="_ _a"> </span><span class="ff5 lsc">C8051F012</span>&#12290;<span class="ff5"> </span></div><div class="t m0 x10 hc yf ff4 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m0 x11 hf y10 ff7 fs0 fc0 sc0 ls1 ws1">&#24341;&#35328;<span class="ff5"> </span></div><div class="t m0 x10 he y11 ff4 fs2 fc0 sc0 lsd ws1">C8051F0xx<span class="_ _b"></span><span class="ff2 lse">&#31995;&#21015;&#22120;&#20214;&#26377;&#19968;&#20010;&#31526;&#21512;&#31995;&#32479;&#31649;&#29702;&#24635;&#32447;&#26631;&#20934;<span class="_ _c"> </span></span><span class="lsf">1.1<span class="_ _d"> </span><span class="ff2 lse">&#29256;&#20197;&#21450;</span><span class="ls1">I</span></span></div><div class="t m0 x12 h10 y12 ff4 fs7 fc0 sc0 ls1 ws1">2</div><div class="t m0 x13 he y11 ff4 fs2 fc0 sc0 ls1 ws1">C<span class="ff2 lse">&#20018;&#34892;&#24635;&#32447;&#26631;&#20934;&#30340;</span><span class="ls10">SMBus<span class="_ _b"></span><span class="ff2 ls11">&#20018;&#34892;</span></span></div><div class="t m0 xc he y13 ff4 fs2 fc0 sc0 ls12 ws1">I/O<span class="ff2 ls1">&#22120;&#20214;&#12290;</span><span class="ls13">SMBus<span class="ff2 ls1">&#26159;&#19968;&#20010;&#21452;&#21521;&#12289;&#20108;&#32447;&#25509;&#21475;&#65292;&#33021;&#19982;&#22810;&#20010;&#22120;&#20214;&#36890;&#20449;&#12290;</span><span class="ls14">SMBus<span class="ff2 ls1">&#26159;&#33521;&#29305;&#23572;&#20844;&#21496;&#30340;&#21830;&#26631;&#65307;<span class="_ _e"></span><span class="ff4">I</span></span></span></span></div><div class="t m0 x14 h10 y14 ff4 fs7 fc0 sc0 ls1 ws1">2</div><div class="t m0 x15 he y15 ff4 fs2 fc0 sc0 ls1 ws1">C<span class="ff2">&#26159;</span></div><div class="t m0 xc he y16 ff2 fs2 fc0 sc0 ls1 ws1">&#33778;&#21147;&#28006;&#21322;&#23548;&#20307;&#20844;&#21496;&#30340;&#21830;&#26631;&#12290;<span class="ff4"> </span></div><div class="t m0 x10 he y17 ff2 fs2 fc0 sc0 ls1 ws1">&#26412;&#24212;&#29992;&#31508;&#35760;&#20171;&#32461;<span class="_ _c"> </span><span class="ff4 ls10">SMBus<span class="_ _d"> </span></span>&#24635;&#32447;&#30340;&#37197;&#32622;&#21644;&#25805;&#20316;&#12290;&#26412;&#25991;&#25552;&#20379;&#31034;&#20363;&#27719;&#32534;&#20195;&#30721;&#21644;&#8216;<span class="ff4">C</span>&#8217;&#20195;&#30721;&#65306;<span class="_ _f"></span>&#65288;<span class="ff4">1</span>&#65289;&#19982;&#21333;</div><div class="t m0 xc he y18 ff2 fs2 fc0 sc0 ls15 ws1">&#20010;&#20855;&#26377;&#19968;&#23383;&#33410;&#22320;&#22336;&#31354;&#38388;&#30340;<span class="_ _c"> </span><span class="ff4 ls16">EEPROM<span class="_ _10"> </span></span>&#25509;&#21475;&#30340;&#27719;&#32534;&#35821;&#35328;&#31243;&#24207;&#65307;<span class="_ _11"></span><span class="ls1">&#65288;<span class="_ _b"></span><span class="ff4">2<span class="_ _12"></span></span><span class="ls15">&#65289;&#19982;&#22810;&#20010;&#20855;&#26377;&#20108;&#23383;&#33410;&#22320;&#22336;&#31354;<span class="_ _e"></span>&#38388;&#30340;</span></span></div><div class="t m0 xc he y19 ff4 fs2 fc0 sc0 ls16 ws1">EEPROM<span class="_"> </span><span class="ff2 ls1">&#25509;&#21475;&#30340;<span class="_ _a"> </span><span class="ff4">C<span class="_"> </span></span>&#35821;&#35328;&#31243;&#24207;&#65307;<span class="_ _f"></span>&#65288;<span class="ff4">3</span>&#65289;&#20004;&#20010;<span class="_ _a"> </span><span class="ff4 lsf">C8051F0xx<span class="_"> </span></span>&#28857;&#23545;&#28857;&#36890;&#20449;&#30340;<span class="_ _a"> </span><span class="ff4">C<span class="_"> </span></span>&#35821;&#35328;&#31243;&#24207;&#12290;<span class="ff4"> </span></span></div><div class="t m0 x10 hf y1a ff5 fs0 fc0 sc0 ls7 ws1">SMBus<span class="_ _6"> </span><span class="ff7 ls1">&#35268;&#33539;<span class="ff5"> </span></span></div><div class="t m0 x10 he y1b ff2 fs2 fc0 sc0 ls1 ws1">&#26412;&#33410;&#20171;&#32461;<span class="_ _a"> </span><span class="ff4 ls14">SMBus<span class="_"> </span></span>&#21327;&#35758;&#12290;&#23545;<span class="_ _a"> </span><span class="ff4 ls14">SMBus<span class="_"> </span></span>&#30340;&#35752;&#35770;&#20174;&#19979;&#19968;&#33410;<span class="ff4 ls9 ws7"> --</span>&#8220;&#20351;&#29992;<span class="_ _a"> </span><span class="ff4 ls14">SMBus</span>&#8221;&#24320;&#22987;&#12290;<span class="ff4"> </span></div><div class="t m0 x10 h11 y1c ff3 fs8 fc0 sc0 ls17 ws1">SMBus</div><div class="t m1 x16 h12 y1c ff2 fs9 fc0 sc1 ls18 ws1">&#32467;&#26500;</div><div class="t m0 x17 h11 y1c ff3 fs8 fc0 sc0 ls1 ws1"> </div><div class="t m0 x10 he y1d ff2 fs2 fc0 sc0 ls1 ws1">&#19968;&#20010;<span class="_ _5"> </span><span class="ff4 ls14">SMBus<span class="_ _13"> </span></span>&#31995;&#32479;&#26159;&#19968;&#20010;&#20108;&#32447;&#32593;&#32476;&#65292;&#32593;&#32476;&#20013;&#30340;&#27599;&#19968;&#20010;&#22120;&#20214;&#26377;&#19968;&#20010;&#21807;&#19968;&#30340;&#22320;&#22336;&#24182;&#21487;&#20197;&#34987;&#32593;&#32476;&#20013;&#30340;</div><div class="t m0 xc he y1e ff2 fs2 fc0 sc0 ls1 ws1">&#20854;&#23427;&#22120;&#20214;&#35775;&#38382;&#12290;<span class="_ _14"></span>&#25152;&#26377;&#30340;&#20256;&#36755;&#36807;&#31243;&#37117;&#30001;&#19968;&#20010;&#20027;&#22120;&#20214;&#21551;&#21160;&#65307;<span class="_ _14"></span>&#22914;&#26524;&#19968;&#20010;&#22120;&#20214;&#35782;&#21035;&#20986;&#33258;&#24049;&#30340;&#22320;&#22336;&#24182;&#22238;&#24212;&#65292;<span class="_ _14"></span>&#23427;</div><div class="t m0 xc he y1f ff2 fs2 fc0 sc0 ls1 ws1">&#23601;&#26159;&#37027;&#27425;&#20256;&#36755;&#30340;&#20174;&#22120;&#20214;&#12290;<span class="_ _15"></span>&#20540;&#24471;&#27880;&#24847;&#30340;&#26159;&#65292;<span class="_ _15"></span>&#27809;&#26377;&#24517;&#35201;&#25351;&#23450;&#19968;&#20010;&#20027;&#22120;&#20214;&#12290;<span class="_ _15"></span>&#23545;&#20110;&#20219;&#20309;&#19968;&#27425;&#25968;&#25454;&#20256;&#36755;&#65292;<span class="_ _15"></span>&#20219;&#20309;</div><div class="t m0 xc he y20 ff2 fs2 fc0 sc0 ls1 ws1">&#19968;&#20010;&#22120;&#20214;&#37117;&#21487;&#20197;&#20316;&#20026;&#20027;&#22120;&#20214;&#25110;&#20174;&#22120;&#20214;&#12290;<span class="_ _16"></span>&#24403;&#20004;&#20010;&#22120;&#20214;&#35797;&#22270;&#21516;&#26102;&#21551;&#21160;&#19968;&#27425;&#20256;&#36755;&#26102;&#65292;<span class="_ _16"></span>&#20210;&#35009;&#26426;&#21046;&#23558;&#24378;&#36843;&#19968;&#20010;</div><div class="t m0 xc he y21 ff2 fs2 fc0 sc0 ls19 ws1">&#22120;&#20214;&#25918;&#24323;&#24635;&#32447;&#12290;&#36825;&#31181;&#20210;&#35009;&#26426;&#21046;&#26159;<span class="_ _e"></span>&#38750;&#30772;&#22351;&#24615;&#30340;&#65288;&#19968;&#20010;&#22120;&#20214;&#36194;<span class="_ _e"></span>&#24471;&#24635;&#32447;&#65292;&#20294;&#27809;&#26377;&#20449;&#24687;&#20002;&#22833;&#65289;<span class="_ _11"></span><span class="ls1">&#12290;&#25105;&#20204;&#23558;&#22312;&#20210;</span></div><div class="t m0 xc he y22 ff2 fs2 fc0 sc0 ls1 ws1">&#35009;&#19968;&#33410;&#28145;&#20837;&#35752;&#35770;&#20210;&#35009;&#26426;&#21046;&#12290;<span class="ff4"> </span></div><div class="t m0 x10 he y23 ff4 fs2 fc0 sc0 ls14 ws1">SMBus<span class="_"> </span><span class="ff2 ls1">&#36890;&#20449;&#20351;&#29992;&#20004;&#26681;&#32447;&#65306;<span class="_ _e"></span><span class="ff4 ls1a">SDA<span class="_ _e"></span><span class="ff2 ls1">&#65288;&#20018;&#34892;&#25968;&#25454;&#65289;<span class="_ _e"></span>&#21644;<span class="_ _a"> </span><span class="ff4 ls10">SCL<span class="_ _e"></span><span class="ff2 ls1">&#65288;&#20018;&#34892;&#26102;&#38047;&#65289;<span class="_ _11"></span>&#12290;&#27599;&#26681;&#32447;&#37117;&#26159;&#21452;&#21521;&#30340;&#65292;<span class="_ _9"></span>&#20854;&#26041;&#21521;</span></span></span></span></span></div><div class="t m0 xc he y24 ff2 fs2 fc0 sc0 ls1 ws1">&#21462;&#20915;&#20110;&#22120;&#20214;&#25152;&#22788;&#30340;&#24037;&#20316;&#26041;&#24335;&#12290;&#20027;&#22120;&#20214;&#24635;&#26159;&#25552;&#20379;<span class="_ _a"> </span><span class="ff4 ls10">SCL</span>&#65307;&#20027;&#12289;&#20174;&#22120;&#20214;&#37117;&#21487;&#20197;&#22312;<span class="_ _13"> </span><span class="ff4 ls1a">SDA<span class="_"> </span></span>&#19978;&#20256;&#36755;&#25968;&#25454;&#12290;&#20004;&#26681;</div><div class="t m0 xc he y25 ff2 fs2 fc0 sc0 ls1 ws1">&#32447;&#37117;&#24212;&#36890;&#36807;&#19968;&#20010;&#19978;&#25289;&#30005;&#36335;&#25509;&#21040;&#27491;&#30005;&#28304;&#12290;<span class="_ _14"></span><span class="ff4 ls14">SMBus<span class="_"> </span><span class="ff2 ls1">&#32447;&#19978;&#30340;&#25152;&#26377;&#22120;&#20214;&#37117;&#24212;&#26377;&#28431;&#26497;&#24320;&#36335;&#25110;&#38598;&#30005;&#26497;&#24320;&#36335;&#36755;&#20986;&#65292;</span></span></div><div class="t m0 xc he y26 ff2 fs2 fc0 sc0 ls1 ws1">&#36825;&#26679;&#21487;&#20351;&#24635;&#32447;&#31354;&#38386;&#26102;&#20445;&#25345;&#39640;&#30005;&#24179;&#12290;<span class="_ _14"></span>&#22914;&#26524;&#19968;&#20010;&#25110;&#22810;&#20010;&#22120;&#20214;&#36755;&#20986;&#20302;&#30005;&#24179;&#20449;&#21495;&#65292;<span class="_ _14"></span>&#24635;&#32447;&#34987;&#25289;&#20026;&#20302;&#30005;&#24179;&#12290;<span class="_ _14"></span>&#35201;&#20351;</div><div class="t m0 xc he y27 ff2 fs2 fc0 sc0 ls1 ws1">&#24635;&#32447;&#20445;&#25345;&#22312;&#39640;&#30005;&#24179;&#65292;&#25152;&#26377;&#30340;&#22120;&#20214;&#37117;&#24517;&#39035;&#36755;&#20986;&#39640;&#30005;&#24179;&#12290;&#31532;&#20108;&#39029;&#20013;&#30340;&#22270;<span class="_ _13"> </span><span class="ff4">1<span class="_"> </span></span>&#32473;&#20986;&#19968;&#20010;&#20856;&#22411;&#30340;<span class="_ _13"> </span><span class="ff4 ls14">SMBus<span class="_ _13"> </span></span>&#24635;&#32447;</div><div class="t m0 xc he y28 ff2 fs2 fc0 sc0 ls1 ws1">&#37197;&#32622;&#12290;<span class="ff4"> </span></div><div class="t m0 x10 hc y29 ff4 fs2 fc0 sc0 ls1 ws1"> </div><div class="t m0 x18 h8 y7 ff4 fs5 fc0 sc0 ls1 ws1"> <span class="_ _17"> </span><span class="ff2 fs4">&#30005;&#35805;&#65306;</span></div><div class="t m0 xc h9 y2a ff4 fs4 fc0 sc0 ls1b ws1">Email: <span class="fc1 ls3">mcuinfo@silabs.com</span></div><div class="t m0 x19 h9 y2b ff4 fs4 fc0 sc0 ls1 ws1"> </div><div class="t m2 x1a h13 y2b ff2 fsa fc0 sc0 ls1 ws1">&#65288;&#29256;&#26435;&#25152;&#26377;&#65289;</div><div class="t m0 x1b h8 y2b ff4 fs4 fc0 sc0 ls1 ws1"> <span class="_ _18"> </span><span class="ff2">&#30005;&#37038;&#65306;</span><span class="fc1 ls1c">shenzhen@xhl.com.cn</span><span class="ls1d"> </span></div><div class="t m0 xc h9 y2c ff4 fs4 fc0 sc0 ls1e ws1">Internet: <span class="fc1 ls1f">www<span class="_ _15"></span>.silabs.com</span></div><div class="t m0 x1c h8 y2d ff4 fs4 fc0 sc0 ls1 ws1"> <span class="_ _19"> </span><span class="ff2">&#32593;&#22336;&#65306;</span><span class="fc1 ls3">www<span class="_ _9"></span>.xhl.com.cn<span class="fc0 ls1"> </span></span></div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • SMBus.rar
      c8051f410单片机与24c02通行,可以进行读写操作,数据存储。所用时序为IIC。
    • I2C.rar
      新华龙 51单片机 用SMBUS实现串行通信
    • C8051f120_I2C_24c01_SMBus.rar
      C8051f120单片的通过SMBus控制I2C芯片的读写,经测试通过,内附详细中文注释
    • SMBusP2.0.zip
      smbus2.0通信协议,可以帮助设计smbus通信。尤其对智能电池方面有帮助
    • smbus系统管理总线规范.rar
      smbus2.0中文规范,有助于新人学习使用,希望有所帮助。
    • 超多Xilinx FPGA工程例子及源码
      用FPGA模拟VGA时序,PS_2总线的键盘接口VHDL源代码.zip (369.21 KB) 用FPGA实现数字锁相环.zip (208.72 KB) 用于XILINX_SARTEN-3E开发板上的LCD的控制.zip (4.83 MB) 在FPGACPLD中实现AD或DA的文章(英文...
    • AN013_CN.zip
      AN013_ 用SMBus实现串行通信 (中文)
    • Xilinx FPGA工程例子及源码(第一部分)
      Xilinx sparten3E 键盘和开发板的通信和LCD的字符显示.zip (1.98 KB) Xilinx spratan3 xcs100E(VGA PS2).zip (2.14 MB) Xilinx TCP_IP协议实现.rar (2.45 MB) Xilinx 的Basys板VGA显示图片原码.zip (829.2 KB) ...
    • 单片机C8051F34x中文详细资料(270页)
      ● 硬件实现的SMBus/ I2C 增强型UART(最多两个)和增强型SPI串行接口 ● 4 个通用的16 位定时器 ● 具有 5 个捕捉/比较模块和看门狗定时器功能的可编程计数器/定时器阵列(PCA) ● 片内上电复位、VDD监视器和...
    • 软件开发计划书 .asp.rar
      一个完整的项目开发文档,可以看看.没有坏处.