作者yshihyu (yshihyu)
看板ASM
标题[问题] I2C protocol 时间计算
时间Fri Sep 12 21:21:26 2014
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 函数作用是为什麽?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 112.104.89.101
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/ASM/M.1410528090.A.D75.html
1F:推 drag: 你的网址第一行的连结就有详细说明了 09/15 17:54