|
发表于 2008-7-19 17:31:09
|
显示全部楼层
好像每个sensor要调整的不一样,但原理是一致的,关于magnachip的调试方法为:
修改以下函数的参数设置:
void MC501CB_Write_Sensor_Initial_Setting(void)
{
CHANGE_TO_PAGE(2);
write_cmos_sensor(0x51, 0x32); // FLK50
write_cmos_sensor(0x52, 0x2a); // FLK60
CHANGE_TO_PAGE(3);
write_cmos_sensor(0x33, 0x01); // EXPTIMEH
write_cmos_sensor(0x34, 0x24); // EXPTIMEM
write_cmos_sensor(0x35, 0xf8); // EXPTIMEL
write_cmos_sensor(0x38, 0x02); // EXPMAXH
write_cmos_sensor(0x39, 0x49); // EXPMAXM
write_cmos_sensor(0x3A, 0xf0); // EXPMAXL
write_cmos_sensor(0x3B, 0x3a); // EXP100H
write_cmos_sensor(0x3C, 0x98); // EXP100L
write_cmos_sensor(0x3D, 0x30); // EXP120H
write_cmos_sensor(0x3E, 0xd4); // EXP120L
}
void MC501CB_NightMode(kal_bool bEnable)
{
write_cmos_sensor(0x38, 0x02);
write_cmos_sensor(0x39, 0x49);
write_cmos_sensor(0x3A, 0xf0);
} |
|