登录
首页 » c » IIC总线协议

IIC总线协议

于 2022-02-25 发布 文件大小:3.41 kB
0 36
下载积分: 2 下载次数: 1

代码说明:

SDA线上的数据在时钟“高”期间必须是稳定的,只有当SCL线上的时钟信号为低时,数据线上的“高”或“低”状态才可以改变。输出到SDA线上的每个字 节必须是8位,每次传输的字节不受限制,每个字节必须有一个应答为ACK。    数据传送具有应答是必须的。与应答对应的时钟脉冲由主控器产生,发送器在应答期间必须下拉SDA线。当寻址的被控器件不能应答时,数据保持为高,接着主控 器产生停止条件终止传输。 ACK:   SDA=0;SCL=1;udelay();SCL=0; NOACK: SDA=1;SCL=1;udelay();SCL=0; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • DS1302P18B20P1602
    该程序实现了用单片机来控制时钟芯片DS1302进行万年历的显示。 这个代码相对来说很复杂,注释比较多。 程序运行,首先设置时间。 按S19,进行某一位的设置,会看到某一位上面会闪烁。 按S20,数值加1. 按S21,数值减1. 设置完后,时间会进行运行。 另外,1602上也会有时间显示的。(The program implements the MCU to control the clock chip DS1302 conducted calendar display. This code is relatively complex, comment more, we can carefully analyzed. The program runs, the first set the time. By S19, conducted a one set, you will see a bit above flashes. By S20, the value plus 1. By S21, the value minus 1. After setting, the time will be run. Further, the time will be displayed in 1602.)
    2013-12-13 13:48:55下载
    积分:1
  • smart-home-qt
    说明:  一个带界面的远程控制APP,可以实时显示室内温度湿度,光照强度(A remote control APP with interface can display indoor temperature, humidity and illumination intensity in real time.)
    2020-06-18 16:20:02下载
    积分:1
  • GD32-I2C
    说明:  国产ARM芯片,GD32F103系列,替代STM32F103系列,I2C采集项目,编译即可通过,多支持国产芯片。(Domestic ARM chip, gd32f103 series, replace STM32F103 series, I2C acquisition project, compile can pass, support domestic chips.)
    2021-02-23 17:29:40下载
    积分:1
  • 基于STM32F407探索者的19年电赛电磁炮代码
    【实例简介】
    2021-08-08 00:31:01下载
    积分:1
  • 双线性插值
    利用双线性插值,获取亚像素位置的灰度值。适用于得到sift、surf得到的特征点坐标处的灰度值获取(The gray value of sub-pixel position is obtained by bilinear interpolation)
    2018-10-08 14:47:10下载
    积分:1
  • SOCKS5代理服务器
    代码,用于创建在C#中SOCKS5代理。易于使用的源代码。
    2022-09-10 00:35:03下载
    积分:1
  • peterson
    Leader election for the MPI the Peterson algorithm
    2012-01-16 01:28:47下载
    积分:1
  • 技术提升!顺利面试,笔试!
    让你顺利拿到offer,成功进入心仪企业!最新原创,绝对让你耳目一新,快来看一看,最新源码,仅此一份!免费预览阅读,随时下载浏览,运行!
    2022-02-13 01:06:13下载
    积分:1
  • H-264-Engineering-Practice-Codes
    MPEG-4/H.264视频编解码工程实践 随书光盘源码(MPEG-4/H.264 video codec engineering practice CD with the book source)
    2012-09-27 00:49:29下载
    积分:1
  • Active-power-filters-A-review
    APF 资料 比较 总体比较资料 权威 IEEE 重要资料(Comparative information Comparative information APF overall authority IEEE important information)
    2014-09-07 16:59:20下载
    积分:1
  • 696524资源总数
  • 103945会员总数
  • 46今日下载