|
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 |
|