I2C bus

来源:http://www.cnblogs.com/xinxue/archive/2016/03/07/5248520.html
-Advertisement-
Play Games

摘自 <<I2C-bus specification and user manual>> Rev. 6 -- 4 April 2014 1 features 1) two bus lines: SCL, SDA 2) each device is software addressable 3) mu


摘自 <<I2C-bus specification and user manual>> Rev. 6 -- 4 April 2014

 

1  features

1)  two bus lines: SCL, SDA

2)  each device is software addressable

3)  multi-master

4)  100kb/s  ~ Standard-mode; 3.4Mb/s ~ High-speed mode

 

2  protocol

2.1  signals

  SDA and SCL are bidirectional lines, connected to a positive supply voltage via a current-source or pull-up resistor.

  Both lines are HIGH when the bus is free.

   Input reference level are set as 30% and 70% of VDD, VIL = 0.3VDD, VIH = 0.7VDD

2.2  data validity

    the data on SDA must be stable during the High period of SCL

    the data on SDA can only change when Low period of SCL

2.3  START and STOP conditions

    S condition, a HIGH to LOW transition on SDA while SCL is HIGH

    P condition, a LOW to HIGH transition on SDA while SCL is HIGH

2.4  BYTE format

    every byte put on the SDA line must be 8 bits long

    each byte must be followed by an Acknowledge bit

    If a slave cannot receive or transmit another complete byte of data until it has performed some other function, for example servicing an internal interrupt, it can hold the clock line SCL LOW to force the master into a wait state.

2.5  ACK and NACK

    ACK signal (LOW): the transmitter releases the SDA line during the ack clock pulse so the receiver can pull the SDA line LOW and it remained LOW durng the HIGH period of this clock pulse.

    NACK signal (HIGH): when SDA remains HIGH during this 9th clock pulse, the master can then generate either a STOP to abort the transfer, or a repeated START to start a new transfer.

2.6  slave address and R/W bit

1)  a complete data transfer

2)  a master writes data into a slave

3)  a master reads dta from a slave

4)  combined format


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • Incorrect syntax near the keyword 'user'
  • -- GI Report SELECT A.PLPKLNBR, D.DNDNHNBR, F.DNSAPCPO, C.PPPRODTE, A.GNUPDDTE GI_DATE, B.INHLDCDE, B.PLCSQNBR, PRSTYCDE, PRCOLCDE, INEXTSIZ, E.CODIVC
  • 常用查詢scripts /*bom*/ select p_item.segment1,c_item.segment1,bic.COMPONENT_QUANTITY,bic.COMPONENT_YIELD_FACTOR from bom_bill_of_materials bbom, bom_inve
  • 通過Windows批處理命令執行SQL Server資料庫備份 建立mybackup.bat ,輸入以下內容直接運行該腳本,即可開始自動備份資料庫也可把該腳本加入windows任務計劃里執行。 -----------------------------------------------------
  • 在SQL Server中我們經常需要編寫各種SQL腳本,例如存儲過程和函數等,由於在編寫過程中,經常會進行調整,有些關鍵字我們用的大寫,有的我們用的小寫,有的後面結束用;分割有的又沒有。對於有強迫症的人來說,看這樣的代碼關鍵非常痛苦,必須要手動對代碼進行格式化,如果代碼腳本比較多,這個事情也是非常費...
  • 下列屬於SQL Server的系統資料庫是( ) A、modelB、publicC、NorthwindD、System 答案:http://hovertree.com/tiku/bjaf/06nvv70i.htm 定義列中可以接受的數據值或格式,稱為( )。 A、 唯一性約束B、 檢查約束C、主鍵約
  • 我的戴爾(Dell)I2330R-168一體電腦的網卡在升級某個內核版本後,網卡就用一會兒就壞了 ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 8192 inet 192.168.99.236 netmask 2
  • 一、簡介 service指令是用於管理Linux操作系統中服務的命令。 二、註冊系統服務 http://www.cnblogs.com/wangtao_20/archive/2014/04/04/3645690.html 三、實例 http://www.cnblogs.com/qq78292959/...
一周排行
    -Advertisement-
    Play Games
  • 示例項目結構 在 Visual Studio 中創建一個 WinForms 應用程式後,項目結構如下所示: MyWinFormsApp/ │ ├───Properties/ │ └───Settings.settings │ ├───bin/ │ ├───Debug/ │ └───Release/ ...
  • [STAThread] 特性用於需要與 COM 組件交互的應用程式,尤其是依賴單線程模型(如 Windows Forms 應用程式)的組件。在 STA 模式下,線程擁有自己的消息迴圈,這對於處理用戶界面和某些 COM 組件是必要的。 [STAThread] static void Main(stri ...
  • 在WinForm中使用全局異常捕獲處理 在WinForm應用程式中,全局異常捕獲是確保程式穩定性的關鍵。通過在Program類的Main方法中設置全局異常處理,可以有效地捕獲並處理未預見的異常,從而避免程式崩潰。 註冊全局異常事件 [STAThread] static void Main() { / ...
  • 前言 給大家推薦一款開源的 Winform 控制項庫,可以幫助我們開發更加美觀、漂亮的 WinForm 界面。 項目介紹 SunnyUI.NET 是一個基於 .NET Framework 4.0+、.NET 6、.NET 7 和 .NET 8 的 WinForm 開源控制項庫,同時也提供了工具類庫、擴展 ...
  • 說明 該文章是屬於OverallAuth2.0系列文章,每周更新一篇該系列文章(從0到1完成系統開發)。 該系統文章,我會儘量說的非常詳細,做到不管新手、老手都能看懂。 說明:OverallAuth2.0 是一個簡單、易懂、功能強大的許可權+可視化流程管理系統。 有興趣的朋友,請關註我吧(*^▽^*) ...
  • 一、下載安裝 1.下載git 必須先下載並安裝git,再TortoiseGit下載安裝 git安裝參考教程:https://blog.csdn.net/mukes/article/details/115693833 2.TortoiseGit下載與安裝 TortoiseGit,Git客戶端,32/6 ...
  • 前言 在項目開發過程中,理解數據結構和演算法如同掌握蓋房子的秘訣。演算法不僅能幫助我們編寫高效、優質的代碼,還能解決項目中遇到的各種難題。 給大家推薦一個支持C#的開源免費、新手友好的數據結構與演算法入門教程:Hello演算法。 項目介紹 《Hello Algo》是一本開源免費、新手友好的數據結構與演算法入門 ...
  • 1.生成單個Proto.bat內容 @rem Copyright 2016, Google Inc. @rem All rights reserved. @rem @rem Redistribution and use in source and binary forms, with or with ...
  • 一:背景 1. 講故事 前段時間有位朋友找到我,說他的窗體程式在客戶這邊出現了卡死,讓我幫忙看下怎麼回事?dump也生成了,既然有dump了那就上 windbg 分析吧。 二:WinDbg 分析 1. 為什麼會卡死 窗體程式的卡死,入口門檻很低,後續往下分析就不一定了,不管怎麼說先用 !clrsta ...
  • 前言 人工智慧時代,人臉識別技術已成為安全驗證、身份識別和用戶交互的關鍵工具。 給大家推薦一款.NET 開源提供了強大的人臉識別 API,工具不僅易於集成,還具備高效處理能力。 本文將介紹一款如何利用這些API,為我們的項目添加智能識別的亮點。 項目介紹 GitHub 上擁有 1.2k 星標的 C# ...