[問題] I2C protocol 時間計算

作者: yshihyu (yshihyu)   2014-09-12 21:21:26
http://jyhshin3.blogspot.tw/2010/01/i2c-protocol.html
1 clock = 1/22.1184 us
1 machine cycle = 12 clock = 12/22.1184 us
1 nop = 1 machine cycle = 12/22.1184 us = 542.534722 ns
100 kbit/s = 1bit per 1/100000s = 10 us
1 bit cycle = 10/0.542 = 18.432 machine cycle
2 * i2c_wait = 1 bit cycle ==> i2c_wait = 9.2 machine cycle = 9 nop
有兩個疑問:
1.為什麼第六步驟 2 * i2c_wait 需要乘上2?
2.再來是 i2c 需要delay 函數作用是為什麼?
謝謝
作者: drag (京都念慈庵,賈詡念費翔)   2014-09-15 17:54:00
你的網址第一行的連結就有詳細說明了

Links booklink

Contact Us: admin [ a t ] ucptt.com