主题 : 请教I2c的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 22195
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-05-27
最后登录: 2013-04-30
楼主  发表于: 2010-06-05 13:44

 请教I2c的问题

请问当我通过open函数打开了i2c后,时钟信号sck要不要设置?为什么我打开后测这个端口没有脉冲信号的?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-06-05 15:13

 回 楼主(gg270) 的帖子

打开时候有没有时钟信号不重要,重要的是传送数据时候一定要有
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22195
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-05-27
最后登录: 2013-04-30
2楼  发表于: 2010-06-05 15:37

 回 1楼(kasim) 的帖子

那么我怎么才能保证传送时就一定有时钟信号?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-06-05 17:16

 回 2楼(gg270) 的帖子

先看一下S3C2440A CPU用户手册里I2C Controller这一章吧
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 22195
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-05-27
最后登录: 2013-04-30
4楼  发表于: 2010-06-05 17:51
嗯。。好的、、谢谢解答