找回密码
 注册
搜索
查看: 1022|回复: 11

[讨论] 求教。。

[复制链接]
发表于 2007-12-5 20:00:29 | 显示全部楼层 |阅读模式
I checked the I2C waveforms. I can see the address byte(0x20) being sent. But the ACK bit is high(If the sensor is good and has matching address, it should pull ACK low). So this means no reply. I also tested with address 0x30 with the same result. I checked the power, reset, camera_en, etc, and they seem to be correct.
I have attacked a test program. If the I2C works, it will output "success" in \msg.txt. You may also use it to check the I2C waveforms on osciloscope(you may show I2C_SDA and I2C_CLK at the same time, and looking at I2C_SDA values at rising edge of I2C_CLK, it should be the slave address followed by ACK bit). I don't know why the I2C waveform seems correct but there is no ACK. The only problem I can think of is the sensors are damaged. Please have a test. Please also check if power, reset, camera_en are correct. Thank you.

由于一些特别原因,我没有直接和客户接触,所以就是这么多反馈,我第一感觉是初始的code可能有问题。Sensor是MT9D112
发表于 2007-12-6 11:41:37 | 显示全部楼层
I2C address is wrong?
点评回复

使用道具 举报

发表于 2007-12-6 13:46:33 | 显示全部楼层
楼上的正解。应答位没有 是因为IIC的读写地址没有设好的原因。

检查一下MT9D112的IIC的读写地址是多少,跟客户沟通一下,看他们那边设的是多少?

[em01]
点评回复

使用道具 举报

 楼主| 发表于 2007-12-7 16:06:05 | 显示全部楼层
MT9D112的是0x20写0x21读,没错啊 还有别的原因么 大家帮忙一下 我这边也没什么实物好搞..
点评回复

使用道具 举报

发表于 2007-12-9 14:25:53 | 显示全部楼层
不会的,MT9D112的ID应该是 R0X0019和R0X003B,不会是0X20和0X21,CHECK一下。
点评回复

使用道具 举报

 楼主| 发表于 2007-12-9 21:56:43 | 显示全部楼层
[upload=jpg]UploadFile/2007-12/07129@52RD_0.JPG[/upload]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
点评回复

使用道具 举报

发表于 2007-12-10 13:34:34 | 显示全部楼层
write address use 0x78 & read address use 0x79,try this good luck![em01][em01]
点评回复

使用道具 举报

发表于 2007-12-10 16:23:22 | 显示全部楼层
[upload=jpg]UploadFile/2007-12/071210@52RD_2.jpg[/upload]


呵呵 在多试一试
如图地址[br]<p align=right><font color=red>+3 RD币</font></p>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
点评回复

使用道具 举报

发表于 2007-12-10 22:13:11 | 显示全部楼层
建议检查一下Sensor初始化的Rset\Power Down\AVDD/DVDD/DOVDD等顺序是否正确.
点评回复

使用道具 举报

 楼主| 发表于 2007-12-21 13:17:12 | 显示全部楼层
客户说I2C address 0x7A有response
请问各位 具体是那个呢??
点评回复

使用道具 举报

发表于 2007-12-21 14:08:42 | 显示全部楼层
Bits [7:1] of this byte represent the device slave address and bit [0] indicates the data
transfer direction. A “0” in bit [0] indicates a write, and a “1” indicates a read. The default
slave addresses used by the MT9D112 are 0x78 (write address) and 0x79 (read address[/COLOR]).
Alternate slave addresses of 0x7A (write address) and 0x7B (read address) can be
selected by asserting the SADDR input signal.
点评回复

使用道具 举报

 楼主| 发表于 2007-12-21 20:19:17 | 显示全部楼层
To King11
你的MT9D112的datasheet 是哪个版本 请给我一下,谢谢。。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-6 13:21 , Processed in 0.047673 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表