LoginSignup
0
1

More than 5 years have passed since last update.

I2C > データ変更とデータ[sample,capture]のタイミング | Timing Chart Formatterでの図示

Last updated at Posted at 2017-03-06

I2C通信において、SDAラインへのデータ出力(データ変更)および、[sample, capture]のタイミングについての調査。

リンク

https://en.wikipedia.org/wiki/I%C2%B2C
Timing diagramの画像があり、その説明が以下。

2. SDA sets the 1st data bit level while keeping SCL low (during blue bar time) .
3. The data is sampled (received) when SCL rises (green) for the first bit (B1).

...

In order to avoid false marker detection, SDA is changed on the SCL falling edge and is sampled and captured on the rising edge of SCL.



I2C specs are that the data lien is allowed to change while SCL is low. Not a tthe beginning or the end, not after or before or at an edge, but any time while SCL is low.



例として、以下の場合。

  • ACK読取り
  • 3つのDAT読取り
  • ACK書込み

タイミングチャートとしては以下のような感じだろうか。
timing-chart.png

clock  __~~~~__~~~~__~~~~__~~~~____~~
data   __=ACK RD===__=DAT RD===__=DAT RD===__=DAT RD===X=ACK WR==__

関連 onlineTool > タイミングチャート生成

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1