[问题] 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