|
楼主 |
发表于 2007-5-18 15:13:58
|
显示全部楼层
因为我用 debug message 检视下列缓存器的值
Debug Message as below..
========================================================
"Register Settings Sequence"
========================================================
(Step 1)
Soft Reset..
Camera Reg[0xFF] = 0x01, was programmed 0x01 // -- 设定OK
Camera Reg[0x12] = 0x00, was programmed 0x80 // -- 设定OK
(Step 2)
Delay for 1 ms.. //程序里从 Sleep(1) ~ Sleep(100),皆试过..
(Step 3)
Start to config OV2640 Register Sequence..
Line 0 -- Reg[0xFF] = 0x01, was programmed 0x00 //Force program reg[0xFF] to 0x00 ( wish to switch to Table 12)
Line 1 -- Reg[0x2C] = 0x00, was programmed 0xFF
Line 2 -- Reg[0x2E] = 0x00, was programmed 0xDF
Line 3 -- Reg[0xFF] = 0x01, was programmed 0x01 //reg[0xFF] should be changed to 0x00 after Line 0,but it still hold to 0x01, it will do error settings....
Line 4 -- Reg[0x3C] = 0x37, was programmed 0x32
.
”以下略过”………
PS: // 后的文字为说明用
在 Line 0 把 Reg[0xFF] 由 0x01 指定为 0x00, 然后再依序设定 Line 1 及 Line 2, OK,现在来到 Line 3 可以发现 Reg[0xFF] 还是等于 0x01,显然在设定 Line 0 时,并未将 Reg[0xFF] 写入 '0x00' 之值, 因此可以断定接下来的 Reg[0x2C], 及 Reg[0x2E] 的动作是错误的(因为即使写入不正确的 Table ,亦无法发挥效用),否则依 OV 的设定值是应该有影像出来的,另外大大您说 I2C 的速度设定为何,依源码得知 default值为 78KHz,不知大大的设定值为何,是否大大还有其它看法可以解决小弟的问题,谢谢!! |
|