金牌会员
- 积分
- 1244
- 威望
- 584
- 贡献
- 380
- 兑换币
- 381
- 注册时间
- 2015-4-16
- 在线时间
- 140 小时
|
楼主,你的程序这里我看不懂啊。在给ov7620初始化时,这几句为什么要用u8_SCCB_WriteReg_u16()呢?寄存器不就8位吗?可是为什么用16位的呢?
do//寄存器控制
{
//====================================================================//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,regFE_BEEF_unlocked,0xFE) ){return 'F';}
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg03_480u_height,0x03) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg05_94u_lineShadowTime,0x05) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg06_45u_fieldShadowTime,0x06) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg07_188_chipCtl,0x07) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg0A_64_ShutterWdithCtl,0x0A) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg0B_number_totalShutterWdith,0x0B) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg0D_32A_readMode,0x0D) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg0F_11_cameraSetting,0x0F) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg1C_3_dataConverting,0x1C) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg2C_7_ADCref,0x2C) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,regAF_0_AGEC_unlocked,0xAF) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg35_number_Gain,0x35) ){return 'F';}//
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,1,0x0C) ){return 'F';}
if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,0,0x0C) ){return 'F';}
/*
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x03) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x05) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x06) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x07) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x0A) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x0B) ){return 'F';}
if( 'T' != u8_SCCB_ReadReg_u16(Beholder_Addr,&result,0x0D) ){return 'F';}
还有,比如说这一句: if( 'T' != u8_SCCB_WriteReg_u16(Beholder_Addr,reg03_480u_height,0x03) ){return 'F';}
03寄存器是Saturation control啊,颜色饱和度,和高度没关系啊。求解答
|
|