|
发表于 2008-7-14 11:07:45
|
显示全部楼层
[Reset]
BITFIELD=0, 0x0D, 0x0001, 1 //RESET_REG - reset sensor
BITFIELD=0, 0x0D, 0x0020, 1 //RESET_REG - reset soc
BITFIELD=0, 0x0D, 0x0021, 0 //RESET_REG - resume both
[Toggle_Manual_WB]
BITFIELD=0x01, 0x06, 0x8000, 0x1 //Flipping the Manual WB to get the defaults right
DELAY=500 // wait 500 ms
BITFIELD=0x01, 0x06, 0x8000, 0x0 //Flipping back the Manual WB to get the defaults right
[Default Registers]
REG=0x00, 0x12, 0x0550 //RESERVED
REG=0x01, 0x06, 0x640E //OPERATING MODE CONTROL
REG=0x00, 0x35, 0x2026 //RESERVED
LOAD = Recommended Register Writes
REG=1, 0x13, 0x0780 // CHIP_CR -- full frame mode, doesn't drop frames
[Manual 50Hz Flicker - NTSC]
REG=0x02, 0x5B, 0x0001 //Flicker in manual mode
DELAY=500 //500ms delay
REG=0x02, 0x5B, 0x0000 //50Hz flicker detect
REG=0x02, 0x37, 0x0060 //AE GAIN ZONE LIMIT
BITFIELD=0x02, 0x2E, 0x00FF, 0x0000 //AE_PRECISION_TARGET: 0-7: Luminance Value
DELAY=250 // wait 250 ms
BITFIELD=0x02, 0x2E, 0x00FF, 0x003A //AE_PRECISION_TARGET: 0-7: Luminance Value
[Manual 60Hz Flicker - NTSC]
REG=0x02, 0x37, 0x0080 //AE GAIN ZONE LIMIT
REG=0x02, 0x5B, 0x0001 //Flicker in manual mode
DELAY=500 //500ms delay
REG=0x02, 0x5B, 0x0003 //60Hz flicker detect
BITFIELD=0x02, 0x2E, 0x00FF, 0x0000 //AE_PRECISION_TARGET: 0-7: Luminance Value
DELAY=250 // wait 250 ms
BITFIELD=0x02, 0x2E, 0x00FF, 0x003A //AE_PRECISION_TARGET: 0-7: Luminance Value
[Manual 50Hz Flicker - PAL]
REG=0x02, 0x5B, 0x0001 //Flicker in manual mode
DELAY=500 //500ms delay
REG=0x02, 0x5B, 0x0000 //50Hz flicker detect
[Manual 60Hz Flicker - PAL]
REG=0x02, 0x5B, 0x0001 //Flicker in manual mode
DELAY=500 //500ms delay
REG=0x02, 0x5B, 0x0003 //60Hz flicker detect |
|